-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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 (#194)
* 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> Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
- Loading branch information
Showing
69 changed files
with
6,160 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
..._generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_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 CreateAnnotationSpecSet | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
async def sample_create_annotation_spec_set(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateAnnotationSpecSetRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_annotation_spec_set(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async] |
45 changes: 45 additions & 0 deletions
45
...g_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_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 CreateAnnotationSpecSet | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
def sample_create_annotation_spec_set(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateAnnotationSpecSetRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_annotation_spec_set(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync] |
45 changes: 45 additions & 0 deletions
45
...datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_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 CreateDataset | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
async def sample_create_dataset(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateDatasetRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_dataset(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async] |
45 changes: 45 additions & 0 deletions
45
.../datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_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 CreateDataset | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
def sample_create_dataset(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateDatasetRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_dataset(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync] |
45 changes: 45 additions & 0 deletions
45
...eling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_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 CreateEvaluationJob | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
async def sample_create_evaluation_job(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateEvaluationJobRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_evaluation_job(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async] |
45 changes: 45 additions & 0 deletions
45
...beling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_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 CreateEvaluationJob | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
def sample_create_evaluation_job(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateEvaluationJobRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_evaluation_job(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync] |
49 changes: 49 additions & 0 deletions
49
...labeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_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 CreateInstruction | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
async def sample_create_instruction(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateInstructionRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.create_instruction(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async] |
49 changes: 49 additions & 0 deletions
49
...alabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_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 CreateInstruction | ||
# 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-datalabeling | ||
|
||
|
||
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync] | ||
from google.cloud import datalabeling_v1beta1 | ||
|
||
|
||
def sample_create_instruction(): | ||
# Create a client | ||
client = datalabeling_v1beta1.DataLabelingServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = datalabeling_v1beta1.CreateInstructionRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
operation = client.create_instruction(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = operation.result() | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync] |
Oops, something went wrong.