Skip to content

Fixes #354#363

Closed
Fkawala wants to merge 1 commit intogoogleapis:masterfrom
Fkawala:master
Closed

Fixes #354#363
Fkawala wants to merge 1 commit intogoogleapis:masterfrom
Fkawala:master

Conversation

@Fkawala
Copy link

@Fkawala Fkawala commented Nov 10, 2014

The issue #354 is fixed.

See code below for a minimal working example.

import time
from gcloud import storage
from gcloud.storage.demo import get_connection

c  = storage.demo.get_connection()
b = c.create_bucket('debug-gcloud-%d' % int(time.time()))
k = b.new_key("bare/my-new-file.txt")
k = k.set_contents_from_string("this is some dataaaaa!")
k = b.get_key("bare/my-new-file.txt")
print k.get_contents_as_string()

@dhermes dhermes added cla: no This human has *not* signed the Contributor License Agreement. api: datastore Issues related to the Datastore API. labels Nov 10, 2014
@dhermes
Copy link
Contributor

dhermes commented Nov 10, 2014

@Fkawala can you add a test? Or @tseaver maybe we can add a test after the fact?

Also @silvolu can you confirm a CLA has been signed?

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling ec9bf75 on Fkawala:master into * on GoogleCloudPlatform:master*.

@tseaver
Copy link
Contributor

tseaver commented Nov 10, 2014

Oops, sorry @Fkawala: our commits crossed. #364 is my take on this. Note that it adds tests, and distinguishes between urllib.quote (used for path elements) and urllib.quote_plus (used for query strings). It also covers other methods where key.name is used.

@tseaver tseaver closed this Nov 10, 2014
@Fkawala
Copy link
Author

Fkawala commented Nov 10, 2014

@tseaver Thanks for the fix !

parthea pushed a commit that referenced this pull request Jun 4, 2023
* chore(main): release 2.0.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 20, 2023
Source-Link: googleapis/synthtool@6ed3a83
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 22, 2023
* feat: add update support for accelerator config

feat: add support for disabling pod IP cidr overprovision. This feature requires special allowlisting for the projects.
PiperOrigin-RevId: 522103275

Source-Link: googleapis/googleapis@9f6f02b

Source-Link: googleapis/googleapis-gen@47ee16c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDdlZTE2YzEwNWFkZTYxMGI2OGJmZmMyOGIwYzIyNDNlYmEwOGE0NCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add support for disabling pod IP cidr overprovision

This feature requires special allowlisting for the projects.

PiperOrigin-RevId: 522103451

Source-Link: googleapis/googleapis@013b597

Source-Link: googleapis/googleapis-gen@2fe6962
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmZlNjk2MmY5YzhlNzcwMzk2ZGNmYzg4ZTEwNGU1ZDcxM2MyZTY2ZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Sep 22, 2023
* feat: add DataProfilePubSubMessage supporting pub/sub integration

PiperOrigin-RevId: 438616324

Source-Link: googleapis/googleapis@52df4b4

Source-Link: googleapis/googleapis-gen@c8fba06
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhmYmEwNjEzMDY1NGI4MzhhMzhhZTJlOGI5YjVjMjExOTFmOWUxMiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Sep 22, 2023
Source-Link: https://togithub.com/googleapis/synthtool/commit/0ddbff8012e47cde4462fe3f9feab01fbc4cdfd6
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bced5ca77c4dda0fd2f5d845d4035fc3c5d3d6b81f245246a36aee114970082b
parthea pushed a commit that referenced this pull request Oct 21, 2023
…ic enums (#363)

* feat: enable "rest" transport in Python for services supporting numeric enums

PiperOrigin-RevId: 508143576

Source-Link: googleapis/googleapis@7a702a9

Source-Link: googleapis/googleapis-gen@6ad1279
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
Source-Link: googleapis/synthtool@6fab84a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe
parthea pushed a commit that referenced this pull request Oct 21, 2023
Source-Link: https://togithub.com/googleapis/synthtool/commit/eaef28efd179e6eeb9f4e9bf697530d074a6f3b9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f8ca7655fa8a449cadcabcbce4054f593dcbae7aeeab34aa3fcc8b5cf7a93c9e
parthea pushed a commit that referenced this pull request Oct 21, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Oct 21, 2023
…363)

Source-Link: https://togithub.com/googleapis/synthtool/commit/b4fe62efb5114b6738ad4b13d6f654f2bf4b7cc0
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3bf87e47c2173d7eed42714589dc4da2c07c3268610f1e47f8e1a30decbfc7f1
parthea pushed a commit that referenced this pull request Nov 24, 2025
)

Source-Link: googleapis/synthtool@7804ade
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:eede5672562a32821444a8e803fb984a6f61f2237ea3de229d2de24453f4ae7d
parthea pushed a commit that referenced this pull request Nov 24, 2025
Also, include materialized views in 'get_view_names'.

Closes #332.
parthea added a commit that referenced this pull request Nov 24, 2025
parthea pushed a commit that referenced this pull request Nov 24, 2025
Source-Link: googleapis/synthtool@e808c98
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8e3e7e18255c22d1489258d0374c901c01f9c4fd77a12088670cd73d580aa737

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this pull request Nov 24, 2025
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* revert

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this pull request Nov 24, 2025
Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:c66ba3c8d7bc8566f47df841f98cd0097b28fff0b1864c86f5817f4c8c3e8600
parthea pushed a commit that referenced this pull request Feb 20, 2026
I found that when `timeout_seconds` parameter is used, the code raises
an exception such as:

```
  File "/usr/lib/python3.12/site-packages/google_auth_oauthlib/flow.py", line 520, in run_local_server
    authorization_response = wsgi_app.last_request_uri.replace("http", "https")
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'replace'
```

This PR adds a custom exception such that a caller can handle this case.

I'm unable to run the full `nox` suite locally, but it looks like
nothing has broken. I'll make any changes needed when the CI tests run.

---------

Co-authored-by: Chalmer Lowe <[email protected]>
ohmayr pushed a commit that referenced this pull request Feb 26, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.0.0-20260216162532-e323d455c92b
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c
<details><summary>google-ads-datamanager: v0.5.0</summary>

##
[v0.5.0](google-ads-datamanager-v0.4.0...google-ads-datamanager-v0.5.0)
(2026-02-26)

### Features

* add `UserListDirectLicenseService` for creating and managing direct
user list licenses (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `PpidData` to `AudienceMember` to support Publisher Provided ID
(PPID) in audience member ingestion (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `RemovePpidDataStatus` to `RemoveAudienceMembersStatus` to report
the status of PPID data removal (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `AgeRange` and `Gender` enums to support demographic breakdown in
marketing insights (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `RemoveUserIdDataStatus` to `RemoveAudienceMembersStatus` to
report the status of user ID data removal (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `UserList` resource (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `GOOGLE_AD_MANAGER_AUDIENCE_LINK` to the `AccountType` enum
(PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `PartnerLinkService` for creating and managing links between
advertiser and data partner accounts (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `PartnerLink` resource (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `UserListGlobalLicenseCustomerInfo` resource (PiperOrigin-RevId:
873059573)
([e40bfd4](e40bfd4d))

* add `UserIdData` to `AudienceMember` to support User ID in audience
member ingestion (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `MarketingDataInsightsService` for retrieving marketing data
insights for a given user list (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add new `ErrorReason` values for licensing, user list operations, and
permission checks (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `UserListGlobalLicense` resource (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `UserListDirectLicense` resource (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `UserListGlobalLicenseService` for creating and managing global
user list licenses (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `IngestUserIdDataStatus` to `IngestAudienceMembersStatus` to
report the status of user ID data ingestion (PiperOrigin-RevId:
873059573)
([e40bfd4](e40bfd4d))

* add `UserListService` for creating and managing user lists
(PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add `IngestPpidDataStatus` to `IngestAudienceMembersStatus` to report
the status of PPID data ingestion (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

### Bug Fixes

* changed `conversion_value` field to be optional in message `Event`
(PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

### Documentation

* a comment for field `pair_data` in message `AudienceMember` is changed
to clarify it is only available to data partners (PiperOrigin-RevId:
873059573)
([e40bfd4](e40bfd4d))

* a comment for enum `ErrorReason` is changed to clarify that it is
subject to future additions (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* add comments to resources and methods to clarify which are available
only to data partners (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

* a comment for message `PairData` is changed to clarify it is only
available to data partners (PiperOrigin-RevId: 873059573)
([e40bfd4](e40bfd4d))

</details>


<details><summary>google-auth-oauthlib: v1.3.0</summary>

##
[v1.3.0](google-auth-oauthlib-v1.2.4...google-auth-oauthlib-v1.3.0)
(2026-02-26)

### Features

* Log the flow.run_local_server redirect URL (#362)
([84599aa](84599aa0))

### Bug Fixes

* Raise meaningful exception when oauth callback times out (#363)
([adc3ee6](adc3ee60))

</details>


<details><summary>google-cloud-ces: v0.1.0</summary>

##
[v0.1.0](google-cloud-ces-v0.0.0...google-cloud-ces-v0.1.0)
(2026-02-26)

### Features

* onboard a new library (PiperOrigin-RevId: 868719126)
([2b38797](2b387976))

* onboard a new library (PiperOrigin-RevId: 874689837)
([e46a4d8](e46a4d8b))

</details>


<details><summary>google-cloud-compute: v1.44.0</summary>

##
[v1.44.0](google-cloud-compute-v1.43.0...google-cloud-compute-v1.44.0)
(2026-02-26)

### Features

* Update Compute Engine v1 API to revision 20260106 (#1148)
([d1ce4d3](d1ce4d35))

</details>


<details><summary>google-cloud-compute-v1beta: v0.7.0</summary>

##
[v0.7.0](google-cloud-compute-v1beta-v0.6.0...google-cloud-compute-v1beta-v0.7.0)
(2026-02-26)

### Features

* Update Compute Engine v1beta API to revision 20260206
(googleapis/googleapis#1159)
([0900626](09006260))

* Update Compute Engine v1beta API to revision 20260106 (#1147)
([0900626](09006260))

</details>


<details><summary>google-cloud-databasecenter: v0.6.0</summary>

##
[v0.6.0](google-cloud-databasecenter-v0.5.0...google-cloud-databasecenter-v0.6.0)
(2026-02-26)

### Documentation

* Replace &amp;#34;GCP&amp;#34; with &amp;#34;Google Cloud&amp;#34; in
API comments (PiperOrigin-RevId: 871778449)
([e40bfd4](e40bfd4d))

* Remove single quotes from DatabaseCenter summary. (PiperOrigin-RevId:
871778449)
([e40bfd4](e40bfd4d))

</details>


<details><summary>google-cloud-developerconnect: v0.4.0</summary>

##
[v0.4.0](google-cloud-developerconnect-v0.3.0...google-cloud-developerconnect-v0.4.0)
(2026-02-26)

### Features

* Add OAuth flow RPCs (StartOAuth, FinishOAuth) (PiperOrigin-RevId:
872542190)
([e40bfd4](e40bfd4d))

* A new field `organization` is added to message
`google.cloud.developerconnect.v1.GitHubEnterpriseConfig`
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.insights.ListDeploymentEventsRequest`
is added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new field `http_config` is added to message
`google.cloud.developerconnect.v1.Connection` (PiperOrigin-RevId:
872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.insights.ListDeploymentEventsResponse`
is added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message `google.cloud.developerconnect.v1.FinishOAuthRequest` is
added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new field `projects` is added to message
`google.cloud.developerconnect.v1.insights.InsightsConfig`
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.SecureSourceManagerInstanceConfig` is
added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message `google.cloud.developerconnect.v1.FinishOAuthResponse`
is added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new field `google_cloud_run` is added to message
`google.cloud.developerconnect.v1.insights.RuntimeConfig`
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message `google.cloud.developerconnect.v1.StartOAuthRequest` is
added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Add Cloud Run and App Hub Service runtimes to InsightsConfig
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new field `app_hub_service` is added to message
`google.cloud.developerconnect.v1.insights.RuntimeConfig`
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.insights.GetDeploymentEventRequest` is
added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.insights.AppHubService` is added
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message `google.cloud.developerconnect.v1.StartOAuthResponse` is
added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new enum value `GEMINI_CODE_ASSIST` is added to enum
`google.cloud.developerconnect.v1.GitHubConfig.GitHubApp`
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Add Gemini Code Assist GitHub App type (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message `google.cloud.developerconnect.v1.insights.Projects` is
added (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Add HTTP Proxy base URI field (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new field `secure_source_manager_instance_config` is added to
message `google.cloud.developerconnect.v1.Connection`
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Add Secure Source Manager and Generic HTTP Endpoint connection types
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.insights.ArtifactDeployment` is added
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.insights.GoogleCloudRun` is added
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Add Deployment Events to Insights API (GetDeploymentEvent,
ListDeploymentEvents) (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.GenericHTTPEndpointConfig` is added
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Add Projects field to InsightsConfig for project tracking
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new message
`google.cloud.developerconnect.v1.insights.DeploymentEvent` is added
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* A new field `http_proxy_base_uri` is added to message
`google.cloud.developerconnect.v1.HTTPProxyConfig` (PiperOrigin-RevId:
872542190)
([e40bfd4](e40bfd4d))

### Documentation

* Updated description for
`google.cloud.location.Locations.ListLocations` in YAML
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Corrected typos in comments for
`google.cloud.developerconnect.v1.insights.InsightsConfig` and
`google.cloud.developerconnect.v1.insights.ArtifactConfig`
(PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

* Updated comment for `CreateGitRepositoryLink` RPC in
`google.cloud.developerconnect.v1.DeveloperConnect` (PiperOrigin-RevId:
872542190)
([e40bfd4](e40bfd4d))

* Updated comments to include regional secret patterns for SecretManager
fields in `GitHubConfig`, `OAuthCredential`, `UserCredential`,
`GitLabConfig`, `GitLabEnterpriseConfig`, `BitbucketDataCenterConfig`,
and `BitbucketCloudConfig` (PiperOrigin-RevId: 872542190)
([e40bfd4](e40bfd4d))

</details>


<details><summary>google-cloud-speech: v2.37.0</summary>

##
[v2.37.0](google-cloud-speech-v2.36.1...google-cloud-speech-v2.37.0)
(2026-02-26)

### Features

* adds endpointing sensitivity to streaming recognition features
(PiperOrigin-RevId: 871987204)
([e40bfd4](e40bfd4d))

</details>


<details><summary>google-cloud-workloadmanager: v0.1.0</summary>

##
[v0.1.0](google-cloud-workloadmanager-v0.0.0...google-cloud-workloadmanager-v0.1.0)
(2026-02-26)

### Features

* onboard a new library (PiperOrigin-RevId: 869327994)
([7161480](71614806))

</details>
parthea pushed a commit that referenced this pull request Mar 2, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: datastore Issues related to the Datastore API. cla: no This human has *not* signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants