-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use gapic-generator-python 0.63.2 (#281)
* chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: googleapis/googleapis@55b9e1e Source-Link: googleapis/googleapis-gen@bf4e86b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot 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>
- Loading branch information
1 parent
255208e
commit 7c2f4b6
Showing
153 changed files
with
15,906 additions
and
0 deletions.
There are no files selected for viewing
618 changes: 618 additions & 0 deletions
618
...ud-securitycenter/google/cloud/securitycenter_v1/services/security_center/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
649 changes: 649 additions & 0 deletions
649
...le-cloud-securitycenter/google/cloud/securitycenter_v1/services/security_center/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
361 changes: 361 additions & 0 deletions
361
...curitycenter/google/cloud/securitycenter_v1beta1/services/security_center/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
379 changes: 379 additions & 0 deletions
379
...oud-securitycenter/google/cloud/securitycenter_v1beta1/services/security_center/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
455 changes: 455 additions & 0 deletions
455
...ritycenter/google/cloud/securitycenter_v1p1beta1/services/security_center/async_client.py
Large diffs are not rendered by default.
Oops, something went wrong.
478 changes: 478 additions & 0 deletions
478
...d-securitycenter/google/cloud/securitycenter_v1p1beta1/services/security_center/client.py
Large diffs are not rendered by default.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
...es/securitycenter_generated_securitycenter_v1_security_center_bulk_mute_findings_async.py
This file contains 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,49 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for BulkMuteFindings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_BulkMuteFindings_async] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
async def sample_bulk_mute_findings(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = securitycenter_v1.BulkMuteFindingsRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.bulk_mute_findings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_BulkMuteFindings_async] |
49 changes: 49 additions & 0 deletions
49
...les/securitycenter_generated_securitycenter_v1_security_center_bulk_mute_findings_sync.py
This file contains 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,49 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for BulkMuteFindings | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_BulkMuteFindings_sync] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
def sample_bulk_mute_findings(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterClient() | ||
|
||
# Initialize request argument(s) | ||
request = securitycenter_v1.BulkMuteFindingsRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.bulk_mute_findings(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_BulkMuteFindings_sync] |
46 changes: 46 additions & 0 deletions
46
...amples/securitycenter_generated_securitycenter_v1_security_center_create_finding_async.py
This file contains 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,46 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateFinding | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_CreateFinding_async] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
async def sample_create_finding(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = securitycenter_v1.CreateFindingRequest( | ||
parent="parent_value", | ||
finding_id="finding_id_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_finding(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_CreateFinding_async] |
46 changes: 46 additions & 0 deletions
46
...samples/securitycenter_generated_securitycenter_v1_security_center_create_finding_sync.py
This file contains 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,46 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateFinding | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_CreateFinding_sync] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
def sample_create_finding(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterClient() | ||
|
||
# Initialize request argument(s) | ||
request = securitycenter_v1.CreateFindingRequest( | ||
parent="parent_value", | ||
finding_id="finding_id_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_finding(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_CreateFinding_sync] |
50 changes: 50 additions & 0 deletions
50
...es/securitycenter_generated_securitycenter_v1_security_center_create_mute_config_async.py
This file contains 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,50 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateMuteConfig | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_CreateMuteConfig_async] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
async def sample_create_mute_config(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
mute_config = securitycenter_v1.MuteConfig() | ||
mute_config.filter = "filter_value" | ||
|
||
request = securitycenter_v1.CreateMuteConfigRequest( | ||
parent="parent_value", | ||
mute_config=mute_config, | ||
mute_config_id="mute_config_id_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_mute_config(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_CreateMuteConfig_async] |
50 changes: 50 additions & 0 deletions
50
...les/securitycenter_generated_securitycenter_v1_security_center_create_mute_config_sync.py
This file contains 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,50 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateMuteConfig | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_CreateMuteConfig_sync] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
def sample_create_mute_config(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterClient() | ||
|
||
# Initialize request argument(s) | ||
mute_config = securitycenter_v1.MuteConfig() | ||
mute_config.filter = "filter_value" | ||
|
||
request = securitycenter_v1.CreateMuteConfigRequest( | ||
parent="parent_value", | ||
mute_config=mute_config, | ||
mute_config_id="mute_config_id_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_mute_config(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_CreateMuteConfig_sync] |
46 changes: 46 additions & 0 deletions
46
...itycenter_generated_securitycenter_v1_security_center_create_notification_config_async.py
This file contains 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,46 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateNotificationConfig | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_CreateNotificationConfig_async] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
async def sample_create_notification_config(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = securitycenter_v1.CreateNotificationConfigRequest( | ||
parent="parent_value", | ||
config_id="config_id_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_notification_config(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_CreateNotificationConfig_async] |
46 changes: 46 additions & 0 deletions
46
...ritycenter_generated_securitycenter_v1_security_center_create_notification_config_sync.py
This file contains 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,46 @@ | ||
# -*- 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 | ||
# | ||
# 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for CreateNotificationConfig | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install google-cloud-securitycenter | ||
|
||
|
||
# [START securitycenter_generated_securitycenter_v1_SecurityCenter_CreateNotificationConfig_sync] | ||
from google.cloud import securitycenter_v1 | ||
|
||
|
||
def sample_create_notification_config(): | ||
# Create a client | ||
client = securitycenter_v1.SecurityCenterClient() | ||
|
||
# Initialize request argument(s) | ||
request = securitycenter_v1.CreateNotificationConfigRequest( | ||
parent="parent_value", | ||
config_id="config_id_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_notification_config(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END securitycenter_generated_securitycenter_v1_SecurityCenter_CreateNotificationConfig_sync] |
Oops, something went wrong.