Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.63.2 (#194)
Browse files Browse the repository at this point in the history
* 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 <8822365+busunkim96@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 24, 2022
1 parent d78e642 commit 1200aa9
Show file tree
Hide file tree
Showing 69 changed files with 6,160 additions and 0 deletions.
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]
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]
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]
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]
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]
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]
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]
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]
Loading

0 comments on commit 1200aa9

Please sign in to comment.