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 — feat: migrate code from googleapis/python-optimization by donmccasland · Pull Request #8474 · GoogleCloudPlatform/python-docs-samples

Conversation

@donmccasland

@donmccasland donmccasland commented Nov 8, 2022 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member
  • docs: add sync api samples with json request (Added badges for travis build and coverage #13)
  • docs: add get_operation code snippets (Updated tox.ini for passing PYTHONPATH env var #12)
  • docs: add code snippets for async api (Added GCLOUD_* and TEST_* envvar to passenv section. #18)
  • docs: add long timeout code snippet (Updated Caching #20)
  • docs: update operation id (Merging in storage samples. #23)
  • chore: run blacken on all directories with a noxfile (Create a unified README for ndb samples #16)
  • chore(deps): update dependency google-cloud-storage to v2.3.0 (Update memcache example to invalidate cache after new message posted. #24)
  • chore(python): add nox session to sort python imports (Fix bucket name envvar in README #26)
  • chore(deps): update dependency pytest to v7.1.2 (Slightly more readable tox.ini #29)
  • chore(deps): update dependency google-cloud-optimization to v0.1.1 (Adds Regression Test By Mocking Input #32)
  • chore(deps): update dependency google-cloud-optimization to v1 (Travis test is failing #35)
  • fix: require python 3.7+ (Move monitoring sample in, modified for ADC. #50)
  • chore(deps): update all dependencies (Added export format option #45)
  • chore(deps): update all dependencies (Add storagetransfer samples #55)
  • chore(deps): update all dependencies (Reword credential creation in README.md #57)
  • chore(deps): update all dependencies (Update to production storagetransfer service account #58)
  • chore(deps): update dependency google-cloud-optimization to v1.1.1 (Test in both python 2 and 3 #70)
  • chore(deps): update dependency pytest to v7.1.3 (Can discoverydoccaching be deprecated? #75)
  • chore: detect samples tests in nested directories (All appengine web tests should use webtest. #79)
  • chore(deps): update dependency google-cloud-optimization to v1.1.2 (Switching app engine tests to webtest and consolidating testing utils… #83)
  • chore(deps): update dependency google-cloud-optimization to v1.1.3 (There has got to be a better way to do bigquery/load_data_by_post #86)
  • chore(deps): update dependency pytest to v7.2.0 (Should we move Testing part in README to CONTRIBUTING? #87)

Description

Migrating samples from googleapis/python-optimization

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
changsongd and others added 23 commits April 6, 2022 17:11
@changsongd @SurferJeffAtGoogle
@gcf-owl-bot @leahecole @parthea
docs: add sync api samples with json request (#13)
aa64705
* add code snippets for sync and async api

* remove async test samples

* use f-string

* change project_id to input arg

* add noxfile

* 🦉 Updates from OwlBot post-processor

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

* rename noxfile and add requirements

* rm noxfile

* rm noxfile local

* add root noxfile

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

Co-authored-by: Leah E. Cole <[email protected]>

* Apply suggestions from code review

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

* 🦉 Updates from OwlBot post-processor

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

* Add commit to trigger kokoro

* add indentation

* add type annotations

Co-authored-by: Jeffrey Rennie <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Anthonios Partheniou <[email protected]>
@changsongd @SurferJeffAtGoogle
@gcf-owl-bot @leahecole @parthea @busunkim96
docs: add get_operation code snippets (#12)
4601bcf
* Add get_operation code snippets

* update comment

* docs: add sync api samples with json request (#13)

* add code snippets for sync and async api

* remove async test samples

* use f-string

* change project_id to input arg

* add noxfile

* 🦉 Updates from OwlBot post-processor

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

* rename noxfile and add requirements

* rm noxfile

* rm noxfile local

* add root noxfile

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

Co-authored-by: Leah E. Cole <[email protected]>

* Apply suggestions from code review

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

* Update noxfile.py

* 🦉 Updates from OwlBot post-processor

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

* Add commit to trigger kokoro

* add indentation

* add type annotations

Co-authored-by: Jeffrey Rennie <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Anthonios Partheniou <[email protected]>

* rebase and add type annotations

* fix operation_id type

* Update samples/snippets/get_operation.py

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

* Update samples/snippets/get_operation_test.py

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

* move TODO outside func, create operation in test

* lint fix

* fix asyncmodelconfig

* change model_config to list

* add blank line

* change request to dict

* change parent to project id

* remove model config

* Update samples/snippets/get_operation.py

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

* add TODO back

Co-authored-by: Jeffrey Rennie <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Bu Sun Kim <[email protected]>
@changsongd @loferris
docs: add code snippets for async api (#18)
8fe6675
* docs: add code snippets for async api

* fix lint and add storage to requirements

* iterator type annotation

* fix typo and test

* remove typing

* add None return type

Co-authored-by: Lo Ferris <[email protected]>
@changsongd
docs: add long timeout code snippet (#20)
f00be8e
* docs: add long timeout code snippet

* fix lint

* add timeout
@changsongd
docs: update operation id (#23)
bd3825c
@parthea @gcf-owl-bot
chore: run blacken on all directories with a noxfile (#16)
ea2013d
* chore: run blacken on all directories with a noxfile

* add missing import

* 🦉 Updates from OwlBot post-processor

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

* 🦉 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>
@renovate-bot
chore(deps): update dependency google-cloud-storage to v2.3.0 (#24)
5ea889d
@gcf-owl-bot
chore(python): add nox session to sort python imports (#26)
64a8934
Source-Link: googleapis/synthtool@1b71c10
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@renovate-bot
chore(deps): update dependency pytest to v7.1.2 (#29)
576dc17
@renovate-bot
chore(deps): update dependency google-cloud-optimization to v0.1.1 (#32)
6fd5238
@renovate-bot
chore(deps): update dependency google-cloud-optimization to v1 (#35)
6dfe340
@gcf-owl-bot @parthea
fix: require python 3.7+ (#50)
a484038
* chore(python): drop python 3.6

Source-Link: googleapis/synthtool@4f89b13
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c

* add api_description to .repo-metadata.json

* require python 3.7+ in setup.py

* remove python 3.6 sample configs

* 🦉 Updates from OwlBot post-processor

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

* fix imports for prerelease session

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
@renovate-bot @gcf-owl-bot @parthea
chore(deps): update all dependencies (#45)
226f37e
* 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]>
@renovate-bot @gcf-owl-bot @parthea
chore(deps): update all dependencies (#55)
a74b9ea
* 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]>
@renovate-bot @gcf-owl-bot @parthea
chore(deps): update all dependencies (#57)
3ec7ffd
* 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

* Update setup.py

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
@renovate-bot @gcf-owl-bot @parthea
chore(deps): update all dependencies (#58)
e902bec
* 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]>
@renovate-bot @parthea
chore(deps): update dependency google-cloud-optimization to v1.1.1 (#70)
f0e0b03
Co-authored-by: Anthonios Partheniou <[email protected]>
@renovate-bot
chore(deps): update dependency pytest to v7.1.3 (#75)
6c81459
@gcf-owl-bot
chore: detect samples tests in nested directories (#79)
e9ed704
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@renovate-bot
chore(deps): update dependency google-cloud-optimization to v1.1.2 (#83)
a42b9f1
@renovate-bot
chore(deps): update dependency google-cloud-optimization to v1.1.3 (#86)
06db1ee
@renovate-bot
chore(deps): update dependency pytest to v7.2.0 (#87)
60b0b26
@donmccasland
Merge remote-tracking branch 'migration/main' into python-optimizatio…
64cde18
…n-migration
@donmccasland
donmccasland requested review from a team as code owners November 8, 2022 22:51
@snippet-bot

snippet-bot Bot commented Nov 8, 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 4 region tags.
  • optimization/snippets/async_api.py:15, tag cloudoptimization_async_api
  • optimization/snippets/get_operation.py:15, tag cloudoptimization_get_operation
  • optimization/snippets/sync_api.py:15, tag cloudoptimization_sync_api
  • optimization/snippets/sync_api_with_long_timeout.py:15, tag cloudoptimization_long_timeout

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.

@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Nov 8, 2022
@blunderbuss-gcf blunderbuss-gcf Bot assigned leahecole Nov 8, 2022
donmccasland added 2 commits November 8, 2022 15:54
@donmccasland
removing noxfile.py
696f381
@donmccasland
Merge branch 'main' into python-optimization-migration
be61736
@donmccasland donmccasland added the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@snippet-bot snippet-bot Bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@dandhlee dandhlee added the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@snippet-bot snippet-bot Bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@dandhlee dandhlee assigned dandhlee and unassigned leahecole Nov 9, 2022
dandhlee
dandhlee requested changes Nov 9, 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.

Could you add CODEOWNERS and blunderbuss for api: cloudoptimization?

Sorry, something went wrong.

Uh oh!

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

All reactions
@donmccasland donmccasland added the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@snippet-bot snippet-bot Bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@donmccasland
Updating CODEOWNERS and blunderbuss.yml
fccca2d
@dandhlee dandhlee added the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@snippet-bot snippet-bot Bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Nov 9, 2022
@donmccasland
Merge branch 'main' into python-optimization-migration
f62e38f
dandhlee
dandhlee approved these changes Nov 9, 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 8501411 into main Nov 9, 2022
@dandhlee
dandhlee deleted the python-optimization-migration branch November 9, 2022 21:40
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.

6 participants

@donmccasland @dandhlee @leahecole @changsongd @parthea @renovate-bot
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.