This repository was archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
feat!: generate with microgenerator #49
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a30e3d4
feat: generate with microgenerator
busunkim96 5a823ef
docs: fix snippets
busunkim96 51c6ee6
docs: add to docs
busunkim96 6a3b40c
docs: update UPGRADING
busunkim96 dfd22cd
chore: fix lint
busunkim96 4186b27
test: fail under 99
busunkim96 04cb849
chore: lower coverage to 99
busunkim96 30b2fd9
fix: use from_json to make message
busunkim96 9798cd5
docs: supported py versions >=3.6
busunkim96 fb9d45f
Update setup.py
busunkim96 661e475
chore: lint
busunkim96 c9a50ee
chore: regen
busunkim96 2a70bd4
chore(deps): use pubsub v2, remove unused import
busunkim96 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,35 +1,17 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # | ||
| # Copyright 2020 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # Generated by synthtool. DO NOT EDIT! | ||
| [run] | ||
| branch = True | ||
|
|
||
| [report] | ||
| fail_under = 100 | ||
| show_missing = True | ||
| omit = google/cloud/securitycenter/__init__.py | ||
| exclude_lines = | ||
| # Re-enable the standard pragma | ||
| pragma: NO COVER | ||
| # Ignore debug-only repr | ||
| def __repr__ | ||
| # Ignore abstract methods | ||
| raise NotImplementedError | ||
| omit = | ||
| */gapic/*.py | ||
| */proto/*.py | ||
| */core/*.py | ||
| */site-packages/*.py | ||
| # Ignore pkg_resources exceptions. | ||
| # This is added at the module level as a safeguard for if someone | ||
| # generates the code and tries to run it without pip installing. This | ||
| # makes it virtually impossible to test properly. | ||
| except pkg_resources.DistributionNotFound |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/bin/bash | ||
| # Copyright 2020 Google LLC. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| set -eo pipefail | ||
|
|
||
| function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} | ||
| function msg { println "$*" >&2 ;} | ||
| function println { printf '%s\n' "$(now) $*" ;} | ||
|
|
||
|
|
||
| # Populates requested secrets set in SECRET_MANAGER_KEYS from service account: | ||
| # kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com | ||
| SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" | ||
| msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" | ||
| mkdir -p ${SECRET_LOCATION} | ||
| for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") | ||
| do | ||
| msg "Retrieving secret ${key}" | ||
| docker run --entrypoint=gcloud \ | ||
| --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ | ||
| gcr.io/google.com/cloudsdktool/cloud-sdk \ | ||
| secrets versions access latest \ | ||
| --project cloud-devrel-kokoro-resources \ | ||
| --secret ${key} > \ | ||
| "${SECRET_LOCATION}/${key}" | ||
| if [[ $? == 0 ]]; then | ||
| msg "Secret written to ${SECRET_LOCATION}/${key}" | ||
| else | ||
| msg "Error retrieving secret ${key}" | ||
| fi | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.