-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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 (#329)
* chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: googleapis/googleapis@55b9e1e Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde 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
bb43458
commit 5fb080e
Showing
69 changed files
with
6,044 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_activate_job_trigger_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,45 @@ | ||
# -*- 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 ActivateJobTrigger | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_ActivateJobTrigger_async] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
async def sample_activate_job_trigger(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.ActivateJobTriggerRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.activate_job_trigger(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dlp_generated_dlp_v2_DlpService_ActivateJobTrigger_async] |
45 changes: 45 additions & 0 deletions
45
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_activate_job_trigger_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,45 @@ | ||
# -*- 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 ActivateJobTrigger | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_ActivateJobTrigger_sync] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
def sample_activate_job_trigger(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.ActivateJobTriggerRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
response = client.activate_job_trigger(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dlp_generated_dlp_v2_DlpService_ActivateJobTrigger_sync] |
43 changes: 43 additions & 0 deletions
43
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_cancel_dlp_job_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,43 @@ | ||
# -*- 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 CancelDlpJob | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_CancelDlpJob_async] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
async def sample_cancel_dlp_job(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.CancelDlpJobRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
await client.cancel_dlp_job(request=request) | ||
|
||
|
||
# [END dlp_generated_dlp_v2_DlpService_CancelDlpJob_async] |
43 changes: 43 additions & 0 deletions
43
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_cancel_dlp_job_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,43 @@ | ||
# -*- 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 CancelDlpJob | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_CancelDlpJob_sync] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
def sample_cancel_dlp_job(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.CancelDlpJobRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
client.cancel_dlp_job(request=request) | ||
|
||
|
||
# [END dlp_generated_dlp_v2_DlpService_CancelDlpJob_sync] |
45 changes: 45 additions & 0 deletions
45
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_create_deidentify_template_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,45 @@ | ||
# -*- 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 CreateDeidentifyTemplate | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_CreateDeidentifyTemplate_async] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
async def sample_create_deidentify_template(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.CreateDeidentifyTemplateRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_deidentify_template(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dlp_generated_dlp_v2_DlpService_CreateDeidentifyTemplate_async] |
45 changes: 45 additions & 0 deletions
45
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_create_deidentify_template_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,45 @@ | ||
# -*- 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 CreateDeidentifyTemplate | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_CreateDeidentifyTemplate_sync] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
def sample_create_deidentify_template(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.CreateDeidentifyTemplateRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_deidentify_template(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dlp_generated_dlp_v2_DlpService_CreateDeidentifyTemplate_sync] |
45 changes: 45 additions & 0 deletions
45
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_create_dlp_job_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,45 @@ | ||
# -*- 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 CreateDlpJob | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_CreateDlpJob_async] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
async def sample_create_dlp_job(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.CreateDlpJobRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_dlp_job(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dlp_generated_dlp_v2_DlpService_CreateDlpJob_async] |
45 changes: 45 additions & 0 deletions
45
dlp/generated_samples/dlp_generated_dlp_v2_dlp_service_create_dlp_job_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,45 @@ | ||
# -*- 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 CreateDlpJob | ||
# 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-dlp | ||
|
||
|
||
# [START dlp_generated_dlp_v2_DlpService_CreateDlpJob_sync] | ||
from google.cloud import dlp_v2 | ||
|
||
|
||
def sample_create_dlp_job(): | ||
# Create a client | ||
client = dlp_v2.DlpServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = dlp_v2.CreateDlpJobRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_dlp_job(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END dlp_generated_dlp_v2_DlpService_CreateDlpJob_sync] |
Oops, something went wrong.