Skip to content

Commit 1200aa9

Browse files
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: 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> Co-authored-by: Bu Sun Kim <[email protected]>
1 parent d78e642 commit 1200aa9

File tree

69 files changed

+6160
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+6160
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateAnnotationSpecSet
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
async def sample_create_annotation_spec_set():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateAnnotationSpecSetRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = await client.create_annotation_spec_set(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateAnnotationSpecSet
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
def sample_create_annotation_spec_set():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateAnnotationSpecSetRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = client.create_annotation_spec_set(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateDataset
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
async def sample_create_dataset():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateDatasetRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = await client.create_dataset(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateDataset
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
def sample_create_dataset():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateDatasetRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = client.create_dataset(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateEvaluationJob
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
async def sample_create_evaluation_job():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateEvaluationJobRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = await client.create_evaluation_job(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateEvaluationJob
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
def sample_create_evaluation_job():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateEvaluationJobRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
response = client.create_evaluation_job(request=request)
41+
42+
# Handle the response
43+
print(response)
44+
45+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateInstruction
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
async def sample_create_instruction():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceAsyncClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateInstructionRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
operation = client.create_instruction(request=request)
41+
42+
print("Waiting for operation to complete...")
43+
44+
response = await operation.result()
45+
46+
# Handle the response
47+
print(response)
48+
49+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2020 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# Generated code. DO NOT EDIT!
17+
#
18+
# Snippet for CreateInstruction
19+
# NOTE: This snippet has been automatically generated for illustrative purposes only.
20+
# It may require modifications to work in your environment.
21+
22+
# To install the latest published package dependency, execute the following:
23+
# python3 -m pip install google-cloud-datalabeling
24+
25+
26+
# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync]
27+
from google.cloud import datalabeling_v1beta1
28+
29+
30+
def sample_create_instruction():
31+
# Create a client
32+
client = datalabeling_v1beta1.DataLabelingServiceClient()
33+
34+
# Initialize request argument(s)
35+
request = datalabeling_v1beta1.CreateInstructionRequest(
36+
parent="parent_value",
37+
)
38+
39+
# Make the request
40+
operation = client.create_instruction(request=request)
41+
42+
print("Waiting for operation to complete...")
43+
44+
response = operation.result()
45+
46+
# Handle the response
47+
print(response)
48+
49+
# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync]

0 commit comments

Comments
 (0)