GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make 'encryption_key' an attribute of the Blob. by tseaver · Pull Request #2507 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Oct 6, 2016

Copy link
Copy Markdown
Contributor

Avoids the need to plumb it through all the upload_* and download_* methods.

Convert _set_encryption_headers(key, headers) into a pure function, _get_encryption_headers(key), returning a new dict.

Preparing for use of encryption in to-be-added Blob.rewrite(source_blob) method. See: #1960.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tseaver tseaver added the api: storage Issues related to the Cloud Storage API. label Oct 6, 2016
@tseaver tseaver assigned daspecster and dhermes Oct 6, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 6, 2016
@tseaver

tseaver commented Oct 6, 2016

Copy link
Copy Markdown
Contributor Author

/cc @jonparrott, as this change might affect the snippets which demonstrate use of customer-supplied encryption keys.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Make 'encryption_key' an attribute of the Blob.
2da75d4
Avoids the need to plumb it through all the 'upload' and 'download'
methods.

Convert '_set_encryption_headers(key, headers)' into a pure function,
'_get_encryption_headers(key)', returning a new dict.

Preparing for use of encryption in to-be-added 'Blob.rewrite(source_blob)'
method.  See: #1960.
dhermes
dhermes approved these changes Oct 6, 2016
View reviewed changes

@dhermes dhermes left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@dhermes

dhermes commented Oct 6, 2016

Copy link
Copy Markdown
Contributor

Still LGTM after last commit

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver

tseaver commented Oct 6, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes While writing system tests for Blob.rewrite, I realized I needed to surface the encryption_key parameter at the Bucket.blob level, too. Unless you object, I will merge when that last, tiny change passes Travis.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver
Pass 'encryption_key' through 'Bucket.blob' factory.
cf451cf
@tseaver tseaver mentioned this pull request Oct 6, 2016
Add 'Blob.rewrite' API wrapper method. #2510
Merged
@tseaver
tseaver merged commit cc4c929 into googleapis:master Oct 6, 2016
@tseaver
tseaver deleted the 1960-storage-blob_encryption_key_attr branch October 6, 2016 21:12
@dhermes dhermes mentioned this pull request Nov 14, 2016
Upgrading core to version to 0.21.0. #2733
Merged
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
@tseaver
Merge pull request googleapis#2507 from tseaver/1960-storage-blob_enc…
4bee41a
…ryption_key_attr

Make 'encryption_key' an attribute of the Blob.
@theacodes theacodes unassigned daspecster and dhermes Sep 28, 2018
chalmerlowe pushed a commit that referenced this pull request Mar 31, 2026
@sycai
feat: use EUC for AI IF, CLASSIFY, and SCORE when connection is not p…
0dd4d83
…rovided (#2507)

Fixes b/489038951 🦕
chalmerlowe pushed a commit that referenced this pull request Mar 31, 2026
@tswast
chore: librarian release pull request: 20260316T210518Z (#2520)
e50c591
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.8.3
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c
<details><summary>bigframes: v2.38.0</summary>

##
[v2.38.0](google/bigframes@v2.37.0...v2.38.0)
(2026-03-16)

### Features

* Add `bigframes.bigquery.rand()` function (#2501)
([5c43efb7](google/bigframes@5c43efb7))

* add `df.bigquery` pandas accessor (#2513)
([91b6c245](google/bigframes@91b6c245))

* Add str, dt accessors to pd.col Expression objects (#2488)
([ce5de570](google/bigframes@ce5de570))

* add bigquery.ml.get_insights function (#2493)
([d29a6095](google/bigframes@d29a6095))

* use EUC for AI IF, CLASSIFY, and SCORE when connection is not provided
(#2507)
([fe94910a](google/bigframes@fe94910a))

### Bug Fixes

* handle unsupported types and empty results in describe (#2506)
([2326ad6a](google/bigframes@2326ad6a))

* no longer automatically use anywidget in the `%%bqsql` magics (#2504)
([43353e2b](google/bigframes@43353e2b))

### Documentation

* Fix typo in ExperimentOptions class docstring (#2498)
([077cb2eb](google/bigframes@077cb2eb))

* add notebooks to user guide page (#2505)
([5cf37888](google/bigframes@5cf37888))

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@dhermes dhermes dhermes approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@tseaver @dhermes @daspecster @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.