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 — migrate code from googleapis/python-compute by m-strzelczyk · Pull Request #8479 · GoogleCloudPlatform/python-docs-samples

Conversation

@m-strzelczyk

@m-strzelczyk m-strzelczyk commented Nov 9, 2022

Copy link
Copy Markdown
Contributor
  • feat: Adding code samples and tests for them (Add storagetransfer samples #55)
  • chore(deps): update dependency google-cloud-compute to v0.4.0 (Confirm that coverage is working post-gae split #62)
  • chore(deps): update dependency google-cloud-compute to v0.4.1 (Add reference to where to find apis. #68)
  • feat: adding samples for default values (Misplaced datastore_example_test comment #64)
  • chore(deps): update dependency google-cloud-storage to v1.40.0 (Move annotation for greater brevity. #72)
  • docs: samples docstring and comments update (Compute Autoscaler demo #69)
  • chore(deps): update dependency google-cloud-storage to v1.41.0 (Organizing all app engine samples under appengine #76)
  • chore: update templated files
  • fix: Kokoro uses separate project for concurent tests. (Switching app engine tests to webtest and consolidating testing utils… #83)
  • chore(deps): update dependency google-cloud-storage to v1.41.1 (Update README To Reflect Current GAE Download Instructions #82)
  • chore(deps): update dependency google-cloud-compute to v0.4.2 (Should we move Testing part in README to CONTRIBUTING? #87)
  • feat: adding samples to start/stop/reset operations (Can discoverydoccaching be deprecated? #75)
  • fix!: uint64/int64 fields accept ints instead of strings (Reorganizing storage samples. #92)
  • chore(deps): update dependency google-cloud-compute to v0.5.0 (Renaming 'samples' -> 'api'. #97)
  • chore: fix INSTALL_LIBRARY_FROM_SOURCE in noxfile.py (Standardizing docstrings across bigquery samples. #98)
  • docs(samples): Adding pagination sample. (Move bigquery 'getting started' sample into github. #78)
  • chore(samples): fix LRO wrapper (Adding cloud logging api sample. #99)
  • chore(deps): update dependency google-cloud-storage to v1.42.0 (Making travis only test master branch to reduce thrashing. #103)
  • chore: remove 2.7 from samples noxfile (Move sample from appengine-guestbook-namespaces-python #106)
  • fix: correct region tag formatting (Moving compute engine getting started example to this repository. #102)
  • fix(compute): Updated max_results to 100 to avoid too many API calls (Migrating sample. #108)
  • chore(deps): update dependency pytest to v6.2.5 (Consolidate namespace example into this repo #112)
  • chore(deps): update dependency google-cloud-storage to v1.42.1 (Move sample from appengine-i18n-sample-python #119)
  • chore: blacken samples noxfile template (Bring appengine/i18n up to standards #121)
  • chore(deps): update dependency google-cloud-storage to v1.42.2 (Bringing namespace samples up to standards #120)
  • chore(docs): Adding firewall samples. (Bringing App Engine storage sample up to standards #117)
  • chore(deps): update dependency google-cloud-storage to v1.42.3 (Move over appengine-angular-hello-world-python #122)
  • changes without context (Setup nightly builds to run slow tests. #123)
  • feat: add support for python 3.10 (Add test to load_data_by_post. #131)
  • chore(docs): Adding samples for GCE instance creation (Specify source format, so json uploads work. #130)
  • chore(deps): update dependency google-cloud-compute to v0.6.0 (insertId is within the row, not the request. #135)
  • chore(docs): Securing tests against leaks. (Adding app identity blob signing example. #139)
  • chore(docs): Updating firewall samples. (BiqQuery Streaming Insert example is different from official documentation #134)
  • chore(samples): fix region tag import (Cleaning up docstrings #142)
  • chore(deps): update dependency google-cloud-compute to v0.7.0 (Typo #148)
  • feat: update to the latest version of the code generator (Unpin tox #147)
  • chore(deps): update dependency google-cloud-compute to v0.8.0 (Updated Managed VMs custom sample with new runtime #154)
  • docs(samples): Adding template samples (Moving blobstore sample #136)
  • chore(deps): update dependency google-cloud-storage to v1.43.0 (Add Django/Postgres/Redis Container Engine example #157)
  • docs(samples): Adding samples for instance from template creation (CloudSQL / Datastore samples should record only first two octtets of IP #159)
  • feat: Switch to string enums for compute (Change the listening port from 9000 to 80 #685) (Adding datastore samples. #158)
  • test: Making firewall test tolerant of GCE Enforcer. (Updating dependencies #162)
  • docs(samples): Renaming region to avoid name collision with different region. (Trying to improve datastore flaky tests. #167)
  • chore: update to the latest version of the generator (Provides eventual_consistent_query region tag with comment saying rea… #170)
  • chore: release 0.9.0 (Basic Kinto Example #161)
  • chore(deps): update dependency google-cloud-compute to v0.9.0 (Fixing lint issues, updating requirements. #171)
  • docs(samples): Samples for custom vm types (Add Django GKE Polls Sample #155)
  • chore(samples): Fixing a small issue with sample region tags (managed_vms/analytics needs tests #180)
  • chore(samples): Removing some leaked instances. (Figure out a way to test the django samples #179)
  • chore(deps): update dependency google-cloud-storage to v1.44.0 (managed_vms/sengrid needs tests #182)
  • chore(samples): Add check for tests in directory (Passing all environment variables in tox.ini #186)
  • chore(deps): update all dependencies (Turning off character echoing in encrypt-secrets.sh #187)
  • chore(python): Noxfile recognizes that tests can live in a folder (Moving app engine samples to py.test #197)
  • chore(samples): Docstring fix (Move datastore key filters to use Query.key_filter() #198)
  • chore(deps): update dependency google-cloud-storage to v2.1.0 (Moving managedvms/memcache to pymemcache for better python3 support. #200)
  • docs(samples): Adding samples for delete protection (Deprecate X-Google-Metadata-Request in favor new Metadata-Flavor header #208)
  • chore(samples): Fixing test with deprecated OS image. (Add sample for CRUD on GCS. #217)
  • chore(samples): Samples for preemptible instances (Moving cloudsql sample to Cloud SQL proxy #213)
  • chore(deps): update all dependencies (Update managed_vms/django_cloudsql sample to use cloud sql proxy #215)
  • chore(samples): Fixing docstring (Restoring region tags #222)
  • chore(samples): Snippet Generating System (part 1) (Updating requirements. #199)
  • chore(samples): Adding samples for custom hostname (Refactor storage sample for better code-inclusion #221)
  • chore(samples): Typo fix (Add an example of CSK operations. #230)
  • chore: Adding support for pytest-xdist and pytest-parallel (Use Main Project (now whitelisted) #235)
  • chore(samples): Snippet Generating Script: part 2 - moving the snippets to new format (Update requirements #225)
  • chore(deps): update dependency google-cloud-compute to v1.1.0 (Auto-detect directories to test. #237)
  • chore(deps): update dependency pytest to v7.1.0 (Monitoring v3 custom_metrics timeout #238)
  • chore(deps): update dependency google-cloud-storage to v2.2.0 (Add speech api streaming sample. #239)
  • chore(deps): update dependency google-cloud-storage to v2.2.1 (Update cloud speech scope #240)
  • chore(deps): update dependency pytest to v7.1.1 (Fix property name in projection_query #241)
  • chore(samples): Making samples required for moving VM instance docs (Fix Travis on PRs #242)
  • docs(samples): Add samples for moving VM to different regions/zones (Wrong project ID when running cloud monitoring custom metrics sample #244)
  • chore(samples): Adding a test to make sure snippets are up-to-date (Fix minor typo in custom_metric.py #243)
  • chore(python): use black==22.3.0 (Use gcloud 0.12.0 for Datastore samples so they use v1beta3. #249)
  • chore(deps): update dependency google-cloud-compute to v1.2.0 (Adding app engine request handling samples. #257)
  • docs(samples): Add samples for suspending/resuming an instance (Add Background Sample #259)
  • chore(deps): update dependency google-cloud-storage to v2.3.0 (Add Sengrid example #262)
  • chore(python): add nox session to sort python imports (Add Modules Example #266)
  • docs(samples): Migrate samples to use new type of operations (Minor Sendgrid fixup #264)
  • chore(deps): update dependency google-cloud-compute to v1.3.0 (create_custom_metric() shouldn't send "name" #269)
  • chore(deps): update dependency pytest to v7.1.2 (Fix test scribble and restructure region tags #271)
  • docs(samples): Adding samples for image creation and deletion (Adding metadata sample #270)
  • docs(samples): Adding samples for image related operations (Update dns samples to use easier DNS api methods #277)
  • docs(samples): Improving snapshot samples (compute/api/create_instance should use image families #276)
  • docs(samples): Adding Windows server samples (moved image guestbook, added basic image example #274)
  • chore(deps): update dependency google-cloud-compute to v1.3.1 (Typo in Speech API README.md #284)
  • chore(docs): Fix a minor typo (Add XMPP Sample #297)
  • docs(samples): Adding the missing compute_create_windows_instance_external_ip region (Fix README link and region tag #300)
  • docs(samples): Bulk insert sample (Add mail samples. #299)
  • fix: require python 3.7+ (Fix lint error. #304)
  • docs(samples): Adding samples for Spot VMs (Channel code samples for python #285)
  • chore(deps): update all dependencies (Adding appstats sample #293)
  • docs(samples): adding sample for local SSD disk (Add Memcache Best Practices Samples #294)
  • chore(tests): Request id test (Adding search snippets #298)
  • chore(deps): update all dependencies (Problem running endpoints oauth client #310)
  • chore(deps): update all dependencies (Move projection queries snippets to github #313)
  • docs(samples): Various ways of creating a new disk (Fix doc tags. #308)
  • chore(deps): update all dependencies to v1.5.0 (README is still confusing #317)
  • chore(deps): update all dependencies (Updating doc links #324)
  • chore(deps): update dependency black to v22.8.0 (Updating datastore samples to use eventually consistent helper #331)
  • chore(deps): update dependency pytest to v7.1.3 (Update main.py #334)
  • chore(deps): update dependency google-cloud-compute to v1.5.2 (Updating dependencies #339)
  • chore: detect samples tests in nested directories (Fix speech streaming sample & test #343)
  • chore(deps): update all dependencies (TRAVIS_COMMIT_RANGE isn't set on non-PRs #348)
  • docs(samples): Fixing an issue with listing all instances (Adding test for taskqueue pull worker. Fixes #254 #349)
  • chore(deps): update dependency black to v22.10.0 (Add sample for speech api on GCS file via grpc. #352)
  • chore(deps): update all dependencies (No need for speech discovery doc any longer. #353)
  • chore(deps): update dependency pytest to v7.2.0 (Fixed typo in README.md #357)

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

  • I have followed Sample Guidelines from AUTHORING_GUIDE.MD
  • README is updated to include all relevant information
  • Tests pass: nox -s py-3.9 (see Test Environment Setup)
  • Lint pass: nox -s lint (see Test Environment Setup)
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • Please merge this PR for me once it is approved.
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample

Sorry, something went wrong.

Uh oh!

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

All reactions
m-strzelczyk and others added 30 commits June 6, 2021 15:07
@m-strzelczyk @busunkim96 @dinagraves
feat: Adding code samples and tests for them (#55)
ca29697
* feat: Adding code samples and tests for them

* chore: Remove unused import.

* Update .github/CODEOWNERS

Co-authored-by: Bu Sun Kim <[email protected]>

* chore: Updating samples to meet reviewers suggestions.

* chore: Fixing regions.

* chore: Adjusting the testing scripts in .kokoro/samples.

* Revert "chore: Adjusting the testing scripts in .kokoro/samples."

This reverts commit 6d0b4276

* chore: Moving samples tests to dedicated noxfile.py.

* chore: Adding 3.6 and 3.7 Python versions to samples noxfile.py

* chore: Updating the Samples section to reflect new testing setup.

* chore: Updating the Samples README.

* chore: add standardized samples noxfile

* chore: uncomment sections in synth.py

* chore: Changing the waiting for operation part.

* chore: Minor changes based on review.

* README suggests using `gcloud auth application-default login` which is safer than Service Account key.
* The name of created instance now starts with "quickstart-".
* Changed one variable name.

Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: Dina Graves Portman <[email protected]>
@renovate-bot
chore(deps): update dependency google-cloud-compute to v0.4.0 (#62)
dc35c09
@renovate-bot
chore(deps): update dependency google-cloud-compute to v0.4.1 (#68)
dbb71b9
@m-strzelczyk
feat: adding samples for default values (#64)
a9f9eb6
* feat: adding samples for default values

Featuring the usage report API.
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.40.0 (#72)
f66ff11
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==1.39.0` -> `==1.40.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.40.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.40.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.40.0/compatibility-slim/1.39.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.40.0/confidence-slim/1.39.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-storage</summary>

### [`v1.40.0`](https://togithub.com/googleapis/python-storage/blob/master/CHANGELOG.md#&#8203;1400-httpswwwgithubcomgoogleapispython-storagecomparev1390v1400-2021-06-30)

[Compare Source](https://togithub.com/googleapis/python-storage/compare/v1.39.0...v1.40.0)

##### Features

-   add preconditions and retry configuration to blob.create_resumable_upload_session ([#&#8203;484](https://www.github.com/googleapis/python-storage/issues/484)) ([0ae35ee](https://www.github.com/googleapis/python-storage/commit/0ae35eef0fe82fe60bc095c4b183102bb1dabeeb))
-   add public access prevention to bucket IAM configuration ([#&#8203;304](https://www.github.com/googleapis/python-storage/issues/304)) ([e3e57a9](https://www.github.com/googleapis/python-storage/commit/e3e57a9c779d6b87852063787f19e27c76b1bb14))

##### Bug Fixes

-   replace default retry for upload operations ([#&#8203;480](https://www.github.com/googleapis/python-storage/issues/480)) ([c027ccf](https://www.github.com/googleapis/python-storage/commit/c027ccf4279fb05e041754294f10744b7d81beea))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-compute).
@m-strzelczyk
docs: samples docstring and comments update (#69)
88b75bc
* chore: Updating docstrings to match samples from other languages.

* feat: Fixing comments and docstrings to be in sync with other samples.

* docs: Updating sample docstrings and comments

Applying some changes after consulting with tech writer.
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.41.0 (#76)
eb57021
@yoshi-automation
chore: update templated files
6ca837d
@m-strzelczyk
fix: Kokoro uses separate project for concurent tests. (#83)
df25add
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)

Making sure that synthtool won't revert the `gcloud_project_env` setting for sample tests like it did in googleapis/python-compute#67
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.41.1 (#82)
07cb9e5
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==1.41.0` -> `==1.41.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.41.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.41.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.41.1/compatibility-slim/1.41.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.41.1/confidence-slim/1.41.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-storage</summary>

### [`v1.41.1`](https://togithub.com/googleapis/python-storage/blob/master/CHANGELOG.md#&#8203;1411-httpswwwgithubcomgoogleapispython-storagecomparev1410v1411-2021-07-20)

[Compare Source](https://togithub.com/googleapis/python-storage/compare/v1.41.0...v1.41.1)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-compute).
@renovate-bot
chore(deps): update dependency google-cloud-compute to v0.4.2 (#87)
70529d2
@m-strzelczyk @parthea
feat: adding samples to start/stop/reset operations (#75)
7455de4
* feat: Adding start/stop compute samples.

Co-authored-by: Anthonios Partheniou <[email protected]>
@yoshi-automation
fix!: uint64/int64 fields accept ints instead of strings (#92)
41ab432
feat: add always_use_jwt_access
fix: fix required query params handling (closes #12)
fix!: uint64/int64 fields accept ints instead of strings

Release-As: 0.5.0
@renovate-bot
chore(deps): update dependency google-cloud-compute to v0.5.0 (#97)
1a633f2
@yoshi-automation
chore: fix INSTALL_LIBRARY_FROM_SOURCE in noxfile.py (#98)
3397e21
@m-strzelczyk
docs(samples): Adding pagination sample. (#78)
246e562
@FrodoTheTrue
chore(samples): fix LRO wrapper (#99)
720e9c3
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.42.0 (#103)
c561363
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==1.41.1` -> `==1.42.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.0/compatibility-slim/1.41.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.0/confidence-slim/1.41.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-storage</summary>

### [`v1.42.0`](https://togithub.com/googleapis/python-storage/blob/master/CHANGELOG.md#&#8203;1420-httpswwwgithubcomgoogleapispython-storagecomparev1411v1420-2021-08-05)

[Compare Source](https://togithub.com/googleapis/python-storage/compare/v1.41.1...v1.42.0)

##### Features

-   add 'page_size' parameter to 'Bucket.list_blobs, list_buckets ([#&#8203;520](https://www.github.com/googleapis/python-storage/issues/520)) ([c5f4ad8](https://www.github.com/googleapis/python-storage/commit/c5f4ad8fddd1849a4229b0126c4c022bccb90128))

##### Bug Fixes

-   **deps:** add explicit ranges for 'google-api-core' and 'google-auth' ([#&#8203;530](https://www.github.com/googleapis/python-storage/issues/530)) ([310f207](https://www.github.com/googleapis/python-storage/commit/310f207411da0382af310172344f19c644c14e6a))
-   downloading no longer marks metadata fields as 'changed' ([#&#8203;523](https://www.github.com/googleapis/python-storage/issues/523)) ([160d1ec](https://www.github.com/googleapis/python-storage/commit/160d1ecb41f1f269b25cb68b2d2f7daf418bf01c))
-   make 'requests.exceptions.ChunkedEncodingError retryable by default ([#&#8203;526](https://www.github.com/googleapis/python-storage/issues/526)) ([4abb403](https://www.github.com/googleapis/python-storage/commit/4abb40310eca7ec45afc4bc5e4dfafbe083e74d2))

##### Documentation

-   update supported / removed Python versions in README ([#&#8203;519](https://www.github.com/googleapis/python-storage/issues/519)) ([1f1b138](https://www.github.com/googleapis/python-storage/commit/1f1b138865fb171535ee0cf768aff1987ed58914))

##### [1.41.1](https://www.github.com/googleapis/python-storage/compare/v1.41.0...v1.41.1) (2021-07-20)

##### Bug Fixes

-   **deps:** pin `{api,cloud}-core`, `auth` to allow 2.x versions on Python 3 ([#&#8203;512](https://www.github.com/googleapis/python-storage/issues/512)) ([4d7500e](https://www.github.com/googleapis/python-storage/commit/4d7500e39c51efd817b8363b69c88be040f3edb8))
-   remove trailing commas from error message constants ([#&#8203;505](https://www.github.com/googleapis/python-storage/issues/505)) ([d4a86ce](https://www.github.com/googleapis/python-storage/commit/d4a86ceb7a7c5e00ba7bae37c7078d52478040ff)), closes [#&#8203;501](https://www.github.com/googleapis/python-storage/issues/501)

##### Documentation

-   replace usage of deprecated function `download_as_string` in docs ([#&#8203;508](https://www.github.com/googleapis/python-storage/issues/508)) ([8dfa4d4](https://www.github.com/googleapis/python-storage/commit/8dfa4d429dce94b671dc3e3755e52ab82733f61a))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-compute).
@yoshi-automation
chore: remove 2.7 from samples noxfile (#106)
911c203
See: googleapis/synthtool#1173
@Xmasreturns
fix: correct region tag formatting (#102)
84664d4
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-compute/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
@rsamborski
fix(compute): Updated max_results to 100 to avoid too many API calls (#…
a308ef5
…108)

Based on @amanda-tarafa comment in C# sample (https://github.com/GoogleCloudPlatform/dotnet-docs-samples/pull/1445/files#r687921807) I am changing the max_results value to 100
@renovate-bot @parthea
chore(deps): update dependency pytest to v6.2.5 (#112)
26efae4
Co-authored-by: Anthonios Partheniou <[email protected]>
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.42.1 (#119)
20ac508
@yoshi-automation
chore: blacken samples noxfile template (#121)
ee88292
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.42.2 (#120)
dc44b6a
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==1.42.1` -> `==1.42.2` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.2/compatibility-slim/1.42.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/1.42.2/confidence-slim/1.42.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-storage</summary>

### [`v1.42.2`](https://togithub.com/googleapis/python-storage/blob/master/CHANGELOG.md#&#8203;1422-httpswwwgithubcomgoogleapispython-storagecomparev1421v1422-2021-09-16)

[Compare Source](https://togithub.com/googleapis/python-storage/compare/v1.42.1...v1.42.2)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-compute).
@m-strzelczyk @dinagraves @rsamborski
chore(docs): Adding firewall samples. (#117)
f9b4818
Co-authored-by: Dina Graves Portman <[email protected]>
Co-authored-by: Remigiusz Samborski <[email protected]>
@renovate-bot
chore(deps): update dependency google-cloud-storage to v1.42.3 (#122)
cbf749b
@yoshi-automation @parthea
changes without context (#123)
6135efc
autosynth cannot find the source of changes triggered by earlier changes in this
        repository, or by version upgrades to tools such as linters.

Co-authored-by: Anthonios Partheniou <[email protected]>
@parthea
feat: add support for python 3.10 (#131)
c4fb30a
* feat: add support for python 3.10

* add constraints files for python 3.10 and 3.11
@m-strzelczyk @parthea
chore(docs): Adding samples for GCE instance creation (#130)
6fa82a9
* chore(docs): Adding samples for GCE instance creation

Providing samples for the following docs page:
https://cloud.google.com/compute/docs/instances/create-start-instance

Co-authored-by: Anthonios Partheniou <[email protected]>
renovate-bot and others added 12 commits August 12, 2022 08:51
@renovate-bot @parthea @gcf-owl-bot
chore(deps): update all dependencies to v1.5.0 (#317)
f99074e
* chore(deps): update all dependencies to v1.5.0

* revert

* update system test to reflect exception message

* cater for protobuf 3.x.x

* 🦉 Updates from OwlBot post-processor

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

Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@renovate-bot
chore(deps): update all dependencies (#324)
7b0bcb8
@renovate-bot
chore(deps): update dependency black to v22.8.0 (#331)
e000859
@renovate-bot @parthea
chore(deps): update dependency pytest to v7.1.3 (#334)
fc767a9
Co-authored-by: Anthonios Partheniou <[email protected]>
@renovate-bot @parthea
chore(deps): update dependency google-cloud-compute to v1.5.2 (#339)
239ab99
Co-authored-by: Anthonios Partheniou <[email protected]>
@gcf-owl-bot
chore: detect samples tests in nested directories (#343)
a01f135
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978
@renovate-bot
chore(deps): update all dependencies (#348)
8a35f22
@m-strzelczyk
docs(samples): Fixing an issue with listing all instances (#349)
7e0f35b
@renovate-bot
chore(deps): update dependency black to v22.10.0 (#352)
fc3390b
@renovate-bot
chore(deps): update all dependencies (#353)
7d4074a
@renovate-bot @parthea
chore(deps): update dependency pytest to v7.2.0 (#357)
4290d6b
* chore(deps): update dependency pytest to v7.2.0

* add missing test dependency `py`

Co-authored-by: Anthonios Partheniou <[email protected]>
@m-strzelczyk
Merge remote-tracking branch 'migration/main' into python-compute-mig…
4862cfd
…ration
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Nov 9, 2022
m-strzelczyk added 3 commits November 9, 2022 15:59
@m-strzelczyk
Removing noxfile.py
b115165
@m-strzelczyk
Fixing license header
bb7571b
@m-strzelczyk
Fixing a test
93eb1a7
@m-strzelczyk m-strzelczyk added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 9, 2022
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 9, 2022
m-strzelczyk added 2 commits November 10, 2022 14:01
@m-strzelczyk
Fixing lint
74a8198
@m-strzelczyk
Merge remote-tracking branch 'origin/main' into python-compute-migration
10fb8e0
@m-strzelczyk
m-strzelczyk marked this pull request as ready for review November 10, 2022 14:29
@m-strzelczyk
m-strzelczyk requested a review from a team as a code owner November 10, 2022 14:29
@snippet-bot

snippet-bot Bot commented Nov 10, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 94 region tags.
  • compute/client_library/snippets/disks/autodelete_change.py:22, tag compute_disk_autodelete_change
  • compute/client_library/snippets/disks/clone_encrypted_disk.py:22, tag compute_disk_clone_encrypted_disk
  • compute/client_library/snippets/disks/clone_encrypted_disk_managed_key.py:22, tag compute_disk_clone_encrypted_disk_kms
  • compute/client_library/snippets/disks/create_empty_disk.py:22, tag compute_disk_create_empty_disk
  • compute/client_library/snippets/disks/create_from_image.py:22, tag compute_disk_create_from_image
  • compute/client_library/snippets/disks/create_from_snapshot.py:22, tag compute_disk_create_from_snapshot
  • compute/client_library/snippets/disks/create_from_source.py:22, tag compute_disk_create_from_disk
  • compute/client_library/snippets/disks/create_kms_encrypted_disk.py:22, tag compute_create_kms_encrypted_disk
  • compute/client_library/snippets/disks/delete.py:22, tag compute_disk_delete
  • compute/client_library/snippets/disks/list.py:22, tag compute_disk_list
  • compute/client_library/snippets/disks/regional_create_from_source.py:22, tag compute_regional_disk_create_from_disk
  • compute/client_library/snippets/disks/regional_delete.py:22, tag compute_regional_disk_delete
  • compute/client_library/snippets/firewall/create.py:22, tag compute_firewall_create
  • compute/client_library/snippets/firewall/delete.py:22, tag compute_firewall_delete
  • compute/client_library/snippets/firewall/list.py:22, tag compute_firewall_list
  • compute/client_library/snippets/firewall/patch.py:22, tag compute_firewall_patch
  • compute/client_library/snippets/firewall/windows_kms.py:22, tag compute_create_egress_rule_windows_activation
  • compute/client_library/snippets/images/create.py:22, tag compute_windows_image_create
  • compute/client_library/snippets/images/create.py:23, tag compute_images_create
  • compute/client_library/snippets/images/create_from_image.py:22, tag compute_images_create_from_image
  • compute/client_library/snippets/images/create_from_snapshot.py:22, tag compute_images_create_from_snapshot
  • compute/client_library/snippets/images/delete.py:22, tag compute_images_delete
  • compute/client_library/snippets/images/get.py:22, tag compute_images_get_from_family
  • compute/client_library/snippets/images/get.py:23, tag compute_images_get
  • compute/client_library/snippets/images/get.py:49, tag compute_images_get
  • compute/client_library/snippets/images/list.py:22, tag compute_images_get_list
  • compute/client_library/snippets/images/pagination.py:23, tag compute_images_list_page
  • compute/client_library/snippets/images/pagination.py:24, tag compute_images_list
  • compute/client_library/snippets/images/pagination.py:31, tag compute_images_list
  • compute/client_library/snippets/images/pagination.py:61, tag compute_images_list_page
  • compute/client_library/snippets/images/set_deprecation_status.py:22, tag compute_images_set_deprecation_status
  • compute/client_library/snippets/instance_templates/create.py:22, tag compute_template_create
  • compute/client_library/snippets/instance_templates/create_from_instance.py:22, tag compute_template_create_from_instance
  • compute/client_library/snippets/instance_templates/create_with_subnet.py:22, tag compute_template_create_with_subnet
  • compute/client_library/snippets/instance_templates/delete.py:22, tag compute_template_delete
  • compute/client_library/snippets/instance_templates/get.py:22, tag compute_template_get
  • compute/client_library/snippets/instance_templates/list.py:22, tag compute_template_list
  • compute/client_library/snippets/instances/bulk_insert.py:22, tag compute_instances_bulk_insert
  • compute/client_library/snippets/instances/create.py:22, tag compute_instances_create
  • compute/client_library/snippets/instances/create_start_instance/create_from_custom_image.py:22, tag compute_instances_create_from_custom_image
  • compute/client_library/snippets/instances/create_start_instance/create_from_public_image.py:22, tag compute_instances_create_from_image
  • compute/client_library/snippets/instances/create_start_instance/create_from_snapshot.py:22, tag compute_instances_create_from_snapshot
  • compute/client_library/snippets/instances/create_start_instance/create_windows_instance.py:22, tag compute_create_windows_instance_external_ip
  • compute/client_library/snippets/instances/create_start_instance/create_windows_instance.py:23, tag compute_create_windows_instance_internal_ip
  • compute/client_library/snippets/instances/create_start_instance/create_with_additional_disk.py:22, tag compute_instances_create_from_image_plus_empty_disk
  • compute/client_library/snippets/instances/create_start_instance/create_with_existing_disks.py:22, tag compute_instances_create_with_existing_disks
  • compute/client_library/snippets/instances/create_start_instance/create_with_local_ssd.py:22, tag compute_instances_create_with_local_ssd
  • compute/client_library/snippets/instances/create_start_instance/create_with_snapshotted_data_disk.py:22, tag compute_instances_create_from_image_plus_snapshot_disk
  • compute/client_library/snippets/instances/create_with_subnet.py:22, tag compute_instances_create_with_subnet
  • compute/client_library/snippets/instances/custom_hostname/create.py:22, tag compute_instances_create_custom_hostname
  • compute/client_library/snippets/instances/custom_hostname/get.py:22, tag compute_instances_get_hostname
  • compute/client_library/snippets/instances/custom_machine_types/create_shared_with_helper.py:22, tag compute_custom_machine_type_create_shared_with_helper
  • compute/client_library/snippets/instances/custom_machine_types/create_with_helper.py:22, tag compute_custom_machine_type_create_with_helper
  • compute/client_library/snippets/instances/custom_machine_types/create_without_helper.py:22, tag compute_custom_machine_type_create_without_helper
  • compute/client_library/snippets/instances/custom_machine_types/extra_mem_no_helper.py:22, tag compute_custom_machine_type_extra_mem_no_helper
  • compute/client_library/snippets/instances/custom_machine_types/helper_class.py:22, tag compute_custom_machine_type_helper_class
  • compute/client_library/snippets/instances/custom_machine_types/update_memory.py:22, tag compute_custom_machine_type_update_memory
  • compute/client_library/snippets/instances/delete.py:22, tag compute_instances_delete
  • compute/client_library/snippets/instances/delete_protection/create.py:22, tag compute_delete_protection_create
  • compute/client_library/snippets/instances/delete_protection/get.py:22, tag compute_delete_protection_get
  • compute/client_library/snippets/instances/delete_protection/set.py:22, tag compute_delete_protection_set
  • compute/client_library/snippets/instances/from_instance_template/create_from_template.py:22, tag compute_instances_create_from_template
  • compute/client_library/snippets/instances/from_instance_template/create_from_template_with_overrides.py:22, tag compute_instances_create_from_template_with_overrides
  • compute/client_library/snippets/instances/get.py:22, tag compute_instances_get
  • compute/client_library/snippets/instances/list.py:22, tag compute_instances_list
  • compute/client_library/snippets/instances/list_all.py:22, tag compute_instances_list_all
  • compute/client_library/snippets/instances/preemptible/create_preemptible.py:22, tag compute_preemptible_create
  • compute/client_library/snippets/instances/preemptible/is_preemptible.py:22, tag compute_preemptible_check
  • compute/client_library/snippets/instances/preemptible/preemption_history.py:22, tag compute_preemptible_history
  • compute/client_library/snippets/instances/reset.py:22, tag compute_reset_instance
  • compute/client_library/snippets/instances/resume.py:22, tag compute_resume_instance
  • compute/client_library/snippets/instances/spot/create.py:22, tag compute_spot_create
  • compute/client_library/snippets/instances/spot/is_spot_vm.py:22, tag compute_spot_check
  • compute/client_library/snippets/instances/start.py:22, tag compute_start_instance
  • compute/client_library/snippets/instances/start_encrypted.py:22, tag compute_start_enc_instance
  • compute/client_library/snippets/instances/stop.py:22, tag compute_stop_instance
  • compute/client_library/snippets/instances/suspend.py:22, tag compute_suspend_instance
  • compute/client_library/snippets/operations/operation_check.py:35, tag compute_instances_operation_check
  • compute/client_library/snippets/routes/create.py:22, tag compute_route_create
  • compute/client_library/snippets/routes/create_kms_route.py:34, tag compute_create_route_windows_activation
  • compute/client_library/snippets/routes/delete.py:22, tag compute_route_delete
  • compute/client_library/snippets/routes/list.py:22, tag compute_route_list
  • compute/client_library/snippets/snapshots/create.py:22, tag compute_snapshot_create
  • compute/client_library/snippets/snapshots/delete.py:22, tag compute_snapshot_delete
  • compute/client_library/snippets/snapshots/delete_by_filter.py:23, tag compute_snapshot_delete_by_filter
  • compute/client_library/snippets/snapshots/get.py:22, tag compute_snapshot_get
  • compute/client_library/snippets/snapshots/list.py:22, tag compute_snapshot_list
  • compute/client_library/snippets/usage_report/usage_reports.py:25, tag compute_instances_verify_default_value
  • compute/client_library/snippets/usage_report/usage_reports.py:26, tag compute_usage_report_set
  • compute/client_library/snippets/usage_report/usage_reports.py:27, tag compute_usage_report_get
  • compute/client_library/snippets/usage_report/usage_reports.py:28, tag compute_usage_report_disable
  • compute/client_library/snippets/usage_report/usage_reports.py:41, tag compute_usage_report_set
  • compute/client_library/snippets/usage_report/usage_reports.py:129, tag compute_usage_report_get
  • compute/client_library/snippets/usage_report/usage_reports.py:167, tag compute_usage_report_disable

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

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

@dandhlee dandhlee self-assigned this Nov 12, 2022
dandhlee
dandhlee reviewed Nov 14, 2022
View reviewed changes

@dandhlee dandhlee left a comment

Copy link
Copy Markdown
Collaborator

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.

Is there a DEE team alias to update for CODEOWNERS / Blunderbuss?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread compute/compute/README.md
@@ -0,0 +1,53 @@
# Code samples for the Compute Engine library

@dandhlee dandhlee Nov 14, 2022

Copy link
Copy Markdown
Collaborator

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.

Should the directory rather be something like compute/client_library/ instead of compute/compute? The latter is hard to dictate what kind of samples live under the directory by its name.

Sorry, something went wrong.

Uh oh!

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

All reactions

@m-strzelczyk m-strzelczyk Nov 15, 2022

Copy link
Copy Markdown
Contributor Author

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.

That's a great suggestion. Applying it now.

Sorry, something went wrong.

Uh oh!

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

All reactions
m-strzelczyk added 2 commits November 15, 2022 15:55
@m-strzelczyk
Renaming compute to client_library
a95ec4e
@m-strzelczyk
Merge remote-tracking branch 'origin/main' into python-compute-migration
1dbbd07
dandhlee
dandhlee approved these changes Nov 16, 2022
View reviewed changes

@dandhlee dandhlee left a comment

Copy link
Copy Markdown
Collaborator

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
@dandhlee
dandhlee merged commit edb0f17 into main Nov 16, 2022
@dandhlee
dandhlee deleted the python-compute-migration branch November 16, 2022 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dandhlee dandhlee dandhlee approved these changes

Uh oh!

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

Assignees

@dandhlee dandhlee

Labels

samples Issues that are directly related to samples.

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.

10 participants

@m-strzelczyk @dandhlee @kokoro-team @renovate-bot @yoshi-automation @FrodoTheTrue @Xmasreturns @rsamborski @parthea @savija-tv
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.