From 7858a280b05e09ba8d520c4d0bf006262705c322 Mon Sep 17 00:00:00 2001 From: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> Date: Fri, 7 Aug 2020 16:44:09 -0700 Subject: [PATCH 01/63] chore: move samples from python-docs-sample to here (#29) * Data Labeling Beta samples [(#2096)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2096) * add files * upate create_annotation_spec_set and test * add requirements.txt * update create_instruction and test * update import data and test * add label image and test * add label_text test * add label_video_test * add manage dataset and tests * flake * fix * add README * Adds updates including compute [(#2436)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2436) * Adds updates including compute * Python 2 compat pytest * Fixing weird \r\n issue from GH merge * Put asset tests back in * Re-add pod operator test * Hack parameter for k8s pod operator * Update datalabeling samples to hit test endpoint. [(#2641)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2641) * Auto-update dependencies. [(#2005)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2005) * Auto-update dependencies. * Revert update of appengine/flexible/datastore. * revert update of appengine/flexible/scipy * revert update of bigquery/bqml * revert update of bigquery/cloud-client * revert update of bigquery/datalab-migration * revert update of bigtable/quickstart * revert update of compute/api * revert update of container_registry/container_analysis * revert update of dataflow/run_template * revert update of datastore/cloud-ndb * revert update of dialogflow/cloud-client * revert update of dlp * revert update of functions/imagemagick * revert update of functions/ocr/app * revert update of healthcare/api-client/fhir * revert update of iam/api-client * revert update of iot/api-client/gcs_file_to_device * revert update of iot/api-client/mqtt_example * revert update of language/automl * revert update of run/image-processing * revert update of vision/automl * revert update testing/requirements.txt * revert update of vision/cloud-client/detect * revert update of vision/cloud-client/product_search * revert update of jobs/v2/api_client * revert update of jobs/v3/api_client * revert update of opencensus * revert update of translate/cloud-client * revert update to speech/cloud-client Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Co-authored-by: Doug Mahugh * Update datalabeling to match lint. [(#2642)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2642) * datalabeling: ensure all tests use test endpoint [(#2918)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2918) * datalabeling: ensure all tests use test endpoint * requires an input csv for text input, slight print statement cleanup Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com> * chore(deps): update dependency google-cloud-datalabeling to v0.4.0 [(#3081)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/3081) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [google-cloud-datalabeling](https://togithub.com/googleapis/python-datalabeling) | minor | `==0.3.0` -> `==0.4.0` | --- ### Release Notes
googleapis/python-datalabeling ### [`v0.4.0`](https://togithub.com/googleapis/python-datalabeling/blob/master/CHANGELOG.md#​040-httpswwwgithubcomgoogleapispython-datalabelingcomparev030v040-2020-01-31) [Compare Source](https://togithub.com/googleapis/python-datalabeling/compare/v0.3.0...v0.4.0) ##### Features - **datalabeling:** undeprecate resource name helper methods (via synth) ([#​10039](https://www.github.com/googleapis/python-datalabeling/issues/10039)) ([88f8090](https://www.github.com/googleapis/python-datalabeling/commit/88f809008ee6a709c02c78b1d93af779fab19adb)) ##### Bug Fixes - **datalabeling:** deprecate resource name helper methods (via synth) ([#​9832](https://www.github.com/googleapis/python-datalabeling/issues/9832)) ([e5f9021](https://www.github.com/googleapis/python-datalabeling/commit/e5f902154ebe7fcb139aa405babfe9993fd51319))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples). * Simplify noxfile setup. [(#2806)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/2806) * chore(deps): update dependency requests to v2.23.0 * Simplify noxfile and add version control. * Configure appengine/standard to only test Python 2.7. * Update Kokokro configs to match noxfile. * Add requirements-test to each folder. * Remove Py2 versions from everything execept appengine/standard. * Remove conftest.py. * Remove appengine/standard/conftest.py * Remove 'no-sucess-flaky-report' from pytest.ini. * Add GAE SDK back to appengine/standard tests. * Fix typo. * Roll pytest to python 2 version. * Add a bunch of testing requirements. * Remove typo. * Add appengine lib directory back in. * Add some additional requirements. * Fix issue with flake8 args. * Even more requirements. * Readd appengine conftest.py. * Add a few more requirements. * Even more Appengine requirements. * Add webtest for appengine/standard/mailgun. * Add some additional requirements. * Add workaround for issue with mailjet-rest. * Add responses for appengine/standard/mailjet. Co-authored-by: Renovate Bot * testing: mark some tests as flaky [(#3288)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/3288) fixes #3138 * [datalabeling] testing: wrap rpcs with backoff [(#3443)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/3443) * wrap all the rpcs with backoff * add a shared testing lib * remove flaky * [datalabeling] fix: clean up old datasets before the test [(#3707)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/3707) fixes #3710 fixes #3711 * [datalabeling] testing: retry upon ServerError [(#3762)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/3762) fixes #3760 * Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4022) * chore(deps): update dependency pytest to v5.4.3 [(#4279)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4279) * chore(deps): update dependency pytest to v5.4.3 * specify pytest for python 2 in appengine Co-authored-by: Leah Cole * Update dependency pytest to v6 [(#4390)](https://github.com/GoogleCloudPlatform/python-docs-samples/issues/4390) * chore: update templates * chore: fix docs error * chore: skip unavailable samples * chore: use staging endpoint for labeling tests Co-authored-by: Rebecca Taylor Co-authored-by: Gus Class Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com> Co-authored-by: DPEBot Co-authored-by: Doug Mahugh Co-authored-by: Noah Negrey Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Co-authored-by: WhiteSource Renovate Co-authored-by: Takashi Matsuo Co-authored-by: Leah Cole Co-authored-by: Bu Sun Kim --- datalabeling/AUTHORING_GUIDE.md | 1 + datalabeling/CONTRIBUTING.md | 1 + datalabeling/snippets/README.rst | 78 ++++++ datalabeling/snippets/README.rst.in | 18 ++ .../snippets/create_annotation_spec_set.py | 87 +++++++ .../create_annotation_spec_set_test.py | 53 +++++ datalabeling/snippets/create_instruction.py | 103 ++++++++ .../snippets/create_instruction_test.py | 54 +++++ datalabeling/snippets/export_data.py | 87 +++++++ datalabeling/snippets/import_data.py | 80 +++++++ datalabeling/snippets/import_data_test.py | 51 ++++ datalabeling/snippets/label_image.py | 95 ++++++++ datalabeling/snippets/label_image_test.py | 93 ++++++++ datalabeling/snippets/label_text.py | 92 +++++++ datalabeling/snippets/label_text_test.py | 97 ++++++++ datalabeling/snippets/label_video.py | 92 +++++++ datalabeling/snippets/label_video_test.py | 97 ++++++++ datalabeling/snippets/manage_dataset.py | 177 ++++++++++++++ datalabeling/snippets/manage_dataset_test.py | 106 +++++++++ datalabeling/snippets/noxfile.py | 224 ++++++++++++++++++ datalabeling/snippets/noxfile_config.py | 41 ++++ datalabeling/snippets/requirements-test.txt | 2 + datalabeling/snippets/requirements.txt | 1 + datalabeling/snippets/testing_lib.py | 105 ++++++++ 24 files changed, 1835 insertions(+) create mode 100644 datalabeling/AUTHORING_GUIDE.md create mode 100644 datalabeling/CONTRIBUTING.md create mode 100644 datalabeling/snippets/README.rst create mode 100644 datalabeling/snippets/README.rst.in create mode 100644 datalabeling/snippets/create_annotation_spec_set.py create mode 100644 datalabeling/snippets/create_annotation_spec_set_test.py create mode 100644 datalabeling/snippets/create_instruction.py create mode 100644 datalabeling/snippets/create_instruction_test.py create mode 100644 datalabeling/snippets/export_data.py create mode 100644 datalabeling/snippets/import_data.py create mode 100644 datalabeling/snippets/import_data_test.py create mode 100644 datalabeling/snippets/label_image.py create mode 100644 datalabeling/snippets/label_image_test.py create mode 100644 datalabeling/snippets/label_text.py create mode 100644 datalabeling/snippets/label_text_test.py create mode 100644 datalabeling/snippets/label_video.py create mode 100644 datalabeling/snippets/label_video_test.py create mode 100644 datalabeling/snippets/manage_dataset.py create mode 100644 datalabeling/snippets/manage_dataset_test.py create mode 100644 datalabeling/snippets/noxfile.py create mode 100644 datalabeling/snippets/noxfile_config.py create mode 100644 datalabeling/snippets/requirements-test.txt create mode 100644 datalabeling/snippets/requirements.txt create mode 100644 datalabeling/snippets/testing_lib.py diff --git a/datalabeling/AUTHORING_GUIDE.md b/datalabeling/AUTHORING_GUIDE.md new file mode 100644 index 000000000000..55c97b32f4c1 --- /dev/null +++ b/datalabeling/AUTHORING_GUIDE.md @@ -0,0 +1 @@ +See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md \ No newline at end of file diff --git a/datalabeling/CONTRIBUTING.md b/datalabeling/CONTRIBUTING.md new file mode 100644 index 000000000000..34c882b6f1a3 --- /dev/null +++ b/datalabeling/CONTRIBUTING.md @@ -0,0 +1 @@ +See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/CONTRIBUTING.md \ No newline at end of file diff --git a/datalabeling/snippets/README.rst b/datalabeling/snippets/README.rst new file mode 100644 index 000000000000..bf5949b8cb79 --- /dev/null +++ b/datalabeling/snippets/README.rst @@ -0,0 +1,78 @@ +.. This file is automatically generated. Do not edit this file directly. + +Google Cloud Data Labeling Service Python Samples +=============================================================================== + +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datalabeling/README.rst + + +This directory contains samples for Google Cloud Data Labeling Service. `Google Cloud Data Labeling Service`_ allows developers to request having human labelers label a collection of data that you plan to use to train a custom machine learning model. + + + + +.. _Google Cloud Data Labeling Service: https://cloud.google.com/data-labeling/docs/ + +Setup +------------------------------------------------------------------------------- + + +Authentication +++++++++++++++ + +This sample requires you to have authentication setup. Refer to the +`Authentication Getting Started Guide`_ for instructions on setting up +credentials for applications. + +.. _Authentication Getting Started Guide: + https://cloud.google.com/docs/authentication/getting-started + +Install Dependencies +++++++++++++++++++++ + +#. Clone python-docs-samples and change directory to the sample directory you want to use. + + .. code-block:: bash + + $ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git + +#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions. + + .. _Python Development Environment Setup Guide: + https://cloud.google.com/python/setup + +#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+. + + .. code-block:: bash + + $ virtualenv env + $ source env/bin/activate + +#. Install the dependencies needed to run the samples. + + .. code-block:: bash + + $ pip install -r requirements.txt + +.. _pip: https://pip.pypa.io/ +.. _virtualenv: https://virtualenv.pypa.io/ + + + +The client library +------------------------------------------------------------------------------- + +This sample uses the `Google Cloud Client Library for Python`_. +You can read the documentation for more details on API usage and use GitHub +to `browse the source`_ and `report issues`_. + +.. _Google Cloud Client Library for Python: + https://googlecloudplatform.github.io/google-cloud-python/ +.. _browse the source: + https://github.com/GoogleCloudPlatform/google-cloud-python +.. _report issues: + https://github.com/GoogleCloudPlatform/google-cloud-python/issues + + +.. _Google Cloud SDK: https://cloud.google.com/sdk/ \ No newline at end of file diff --git a/datalabeling/snippets/README.rst.in b/datalabeling/snippets/README.rst.in new file mode 100644 index 000000000000..c87a1ff89b49 --- /dev/null +++ b/datalabeling/snippets/README.rst.in @@ -0,0 +1,18 @@ +# This file is used to generate README.rst + +product: + name: Google Cloud Data Labeling Service + short_name: Cloud Data Labeling + url: https://cloud.google.com/data-labeling/docs/ + description: > + `Google Cloud Data Labeling Service`_ allows developers to request having + human labelers label a collection of data that you plan to use to train a + custom machine learning model. + +setup: +- auth +- install_deps + +cloud_client_library: true + +folder: datalabeling \ No newline at end of file diff --git a/datalabeling/snippets/create_annotation_spec_set.py b/datalabeling/snippets/create_annotation_spec_set.py new file mode 100644 index 000000000000..4a8add772e6a --- /dev/null +++ b/datalabeling/snippets/create_annotation_spec_set.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_create_annotation_spec_set_beta] +def create_annotation_spec_set(project_id): + """Creates a data labeling annotation spec set for the given + Google Cloud project. + """ + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_create_annotation_spec_set_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_create_annotation_spec_set_beta] + + project_path = client.project_path(project_id) + + annotation_spec_1 = datalabeling.types.AnnotationSpec( + display_name='label_1', + description='label_description_1' + ) + + annotation_spec_2 = datalabeling.types.AnnotationSpec( + display_name='label_2', + description='label_description_2' + ) + + annotation_spec_set = datalabeling.types.AnnotationSpecSet( + display_name='YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME', + description='YOUR_DESCRIPTION', + annotation_specs=[annotation_spec_1, annotation_spec_2] + ) + + response = client.create_annotation_spec_set( + project_path, annotation_spec_set) + + # The format of the resource name: + # project_id/{project_id}/annotationSpecSets/{annotationSpecSets_id} + print('The annotation_spec_set resource name: {}'.format(response.name)) + print('Display name: {}'.format(response.display_name)) + print('Description: {}'.format(response.description)) + print('Annotation specs:') + for annotation_spec in response.annotation_specs: + print('\tDisplay name: {}'.format(annotation_spec.display_name)) + print('\tDescription: {}\n'.format(annotation_spec.description)) + + return response +# [END datalabeling_create_annotation_spec_set_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + parser.add_argument( + '--project-id', + help='Project ID. Required.', + required=True + ) + + args = parser.parse_args() + + create_annotation_spec_set(args.project_id) diff --git a/datalabeling/snippets/create_annotation_spec_set_test.py b/datalabeling/snippets/create_annotation_spec_set_test.py new file mode 100644 index 000000000000..6ae5ee5d1b3c --- /dev/null +++ b/datalabeling/snippets/create_annotation_spec_set_test.py @@ -0,0 +1,53 @@ +#!/usr/bin/env python + +# Copyright 2019 Google, Inc +# +# 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. + +import os + +import backoff +from google.api_core.exceptions import ServerError +import pytest + +import create_annotation_spec_set +import testing_lib + + +PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') + + +@pytest.fixture(scope='module') +def cleaner(): + resource_names = [] + + yield resource_names + + for resource_name in resource_names: + testing_lib.delete_annotation_spec_set(resource_name) + + +def test_create_annotation_spec_set(cleaner, capsys): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + return create_annotation_spec_set.create_annotation_spec_set(PROJECT_ID) + + response = run_sample() + + # For cleanup + cleaner.append(response.name) + + out, _ = capsys.readouterr() + assert 'The annotation_spec_set resource name:' in out diff --git a/datalabeling/snippets/create_instruction.py b/datalabeling/snippets/create_instruction.py new file mode 100644 index 000000000000..5495acbaf18d --- /dev/null +++ b/datalabeling/snippets/create_instruction.py @@ -0,0 +1,103 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_create_instruction_beta] +def create_instruction(project_id, data_type, instruction_gcs_uri): + """ Creates a data labeling PDF instruction for the given Google Cloud + project. The PDF file should be uploaded to the project in + Google Cloud Storage. + """ + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_create_instruction_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_create_instruction_beta] + + project_path = client.project_path(project_id) + + pdf_instruction = datalabeling.types.PdfInstruction( + gcs_file_uri=instruction_gcs_uri) + + instruction = datalabeling.types.Instruction( + display_name='YOUR_INSTRUCTION_DISPLAY_NAME', + description='YOUR_DESCRIPTION', + data_type=data_type, + pdf_instruction=pdf_instruction + ) + + operation = client.create_instruction(project_path, instruction) + + result = operation.result() + + # The format of the resource name: + # project_id/{project_id}/instruction/{instruction_id} + print('The instruction resource name: {}'.format(result.name)) + print('Display name: {}'.format(result.display_name)) + print('Description: {}'.format(result.description)) + print('Create time:') + print('\tseconds: {}'.format(result.create_time.seconds)) + print('\tnanos: {}'.format(result.create_time.nanos)) + print('Data type: {}'.format( + datalabeling.enums.DataType(result.data_type).name)) + print('Pdf instruction:') + print('\tGcs file uri: {}\n'.format( + result.pdf_instruction.gcs_file_uri)) + + return result +# [END datalabeling_create_instruction_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + parser.add_argument( + '--project-id', + help='Project ID. Required.', + required=True + ) + + parser.add_argument( + '--data-type', + help='Data type. Only support IMAGE, VIDEO, TEXT and AUDIO. Required.', + required=True + ) + + parser.add_argument( + '--instruction-gcs-uri', + help='The URI of Google Cloud Storage of the instruction. Required.', + required=True + ) + + args = parser.parse_args() + + create_instruction( + args.project_id, + args.data_type, + args.instruction_gcs_uri + ) diff --git a/datalabeling/snippets/create_instruction_test.py b/datalabeling/snippets/create_instruction_test.py new file mode 100644 index 000000000000..b164da0c13ba --- /dev/null +++ b/datalabeling/snippets/create_instruction_test.py @@ -0,0 +1,54 @@ +#!/usr/bin/env python + +# Copyright 2019 Google, Inc +# +# 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. + +import os + +import backoff +from google.api_core.exceptions import ServerError +import pytest + +import create_instruction +import testing_lib + + +PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') +INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' + '/instruction/test.pdf') + + +@pytest.fixture(scope='module') +def cleaner(): + resource_names = [] + + yield resource_names + + for resource_name in resource_names: + testing_lib.delete_instruction(resource_name) + + +def test_create_instruction(cleaner, capsys): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + return create_instruction.create_instruction( + PROJECT_ID, 'IMAGE', INSTRUCTION_GCS_URI) + + instruction = run_sample() + cleaner.append(instruction.name) + + out, _ = capsys.readouterr() + assert 'The instruction resource name: ' in out diff --git a/datalabeling/snippets/export_data.py b/datalabeling/snippets/export_data.py new file mode 100644 index 000000000000..f70dc9c588d7 --- /dev/null +++ b/datalabeling/snippets/export_data.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_export_data_beta] +def export_data(dataset_resource_name, annotated_dataset_resource_name, + export_gcs_uri): + """Exports a dataset from the given Google Cloud project.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_export_data_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_export_data_beta] + + gcs_destination = datalabeling.types.GcsDestination( + output_uri=export_gcs_uri, mime_type='text/csv') + + output_config = datalabeling.types.OutputConfig( + gcs_destination=gcs_destination) + + response = client.export_data( + dataset_resource_name, + annotated_dataset_resource_name, + output_config + ) + + print('Dataset ID: {}\n'.format(response.result().dataset)) + print('Output config:') + print('\tGcs destination:') + print('\t\tOutput URI: {}\n'.format( + response.result().output_config.gcs_destination.output_uri)) +# [END datalabeling_export_data_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + parser.add_argument( + '--dataset-resource-name', + help='Dataset resource name. Required.', + required=True + ) + + parser.add_argument( + '--annotated-dataset-resource-name', + help='Annotated Dataset resource name. Required.', + required=True + ) + + parser.add_argument( + '--export-gcs-uri', + help='The export GCS URI. Required.', + required=True + ) + + args = parser.parse_args() + + export_data( + args.dataset_resource_name, + args.annotated_dataset_resource_name, + args.export_gcs_uri + ) diff --git a/datalabeling/snippets/import_data.py b/datalabeling/snippets/import_data.py new file mode 100644 index 000000000000..01c3201845f0 --- /dev/null +++ b/datalabeling/snippets/import_data.py @@ -0,0 +1,80 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_import_data_beta] +def import_data(dataset_resource_name, data_type, input_gcs_uri): + """Imports data to the given Google Cloud project and dataset.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_import_data_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_import_data_beta] + + gcs_source = datalabeling.types.GcsSource( + input_uri=input_gcs_uri, mime_type='text/csv') + + csv_input_config = datalabeling.types.InputConfig( + data_type=data_type, gcs_source=gcs_source) + + response = client.import_data(dataset_resource_name, csv_input_config) + + result = response.result() + + # The format of resource name: + # project_id/{project_id}/datasets/{dataset_id} + print('Dataset resource name: {}\n'.format(result.dataset)) + + return result +# [END datalabeling_import_data_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + parser.add_argument( + '--dataset-resource-name', + help='Dataset resource name. Required.', + required=True + ) + + parser.add_argument( + '--data-type', + help='Data type. Only support IMAGE, VIDEO, TEXT and AUDIO. Required.', + required=True + ) + + parser.add_argument( + '--input-gcs-uri', + help='The GCS URI of the input dataset. Required.', + required=True + ) + + args = parser.parse_args() + + import_data(args.dataset_resource_name, args.data_type, args.input_gcs_uri) diff --git a/datalabeling/snippets/import_data_test.py b/datalabeling/snippets/import_data_test.py new file mode 100644 index 000000000000..246cfba4b573 --- /dev/null +++ b/datalabeling/snippets/import_data_test.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python + +# Copyright 2019 Google, Inc +# +# 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. + +import os + +import backoff +from google.api_core.exceptions import ServerError +import pytest + +import import_data +import testing_lib + + +PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') +INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/image/image_dataset.csv' + + +@pytest.fixture(scope='module') +def dataset(): + # create a temporary dataset + dataset = testing_lib.create_dataset(PROJECT_ID) + + yield dataset + + # tear down + testing_lib.delete_dataset(dataset.name) + + +def test_import_data(capsys, dataset): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + import_data.import_data(dataset.name, 'IMAGE', INPUT_GCS_URI) + + run_sample() + out, _ = capsys.readouterr() + assert 'Dataset resource name: ' in out diff --git a/datalabeling/snippets/label_image.py b/datalabeling/snippets/label_image.py new file mode 100644 index 000000000000..19a10ebc83c5 --- /dev/null +++ b/datalabeling/snippets/label_image.py @@ -0,0 +1,95 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_label_image_beta] +def label_image(dataset_resource_name, instruction_resource_name, + annotation_spec_set_resource_name): + """Labels an image dataset.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_label_image_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_label_image_beta] + + basic_config = datalabeling.types.HumanAnnotationConfig( + instruction=instruction_resource_name, + annotated_dataset_display_name='YOUR_ANNOTATED_DATASET_DISPLAY_NAME', + label_group='YOUR_LABEL_GROUP', + replica_count=1 + ) + + feature = datalabeling.enums.LabelImageRequest.Feature.CLASSIFICATION + + config = datalabeling.types.ImageClassificationConfig( + annotation_spec_set=annotation_spec_set_resource_name, + allow_multi_label=False, + answer_aggregation_type=datalabeling.enums.StringAggregationType + .MAJORITY_VOTE + ) + + response = client.label_image( + dataset_resource_name, + basic_config, + feature, + image_classification_config=config + ) + + print('Label_image operation name: {}'.format(response.operation.name)) + return response +# [END datalabeling_label_image_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + parser.add_argument( + '--dataset-resource-name', + help='Dataset resource name. Required.', + required=True + ) + + parser.add_argument( + '--instruction-resource-name', + help='Instruction resource name. Required.', + required=True + ) + + parser.add_argument( + '--annotation-spec-set-resource-name', + help='Annotation spec set resource name. Required.', + required=True + ) + + args = parser.parse_args() + + label_image( + args.dataset_resource_name, + args.instruction_resource_name, + args.annotation_spec_set_resource_name + ) diff --git a/datalabeling/snippets/label_image_test.py b/datalabeling/snippets/label_image_test.py new file mode 100644 index 000000000000..a6feee42c1d8 --- /dev/null +++ b/datalabeling/snippets/label_image_test.py @@ -0,0 +1,93 @@ +#!/usr/bin/env python + +# Copyright 2019 Google, Inc +# +# 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. + +import os + +import backoff +from google.api_core.exceptions import ServerError +import pytest + +import label_image +import testing_lib + + +PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') +INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/image/image_dataset.csv' +INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' + '/instruction/test.pdf') + + +@pytest.fixture(scope='module') +def dataset(): + # create a temporary dataset + dataset = testing_lib.create_dataset(PROJECT_ID) + + testing_lib.import_data(dataset.name, 'IMAGE', INPUT_GCS_URI) + yield dataset + + # tear down + testing_lib.delete_dataset(dataset.name) + + +@pytest.fixture(scope='module') +def annotation_spec_set(): + # create a temporary annotation_spec_set + response = testing_lib.create_annotation_spec_set(PROJECT_ID) + + yield response + + testing_lib.delete_annotation_spec_set(response.name) + + +@pytest.fixture(scope='module') +def instruction(): + # create a temporary instruction + instruction = testing_lib.create_instruction( + PROJECT_ID, 'IMAGE', INSTRUCTION_GCS_URI) + + yield instruction + + # tear down + testing_lib.delete_instruction(instruction.name) + + +@pytest.fixture(scope='module') +def cleaner(): + resource_names = [] + + yield resource_names + + for resource_name in resource_names: + testing_lib.cancel_operation(resource_name) + + +# Passing in dataset as the last argument in test_label_image since it needs +# to be deleted before the annotation_spec_set can be deleted. +def test_label_image( + capsys, annotation_spec_set, instruction, dataset, cleaner): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + # Start labeling. + return label_image.label_image( + dataset.name, instruction.name, annotation_spec_set.name) + + response = run_sample() + cleaner.append(response.operation.name) + + out, _ = capsys.readouterr() + assert 'Label_image operation name: ' in out diff --git a/datalabeling/snippets/label_text.py b/datalabeling/snippets/label_text.py new file mode 100644 index 000000000000..6b8659035975 --- /dev/null +++ b/datalabeling/snippets/label_text.py @@ -0,0 +1,92 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_label_text_beta] +def label_text(dataset_resource_name, instruction_resource_name, + annotation_spec_set_resource_name): + """Labels a text dataset.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_label_text_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_label_text_beta] + + basic_config = datalabeling.types.HumanAnnotationConfig( + instruction=instruction_resource_name, + annotated_dataset_display_name='YOUR_ANNOTATED_DATASET_DISPLAY_NAME', + label_group='YOUR_LABEL_GROUP', + replica_count=1 + ) + + feature = (datalabeling.enums.LabelTextRequest. + Feature.TEXT_ENTITY_EXTRACTION) + + config = datalabeling.types.TextEntityExtractionConfig( + annotation_spec_set=annotation_spec_set_resource_name) + + response = client.label_text( + parent=dataset_resource_name, + basic_config=basic_config, + feature=feature, + text_entity_extraction_config=config + ) + + print('Label_text operation name: {}'.format(response.operation.name)) + return response +# [END datalabeling_label_text_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + parser.add_argument( + '--dataset-resource-name', + help='Dataset resource name. Required.', + required=True + ) + + parser.add_argument( + '--instruction-resource-name', + help='Instruction resource name. Required.', + required=True + ) + + parser.add_argument( + '--annotation-spec-set-resource-name', + help='Annotation spec set resource name. Required.', + required=True + ) + + args = parser.parse_args() + + label_text( + args.dataset_resource_name, + args.instruction_resource_name, + args.annotation_spec_set_resource_name + ) diff --git a/datalabeling/snippets/label_text_test.py b/datalabeling/snippets/label_text_test.py new file mode 100644 index 000000000000..c90024b97336 --- /dev/null +++ b/datalabeling/snippets/label_text_test.py @@ -0,0 +1,97 @@ +#!/usr/bin/env python + +# Copyright 2019 Google, Inc +# +# 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. + +import os + +import backoff +from google.api_core.exceptions import ServerError +import pytest + +import label_text +import testing_lib + +PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') +INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/text/input.csv' +INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' + '/instruction/test.pdf') + + +@pytest.fixture(scope='module') +def dataset(): + # create a temporary dataset + dataset = testing_lib.create_dataset(PROJECT_ID) + + testing_lib.import_data(dataset.name, 'TEXT', INPUT_GCS_URI) + + yield dataset + + # tear down + testing_lib.delete_dataset(dataset.name) + + +@pytest.fixture(scope='module') +def annotation_spec_set(): + # create a temporary annotation_spec_set + response = testing_lib.create_annotation_spec_set(PROJECT_ID) + + yield response + + testing_lib.delete_annotation_spec_set(response.name) + + +@pytest.fixture(scope='module') +def instruction(): + # create a temporary instruction + instruction = testing_lib.create_instruction( + PROJECT_ID, 'IMAGE', INSTRUCTION_GCS_URI) + + yield instruction + + # tear down + testing_lib.delete_instruction(instruction.name) + + +@pytest.fixture(scope='module') +def cleaner(): + resource_names = [] + + yield resource_names + + for resource_name in resource_names: + testing_lib.cancel_operation(resource_name) + + +# Passing in dataset as the last argument in test_label_image since it needs +# to be deleted before the annotation_spec_set can be deleted. +@pytest.mark.skip("Constantly failing") +def test_label_text(capsys, annotation_spec_set, instruction, dataset, cleaner): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + # Start labeling. + return label_text.label_text( + dataset.name, instruction.name, annotation_spec_set.name) + + response = run_sample() + cleaner.append(response.operation.name) + + out, _ = capsys.readouterr() + assert 'Label_text operation name: ' in out + + # Cancels the labeling operation. + response.cancel() + assert response.cancelled() is True diff --git a/datalabeling/snippets/label_video.py b/datalabeling/snippets/label_video.py new file mode 100644 index 000000000000..a3425b4745c0 --- /dev/null +++ b/datalabeling/snippets/label_video.py @@ -0,0 +1,92 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_label_video_beta] +def label_video(dataset_resource_name, instruction_resource_name, + annotation_spec_set_resource_name): + """Labels a video dataset.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_label_video_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_label_video_beta] + + basic_config = datalabeling.types.HumanAnnotationConfig( + instruction=instruction_resource_name, + annotated_dataset_display_name='YOUR_ANNOTATED_DATASET_DISPLAY_NAME', + label_group='YOUR_LABEL_GROUP', + replica_count=1 + ) + + feature = datalabeling.enums.LabelVideoRequest.Feature.OBJECT_TRACKING + + config = datalabeling.types.ObjectTrackingConfig( + annotation_spec_set=annotation_spec_set_resource_name + ) + + response = client.label_video( + dataset_resource_name, + basic_config, + feature, + object_tracking_config=config + ) + + print('Label_video operation name: {}'.format(response.operation.name)) + return response +# [END datalabeling_label_video_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + parser.add_argument( + '--dataset-resource-name', + help='Dataset resource name. Required.', + required=True + ) + + parser.add_argument( + '--instruction-resource-name', + help='Instruction resource name. Required.', + required=True + ) + + parser.add_argument( + '--annotation-spec-set-resource-name', + help='Annotation spec set resource name. Required.', + required=True + ) + + args = parser.parse_args() + + label_video( + args.dataset_resource_name, + args.instruction_resource_name, + args.annotation_spec_set_resource_name + ) diff --git a/datalabeling/snippets/label_video_test.py b/datalabeling/snippets/label_video_test.py new file mode 100644 index 000000000000..05d3c5a3b124 --- /dev/null +++ b/datalabeling/snippets/label_video_test.py @@ -0,0 +1,97 @@ +#!/usr/bin/env python + +# Copyright 2019 Google, Inc +# +# 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. + +import os + +import backoff +from google.api_core.exceptions import ServerError +import pytest + +import label_video +import testing_lib + +PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') +INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/videos/video_dataset.csv' +INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' + '/instruction/test.pdf') + + +@pytest.fixture(scope='module') +def dataset(): + # create a temporary dataset + dataset = testing_lib.create_dataset(PROJECT_ID) + + testing_lib.import_data(dataset.name, 'VIDEO', INPUT_GCS_URI) + + yield dataset + + # tear down + testing_lib.delete_dataset(dataset.name) + + +@pytest.fixture(scope='module') +def annotation_spec_set(): + # create a temporary annotation_spec_set + response = testing_lib.create_annotation_spec_set(PROJECT_ID) + + yield response + + testing_lib.delete_annotation_spec_set(response.name) + + +@pytest.fixture(scope='module') +def instruction(): + # create a temporary instruction + instruction = testing_lib.create_instruction( + PROJECT_ID, 'VIDEO', INSTRUCTION_GCS_URI) + + yield instruction + + # tear down + testing_lib.delete_instruction(instruction.name) + + +@pytest.fixture(scope='module') +def cleaner(): + resource_names = [] + + yield resource_names + + for resource_name in resource_names: + testing_lib.cancel_operation(resource_name) + + +# Passing in dataset as the last argument in test_label_image since it needs +# to be deleted before the annotation_spec_set can be deleted. +def test_label_video( + capsys, annotation_spec_set, instruction, dataset, cleaner): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + # Start labeling. + return label_video.label_video( + dataset.name, instruction.name, annotation_spec_set.name) + + response = run_sample() + cleaner.append(response.operation.name) + + out, _ = capsys.readouterr() + assert 'Label_video operation name: ' in out + + # Cancels the labeling operation. + response.cancel() + assert response.cancelled() is True diff --git a/datalabeling/snippets/manage_dataset.py b/datalabeling/snippets/manage_dataset.py new file mode 100644 index 000000000000..a100bf4b9b22 --- /dev/null +++ b/datalabeling/snippets/manage_dataset.py @@ -0,0 +1,177 @@ +#!/usr/bin/env python + +# Copyright 2019 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. + +import argparse +import os + +from google.api_core.client_options import ClientOptions + + +# [START datalabeling_create_dataset_beta] +def create_dataset(project_id): + """Creates a dataset for the given Google Cloud project.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_create_dataset_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_create_dataset_beta] + + formatted_project_name = client.project_path(project_id) + + dataset = datalabeling.types.Dataset( + display_name='YOUR_DATASET_SET_DISPLAY_NAME', + description='YOUR_DESCRIPTION' + ) + + response = client.create_dataset(formatted_project_name, dataset) + + # The format of resource name: + # project_id/{project_id}/datasets/{dataset_id} + print('The dataset resource name: {}'.format(response.name)) + print('Display name: {}'.format(response.display_name)) + print('Description: {}'.format(response.description)) + print('Create time:') + print('\tseconds: {}'.format(response.create_time.seconds)) + print('\tnanos: {}\n'.format(response.create_time.nanos)) + + return response +# [END datalabeling_create_dataset_beta] + + +# [START datalabeling_list_datasets_beta] +def list_datasets(project_id): + """Lists datasets for the given Google Cloud project.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_list_datasets_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_list_datasets_beta] + + formatted_project_name = client.project_path(project_id) + + response = client.list_datasets(formatted_project_name) + for element in response: + # The format of resource name: + # project_id/{project_id}/datasets/{dataset_id} + print('The dataset resource name: {}\n'.format(element.name)) + print('Display name: {}'.format(element.display_name)) + print('Description: {}'.format(element.description)) + print('Create time:') + print('\tseconds: {}'.format(element.create_time.seconds)) + print('\tnanos: {}'.format(element.create_time.nanos)) +# [END datalabeling_list_datasets_beta] + + +# [START datalabeling_get_dataset_beta] +def get_dataset(dataset_resource_name): + """Gets a dataset for the given Google Cloud project.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_get_dataset_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_get_dataset_beta] + + response = client.get_dataset(dataset_resource_name) + + print('The dataset resource name: {}\n'.format(response.name)) + print('Display name: {}'.format(response.display_name)) + print('Description: {}'.format(response.description)) + print('Create time:') + print('\tseconds: {}'.format(response.create_time.seconds)) + print('\tnanos: {}'.format(response.create_time.nanos)) +# [END datalabeling_get_dataset_beta] + + +# [START datalabeling_delete_dataset_beta] +def delete_dataset(dataset_resource_name): + """Deletes a dataset for the given Google Cloud project.""" + from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() + # [END datalabeling_delete_dataset_beta] + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + # [START datalabeling_delete_dataset_beta] + + response = client.delete_dataset(dataset_resource_name) + + print('Dataset deleted. {}\n'.format(response)) +# [END datalabeling_delete_dataset_beta] + + +if __name__ == '__main__': + parser = argparse.ArgumentParser( + description=__doc__, + formatter_class=argparse.RawDescriptionHelpFormatter + ) + + subparsers = parser.add_subparsers(dest='command') + + create_parser = subparsers.add_parser( + 'create', help='Create a new dataset.') + create_parser.add_argument( + '--project-id', + help='Project ID. Required.', + required=True + ) + + list_parser = subparsers.add_parser('list', help='List all datasets.') + list_parser.add_argument( + '--project-id', + help='Project ID. Required.', + required=True + ) + + get_parser = subparsers.add_parser( + 'get', help='Get a dataset by the dataset resource name.') + get_parser.add_argument( + '--dataset-resource-name', + help='The dataset resource name. Used in the get or delete operation.', + required=True + ) + + delete_parser = subparsers.add_parser( + 'delete', help='Delete a dataset by the dataset resource name.') + delete_parser.add_argument( + '--dataset-resource-name', + help='The dataset resource name. Used in the get or delete operation.', + required=True + ) + + args = parser.parse_args() + + if args.command == 'create': + create_dataset(args.project_id) + elif args.command == 'list': + list_datasets(args.project_id) + elif args.command == 'get': + get_dataset(args.dataset_resource_name) + elif args.command == 'delete': + delete_dataset(args.dataset_resource_name) diff --git a/datalabeling/snippets/manage_dataset_test.py b/datalabeling/snippets/manage_dataset_test.py new file mode 100644 index 000000000000..b6abc25829bb --- /dev/null +++ b/datalabeling/snippets/manage_dataset_test.py @@ -0,0 +1,106 @@ +#!/usr/bin/env python + +# Copyright 2019 Google, Inc +# +# 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. + +import os + +import backoff +from google.api_core.exceptions import RetryError +from google.api_core.exceptions import ServerError +import pytest + +import manage_dataset +import testing_lib + + +PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") + + +@pytest.fixture(scope='module') +def dataset(): + # create a temporary dataset + dataset = testing_lib.create_dataset(PROJECT_ID) + + yield dataset + + # tear down + testing_lib.delete_dataset(dataset.name) + + +@pytest.fixture(scope='module') +def cleaner(): + # First delete old datasets. + try: + testing_lib.delete_old_datasets(PROJECT_ID) + # We see occational RetryError while deleting old datasets. + # We can just ignore it and move on. + except RetryError as e: + print("delete_old_datasets failed: detail {}".format(e)) + + resource_names = [] + + yield resource_names + + for resource_name in resource_names: + testing_lib.delete_dataset(resource_name) + + +def test_create_dataset(cleaner, capsys): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + return manage_dataset.create_dataset(PROJECT_ID) + + response = run_sample() + cleaner.append(response.name) + + out, _ = capsys.readouterr() + assert "The dataset resource name:" in out + + +@pytest.mark.skip("Constantly failing") +def test_list_dataset(capsys, dataset): + + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + manage_dataset.list_datasets(PROJECT_ID) + + run_sample() + out, _ = capsys.readouterr() + assert dataset.name in out + + +def test_get_dataset(capsys, dataset): + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + manage_dataset.get_dataset(dataset.name) + + run_sample() + out, _ = capsys.readouterr() + assert "The dataset resource name:" in out + + +def test_delete_dataset(capsys, dataset): + @backoff.on_exception( + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + def run_sample(): + manage_dataset.delete_dataset(dataset.name) + + run_sample() + out, _ = capsys.readouterr() + assert "Dataset deleted." in out diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py new file mode 100644 index 000000000000..ba55d7ce53ca --- /dev/null +++ b/datalabeling/snippets/noxfile.py @@ -0,0 +1,224 @@ +# Copyright 2019 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. + +from __future__ import print_function + +import os +from pathlib import Path +import sys + +import nox + + +# WARNING - WARNING - WARNING - WARNING - WARNING +# WARNING - WARNING - WARNING - WARNING - WARNING +# DO NOT EDIT THIS FILE EVER! +# WARNING - WARNING - WARNING - WARNING - WARNING +# WARNING - WARNING - WARNING - WARNING - WARNING + +# Copy `noxfile_config.py` to your directory and modify it instead. + + +# `TEST_CONFIG` dict is a configuration hook that allows users to +# modify the test configurations. The values here should be in sync +# with `noxfile_config.py`. Users will copy `noxfile_config.py` into +# their directory and modify it. + +TEST_CONFIG = { + # You can opt out from the test for specific Python versions. + 'ignored_versions': ["2.7"], + + # An envvar key for determining the project id to use. Change it + # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a + # build specific Cloud project. You can also use your own string + # to use your own Cloud project. + 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', + # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', + + # A dictionary you want to inject into your test. Don't put any + # secrets here. These values will override predefined values. + 'envs': {}, +} + + +try: + # Ensure we can import noxfile_config in the project's directory. + sys.path.append('.') + from noxfile_config import TEST_CONFIG_OVERRIDE +except ImportError as e: + print("No user noxfile_config found: detail: {}".format(e)) + TEST_CONFIG_OVERRIDE = {} + +# Update the TEST_CONFIG with the user supplied values. +TEST_CONFIG.update(TEST_CONFIG_OVERRIDE) + + +def get_pytest_env_vars(): + """Returns a dict for pytest invocation.""" + ret = {} + + # Override the GCLOUD_PROJECT and the alias. + env_key = TEST_CONFIG['gcloud_project_env'] + # This should error out if not set. + ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] + + # Apply user supplied envs. + ret.update(TEST_CONFIG['envs']) + return ret + + +# DO NOT EDIT - automatically generated. +# All versions used to tested samples. +ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"] + +# Any default versions that should be ignored. +IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] + +TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) + +INSTALL_LIBRARY_FROM_SOURCE = bool(os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False)) +# +# Style Checks +# + + +def _determine_local_import_names(start_dir): + """Determines all import names that should be considered "local". + + This is used when running the linter to insure that import order is + properly checked. + """ + file_ext_pairs = [os.path.splitext(path) for path in os.listdir(start_dir)] + return [ + basename + for basename, extension in file_ext_pairs + if extension == ".py" + or os.path.isdir(os.path.join(start_dir, basename)) + and basename not in ("__pycache__") + ] + + +# Linting with flake8. +# +# We ignore the following rules: +# E203: whitespace before ‘:’ +# E266: too many leading ‘#’ for block comment +# E501: line too long +# I202: Additional newline in a section of imports +# +# We also need to specify the rules which are ignored by default: +# ['E226', 'W504', 'E126', 'E123', 'W503', 'E24', 'E704', 'E121'] +FLAKE8_COMMON_ARGS = [ + "--show-source", + "--builtin=gettext", + "--max-complexity=20", + "--import-order-style=google", + "--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py", + "--ignore=E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202", + "--max-line-length=88", +] + + +@nox.session +def lint(session): + session.install("flake8", "flake8-import-order") + + local_names = _determine_local_import_names(".") + args = FLAKE8_COMMON_ARGS + [ + "--application-import-names", + ",".join(local_names), + "." + ] + session.run("flake8", *args) + + +# +# Sample Tests +# + + +PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] + + +def _session_tests(session, post_install=None): + """Runs py.test for a particular project.""" + if os.path.exists("requirements.txt"): + session.install("-r", "requirements.txt") + + if os.path.exists("requirements-test.txt"): + session.install("-r", "requirements-test.txt") + + if INSTALL_LIBRARY_FROM_SOURCE: + session.install("-e", _get_repo_root()) + + if post_install: + post_install(session) + + session.run( + "pytest", + *(PYTEST_COMMON_ARGS + session.posargs), + # Pytest will return 5 when no tests are collected. This can happen + # on travis where slow and flaky tests are excluded. + # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html + success_codes=[0, 5], + env=get_pytest_env_vars() + ) + + +@nox.session(python=ALL_VERSIONS) +def py(session): + """Runs py.test for a sample using the specified version of Python.""" + if session.python in TESTED_VERSIONS: + _session_tests(session) + else: + session.skip("SKIPPED: {} tests are disabled for this sample.".format( + session.python + )) + + +# +# Readmegen +# + + +def _get_repo_root(): + """ Returns the root folder of the project. """ + # Get root of this repository. Assume we don't have directories nested deeper than 10 items. + p = Path(os.getcwd()) + for i in range(10): + if p is None: + break + if Path(p / ".git").exists(): + return str(p) + p = p.parent + raise Exception("Unable to detect repository root.") + + +GENERATED_READMES = sorted([x for x in Path(".").rglob("*.rst.in")]) + + +@nox.session +@nox.parametrize("path", GENERATED_READMES) +def readmegen(session, path): + """(Re-)generates the readme for a sample.""" + session.install("jinja2", "pyyaml") + dir_ = os.path.dirname(path) + + if os.path.exists(os.path.join(dir_, "requirements.txt")): + session.install("-r", os.path.join(dir_, "requirements.txt")) + + in_file = os.path.join(dir_, "README.rst.in") + session.run( + "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file + ) diff --git a/datalabeling/snippets/noxfile_config.py b/datalabeling/snippets/noxfile_config.py new file mode 100644 index 000000000000..58569885fabf --- /dev/null +++ b/datalabeling/snippets/noxfile_config.py @@ -0,0 +1,41 @@ +# 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. + +# Default TEST_CONFIG_OVERRIDE for python repos. + +# You can copy this file into your directory, then it will be inported from +# the noxfile.py. + +# The source of truth: +# https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/noxfile_config.py + +TEST_CONFIG_OVERRIDE = { + # You can opt out from the test for specific Python versions. + "ignored_versions": ["2.7"], + # Declare optional test sessions you want to opt-in. Currently we + # have the following optional test sessions: + # 'cloud_run' # Test session for Cloud Run application. + "opt_in_sessions": [], + # An envvar key for determining the project id to use. Change it + # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a + # build specific Cloud project. You can also use your own string + # to use your own Cloud project. + # 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', + # A dictionary you want to inject into your test. Don't put any + # secrets here. These values will override predefined values. + "envs": { + # For Datalabeling samples to hit the testing endpoint + "DATALABELING_ENDPOINT": "test-datalabeling.sandbox.googleapis.com:443" + }, +} diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt new file mode 100644 index 000000000000..d0029c6de49e --- /dev/null +++ b/datalabeling/snippets/requirements-test.txt @@ -0,0 +1,2 @@ +backoff==1.10.0 +pytest==6.0.1 diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt new file mode 100644 index 000000000000..56ba790e276d --- /dev/null +++ b/datalabeling/snippets/requirements.txt @@ -0,0 +1 @@ +google-cloud-datalabeling==0.4.0 diff --git a/datalabeling/snippets/testing_lib.py b/datalabeling/snippets/testing_lib.py new file mode 100644 index 000000000000..c9674a9bd785 --- /dev/null +++ b/datalabeling/snippets/testing_lib.py @@ -0,0 +1,105 @@ +# 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. + +import os +import time + +import backoff +from google.api_core.client_options import ClientOptions +from google.api_core.exceptions import DeadlineExceeded +from google.api_core.exceptions import FailedPrecondition +from google.cloud import datalabeling_v1beta1 as datalabeling + +import create_annotation_spec_set as annotation_spec_set_sample +import create_instruction as instruction_sample +import import_data as import_sample +import manage_dataset as dataset_sample + + +RETRY_DEADLINE = 60 + + +def create_client(): + # If provided, use a provided test endpoint - this will prevent tests on + # this snippet from triggering any action by a real human + if 'DATALABELING_ENDPOINT' in os.environ: + opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + client = datalabeling.DataLabelingServiceClient(client_options=opts) + else: + client = datalabeling.DataLabelingServiceClient() + return client + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def create_dataset(project_id): + return dataset_sample.create_dataset(project_id) + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def delete_dataset(name): + return dataset_sample.delete_dataset(name) + + +def delete_old_datasets(project_id): + client = create_client() + formatted_project_name = client.project_path(project_id) + + response = client.list_datasets(formatted_project_name) + # It will delete datasets created more than 2 hours ago + cutoff_time = time.time() - 7200 + for element in response: + if element.create_time.seconds < cutoff_time: + print("Deleting {}".format(element.name)) + try: + dataset_sample.delete_dataset(element.name) + except FailedPrecondition as e: + # We're always getting FailedPrecondition with 400 + # resource conflict. I don't know why. + print("Deleting {} failed.".format(element.name)) + print("Detail: {}".format(e)) + # To avoid quota error + time.sleep(1) + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def create_annotation_spec_set(project_id): + return annotation_spec_set_sample.create_annotation_spec_set(project_id) + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def delete_annotation_spec_set(name): + client = create_client() + client.delete_annotation_spec_set(name) + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def create_instruction(project_id, data_type, gcs_uri): + return instruction_sample.create_instruction(project_id, data_type, gcs_uri) + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def delete_instruction(name): + client = create_client() + client.delete_instruction(name) + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def cancel_operation(name): + client = create_client() + client.transport._operations_client.cancel_operation(name) + + +@backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) +def import_data(dataset_name, data_type, gcs_uri): + import_sample.import_data(dataset_name, data_type, gcs_uri) From cee307764f91834d1a1fc16c3d288878df2d2a74 Mon Sep 17 00:00:00 2001 From: arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> Date: Wed, 12 Aug 2020 13:33:50 -0700 Subject: [PATCH 02/63] feat!: migrate to use microgen (#34) * feat!: migrate to use microgen * update sample * update sample * update sample * Update UPGRADING.md Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- .../snippets/create_annotation_spec_set.py | 53 ++++--- .../create_annotation_spec_set_test.py | 10 +- datalabeling/snippets/create_instruction.py | 73 +++++----- .../snippets/create_instruction_test.py | 17 +-- datalabeling/snippets/export_data.py | 62 +++++---- datalabeling/snippets/import_data.py | 44 +++--- datalabeling/snippets/import_data_test.py | 17 ++- datalabeling/snippets/label_image.py | 64 +++++---- datalabeling/snippets/label_image_test.py | 34 ++--- datalabeling/snippets/label_text.py | 65 +++++---- datalabeling/snippets/label_text_test.py | 30 ++-- datalabeling/snippets/label_video.py | 61 ++++---- datalabeling/snippets/label_video_test.py | 34 ++--- datalabeling/snippets/manage_dataset.py | 131 ++++++++++-------- datalabeling/snippets/manage_dataset_test.py | 18 +-- datalabeling/snippets/noxfile.py | 26 ++-- datalabeling/snippets/testing_lib.py | 16 +-- 17 files changed, 393 insertions(+), 362 deletions(-) diff --git a/datalabeling/snippets/create_annotation_spec_set.py b/datalabeling/snippets/create_annotation_spec_set.py index 4a8add772e6a..62983e56eeea 100644 --- a/datalabeling/snippets/create_annotation_spec_set.py +++ b/datalabeling/snippets/create_annotation_spec_set.py @@ -26,61 +26,58 @@ def create_annotation_spec_set(project_id): Google Cloud project. """ from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_create_annotation_spec_set_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_create_annotation_spec_set_beta] - project_path = client.project_path(project_id) + project_path = f"projects/{project_id}" - annotation_spec_1 = datalabeling.types.AnnotationSpec( - display_name='label_1', - description='label_description_1' + annotation_spec_1 = datalabeling.AnnotationSpec( + display_name="label_1", description="label_description_1" ) - annotation_spec_2 = datalabeling.types.AnnotationSpec( - display_name='label_2', - description='label_description_2' + annotation_spec_2 = datalabeling.AnnotationSpec( + display_name="label_2", description="label_description_2" ) - annotation_spec_set = datalabeling.types.AnnotationSpecSet( - display_name='YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME', - description='YOUR_DESCRIPTION', - annotation_specs=[annotation_spec_1, annotation_spec_2] + annotation_spec_set = datalabeling.AnnotationSpecSet( + display_name="YOUR_ANNOTATION_SPEC_SET_DISPLAY_NAME", + description="YOUR_DESCRIPTION", + annotation_specs=[annotation_spec_1, annotation_spec_2], ) response = client.create_annotation_spec_set( - project_path, annotation_spec_set) + request={"parent": project_path, "annotation_spec_set": annotation_spec_set} + ) # The format of the resource name: # project_id/{project_id}/annotationSpecSets/{annotationSpecSets_id} - print('The annotation_spec_set resource name: {}'.format(response.name)) - print('Display name: {}'.format(response.display_name)) - print('Description: {}'.format(response.description)) - print('Annotation specs:') + print("The annotation_spec_set resource name: {}".format(response.name)) + print("Display name: {}".format(response.display_name)) + print("Description: {}".format(response.description)) + print("Annotation specs:") for annotation_spec in response.annotation_specs: - print('\tDisplay name: {}'.format(annotation_spec.display_name)) - print('\tDescription: {}\n'.format(annotation_spec.description)) + print("\tDisplay name: {}".format(annotation_spec.display_name)) + print("\tDescription: {}\n".format(annotation_spec.description)) return response + + # [END datalabeling_create_annotation_spec_set_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) - parser.add_argument( - '--project-id', - help='Project ID. Required.', - required=True - ) + parser.add_argument("--project-id", help="Project ID. Required.", required=True) args = parser.parse_args() diff --git a/datalabeling/snippets/create_annotation_spec_set_test.py b/datalabeling/snippets/create_annotation_spec_set_test.py index 6ae5ee5d1b3c..1ed722ecc2d3 100644 --- a/datalabeling/snippets/create_annotation_spec_set_test.py +++ b/datalabeling/snippets/create_annotation_spec_set_test.py @@ -24,10 +24,10 @@ import testing_lib -PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') +PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def cleaner(): resource_names = [] @@ -38,9 +38,9 @@ def cleaner(): def test_create_annotation_spec_set(cleaner, capsys): - @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): return create_annotation_spec_set.create_annotation_spec_set(PROJECT_ID) @@ -50,4 +50,4 @@ def run_sample(): cleaner.append(response.name) out, _ = capsys.readouterr() - assert 'The annotation_spec_set resource name:' in out + assert "The annotation_spec_set resource name:" in out diff --git a/datalabeling/snippets/create_instruction.py b/datalabeling/snippets/create_instruction.py index 5495acbaf18d..f0d23996ffd5 100644 --- a/datalabeling/snippets/create_instruction.py +++ b/datalabeling/snippets/create_instruction.py @@ -27,77 +27,70 @@ def create_instruction(project_id, data_type, instruction_gcs_uri): Google Cloud Storage. """ from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_create_instruction_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_create_instruction_beta] - project_path = client.project_path(project_id) + project_path = f"projects/{project_id}" - pdf_instruction = datalabeling.types.PdfInstruction( - gcs_file_uri=instruction_gcs_uri) + pdf_instruction = datalabeling.PdfInstruction(gcs_file_uri=instruction_gcs_uri) - instruction = datalabeling.types.Instruction( - display_name='YOUR_INSTRUCTION_DISPLAY_NAME', - description='YOUR_DESCRIPTION', + instruction = datalabeling.Instruction( + display_name="YOUR_INSTRUCTION_DISPLAY_NAME", + description="YOUR_DESCRIPTION", data_type=data_type, - pdf_instruction=pdf_instruction + pdf_instruction=pdf_instruction, ) - operation = client.create_instruction(project_path, instruction) + operation = client.create_instruction( + request={"parent": project_path, "instruction": instruction} + ) result = operation.result() # The format of the resource name: # project_id/{project_id}/instruction/{instruction_id} - print('The instruction resource name: {}'.format(result.name)) - print('Display name: {}'.format(result.display_name)) - print('Description: {}'.format(result.description)) - print('Create time:') - print('\tseconds: {}'.format(result.create_time.seconds)) - print('\tnanos: {}'.format(result.create_time.nanos)) - print('Data type: {}'.format( - datalabeling.enums.DataType(result.data_type).name)) - print('Pdf instruction:') - print('\tGcs file uri: {}\n'.format( - result.pdf_instruction.gcs_file_uri)) + print("The instruction resource name: {}".format(result.name)) + print("Display name: {}".format(result.display_name)) + print("Description: {}".format(result.description)) + print("Create time:") + print("\tseconds: {}".format(result.create_time.timestamp_pb().seconds)) + print("\tnanos: {}".format(result.create_time.timestamp_pb().nanos)) + print("Data type: {}".format(datalabeling.DataType(result.data_type).name)) + print("Pdf instruction:") + print("\tGcs file uri: {}\n".format(result.pdf_instruction.gcs_file_uri)) return result + + # [END datalabeling_create_instruction_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) - parser.add_argument( - '--project-id', - help='Project ID. Required.', - required=True - ) + parser.add_argument("--project-id", help="Project ID. Required.", required=True) parser.add_argument( - '--data-type', - help='Data type. Only support IMAGE, VIDEO, TEXT and AUDIO. Required.', - required=True + "--data-type", + help="Data type. Only support IMAGE, VIDEO, TEXT and AUDIO. Required.", + required=True, ) parser.add_argument( - '--instruction-gcs-uri', - help='The URI of Google Cloud Storage of the instruction. Required.', - required=True + "--instruction-gcs-uri", + help="The URI of Google Cloud Storage of the instruction. Required.", + required=True, ) args = parser.parse_args() - create_instruction( - args.project_id, - args.data_type, - args.instruction_gcs_uri - ) + create_instruction(args.project_id, args.data_type, args.instruction_gcs_uri) diff --git a/datalabeling/snippets/create_instruction_test.py b/datalabeling/snippets/create_instruction_test.py index b164da0c13ba..5b32f8277bdc 100644 --- a/datalabeling/snippets/create_instruction_test.py +++ b/datalabeling/snippets/create_instruction_test.py @@ -18,18 +18,18 @@ import backoff from google.api_core.exceptions import ServerError +from google.cloud import datalabeling import pytest import create_instruction import testing_lib -PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') -INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' - '/instruction/test.pdf') +PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") +INSTRUCTION_GCS_URI = "gs://cloud-samples-data/datalabeling" "/instruction/test.pdf" -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def cleaner(): resource_names = [] @@ -40,15 +40,16 @@ def cleaner(): def test_create_instruction(cleaner, capsys): - @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): return create_instruction.create_instruction( - PROJECT_ID, 'IMAGE', INSTRUCTION_GCS_URI) + PROJECT_ID, datalabeling.DataType.IMAGE, INSTRUCTION_GCS_URI + ) instruction = run_sample() cleaner.append(instruction.name) out, _ = capsys.readouterr() - assert 'The instruction resource name: ' in out + assert "The instruction resource name: " in out diff --git a/datalabeling/snippets/export_data.py b/datalabeling/snippets/export_data.py index f70dc9c588d7..8018676e9aed 100644 --- a/datalabeling/snippets/export_data.py +++ b/datalabeling/snippets/export_data.py @@ -21,61 +21,65 @@ # [START datalabeling_export_data_beta] -def export_data(dataset_resource_name, annotated_dataset_resource_name, - export_gcs_uri): +def export_data(dataset_resource_name, annotated_dataset_resource_name, export_gcs_uri): """Exports a dataset from the given Google Cloud project.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_export_data_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_export_data_beta] - gcs_destination = datalabeling.types.GcsDestination( - output_uri=export_gcs_uri, mime_type='text/csv') + gcs_destination = datalabeling.GcsDestination( + output_uri=export_gcs_uri, mime_type="text/csv" + ) - output_config = datalabeling.types.OutputConfig( - gcs_destination=gcs_destination) + output_config = datalabeling.OutputConfig(gcs_destination=gcs_destination) response = client.export_data( - dataset_resource_name, - annotated_dataset_resource_name, - output_config + request={ + "name": dataset_resource_name, + "annotated_dataset": annotated_dataset_resource_name, + "output_config": output_config, + } ) - print('Dataset ID: {}\n'.format(response.result().dataset)) - print('Output config:') - print('\tGcs destination:') - print('\t\tOutput URI: {}\n'.format( - response.result().output_config.gcs_destination.output_uri)) + print("Dataset ID: {}\n".format(response.result().dataset)) + print("Output config:") + print("\tGcs destination:") + print( + "\t\tOutput URI: {}\n".format( + response.result().output_config.gcs_destination.output_uri + ) + ) + + # [END datalabeling_export_data_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument( - '--dataset-resource-name', - help='Dataset resource name. Required.', - required=True + "--dataset-resource-name", + help="Dataset resource name. Required.", + required=True, ) parser.add_argument( - '--annotated-dataset-resource-name', - help='Annotated Dataset resource name. Required.', - required=True + "--annotated-dataset-resource-name", + help="Annotated Dataset resource name. Required.", + required=True, ) parser.add_argument( - '--export-gcs-uri', - help='The export GCS URI. Required.', - required=True + "--export-gcs-uri", help="The export GCS URI. Required.", required=True ) args = parser.parse_args() @@ -83,5 +87,5 @@ def export_data(dataset_resource_name, annotated_dataset_resource_name, export_data( args.dataset_resource_name, args.annotated_dataset_resource_name, - args.export_gcs_uri + args.export_gcs_uri, ) diff --git a/datalabeling/snippets/import_data.py b/datalabeling/snippets/import_data.py index 01c3201845f0..1324214b9d11 100644 --- a/datalabeling/snippets/import_data.py +++ b/datalabeling/snippets/import_data.py @@ -24,55 +24,59 @@ def import_data(dataset_resource_name, data_type, input_gcs_uri): """Imports data to the given Google Cloud project and dataset.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_import_data_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_import_data_beta] - gcs_source = datalabeling.types.GcsSource( - input_uri=input_gcs_uri, mime_type='text/csv') + gcs_source = datalabeling.GcsSource(input_uri=input_gcs_uri, mime_type="text/csv") - csv_input_config = datalabeling.types.InputConfig( - data_type=data_type, gcs_source=gcs_source) + csv_input_config = datalabeling.InputConfig( + data_type=data_type, gcs_source=gcs_source + ) - response = client.import_data(dataset_resource_name, csv_input_config) + response = client.import_data( + request={"name": dataset_resource_name, "input_config": csv_input_config} + ) result = response.result() # The format of resource name: # project_id/{project_id}/datasets/{dataset_id} - print('Dataset resource name: {}\n'.format(result.dataset)) + print("Dataset resource name: {}\n".format(result.dataset)) return result + + # [END datalabeling_import_data_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument( - '--dataset-resource-name', - help='Dataset resource name. Required.', - required=True + "--dataset-resource-name", + help="Dataset resource name. Required.", + required=True, ) parser.add_argument( - '--data-type', - help='Data type. Only support IMAGE, VIDEO, TEXT and AUDIO. Required.', - required=True + "--data-type", + help="Data type. Only support IMAGE, VIDEO, TEXT and AUDIO. Required.", + required=True, ) parser.add_argument( - '--input-gcs-uri', - help='The GCS URI of the input dataset. Required.', - required=True + "--input-gcs-uri", + help="The GCS URI of the input dataset. Required.", + required=True, ) args = parser.parse_args() diff --git a/datalabeling/snippets/import_data_test.py b/datalabeling/snippets/import_data_test.py index 246cfba4b573..d304cbaca19f 100644 --- a/datalabeling/snippets/import_data_test.py +++ b/datalabeling/snippets/import_data_test.py @@ -18,17 +18,18 @@ import backoff from google.api_core.exceptions import ServerError +from google.cloud import datalabeling import pytest import import_data import testing_lib -PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') -INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/image/image_dataset.csv' +PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") +INPUT_GCS_URI = "gs://cloud-samples-data/datalabeling/image/image_dataset.csv" -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def dataset(): # create a temporary dataset dataset = testing_lib.create_dataset(PROJECT_ID) @@ -40,12 +41,14 @@ def dataset(): def test_import_data(capsys, dataset): - @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): - import_data.import_data(dataset.name, 'IMAGE', INPUT_GCS_URI) + import_data.import_data( + dataset.name, datalabeling.DataType.IMAGE, INPUT_GCS_URI + ) run_sample() out, _ = capsys.readouterr() - assert 'Dataset resource name: ' in out + assert "Dataset resource name: " in out diff --git a/datalabeling/snippets/label_image.py b/datalabeling/snippets/label_image.py index 19a10ebc83c5..010f0ddfaa86 100644 --- a/datalabeling/snippets/label_image.py +++ b/datalabeling/snippets/label_image.py @@ -21,69 +21,73 @@ # [START datalabeling_label_image_beta] -def label_image(dataset_resource_name, instruction_resource_name, - annotation_spec_set_resource_name): +def label_image( + dataset_resource_name, instruction_resource_name, annotation_spec_set_resource_name +): """Labels an image dataset.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_label_image_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_label_image_beta] - basic_config = datalabeling.types.HumanAnnotationConfig( + basic_config = datalabeling.HumanAnnotationConfig( instruction=instruction_resource_name, - annotated_dataset_display_name='YOUR_ANNOTATED_DATASET_DISPLAY_NAME', - label_group='YOUR_LABEL_GROUP', - replica_count=1 + annotated_dataset_display_name="YOUR_ANNOTATED_DATASET_DISPLAY_NAME", + label_group="YOUR_LABEL_GROUP", + replica_count=1, ) - feature = datalabeling.enums.LabelImageRequest.Feature.CLASSIFICATION + feature = datalabeling.LabelImageRequest.Feature.CLASSIFICATION - config = datalabeling.types.ImageClassificationConfig( + config = datalabeling.ImageClassificationConfig( annotation_spec_set=annotation_spec_set_resource_name, allow_multi_label=False, - answer_aggregation_type=datalabeling.enums.StringAggregationType - .MAJORITY_VOTE + answer_aggregation_type=datalabeling.StringAggregationType.MAJORITY_VOTE, ) response = client.label_image( - dataset_resource_name, - basic_config, - feature, - image_classification_config=config + request={ + "parent": dataset_resource_name, + "basic_config": basic_config, + "feature": feature, + "image_classification_config": config, + } ) - print('Label_image operation name: {}'.format(response.operation.name)) + print("Label_image operation name: {}".format(response.operation.name)) return response + + # [END datalabeling_label_image_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument( - '--dataset-resource-name', - help='Dataset resource name. Required.', - required=True + "--dataset-resource-name", + help="Dataset resource name. Required.", + required=True, ) parser.add_argument( - '--instruction-resource-name', - help='Instruction resource name. Required.', - required=True + "--instruction-resource-name", + help="Instruction resource name. Required.", + required=True, ) parser.add_argument( - '--annotation-spec-set-resource-name', - help='Annotation spec set resource name. Required.', - required=True + "--annotation-spec-set-resource-name", + help="Annotation spec set resource name. Required.", + required=True, ) args = parser.parse_args() @@ -91,5 +95,5 @@ def label_image(dataset_resource_name, instruction_resource_name, label_image( args.dataset_resource_name, args.instruction_resource_name, - args.annotation_spec_set_resource_name + args.annotation_spec_set_resource_name, ) diff --git a/datalabeling/snippets/label_image_test.py b/datalabeling/snippets/label_image_test.py index a6feee42c1d8..930ce7857d25 100644 --- a/datalabeling/snippets/label_image_test.py +++ b/datalabeling/snippets/label_image_test.py @@ -18,31 +18,31 @@ import backoff from google.api_core.exceptions import ServerError +from google.cloud import datalabeling import pytest import label_image import testing_lib -PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') -INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/image/image_dataset.csv' -INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' - '/instruction/test.pdf') +PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") +INPUT_GCS_URI = "gs://cloud-samples-data/datalabeling/image/image_dataset.csv" +INSTRUCTION_GCS_URI = "gs://cloud-samples-data/datalabeling" "/instruction/test.pdf" -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def dataset(): # create a temporary dataset dataset = testing_lib.create_dataset(PROJECT_ID) - testing_lib.import_data(dataset.name, 'IMAGE', INPUT_GCS_URI) + testing_lib.import_data(dataset.name, datalabeling.DataType.IMAGE, INPUT_GCS_URI) yield dataset # tear down testing_lib.delete_dataset(dataset.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def annotation_spec_set(): # create a temporary annotation_spec_set response = testing_lib.create_annotation_spec_set(PROJECT_ID) @@ -52,11 +52,12 @@ def annotation_spec_set(): testing_lib.delete_annotation_spec_set(response.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def instruction(): # create a temporary instruction instruction = testing_lib.create_instruction( - PROJECT_ID, 'IMAGE', INSTRUCTION_GCS_URI) + PROJECT_ID, datalabeling.DataType.IMAGE, INSTRUCTION_GCS_URI + ) yield instruction @@ -64,7 +65,7 @@ def instruction(): testing_lib.delete_instruction(instruction.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def cleaner(): resource_names = [] @@ -76,18 +77,19 @@ def cleaner(): # Passing in dataset as the last argument in test_label_image since it needs # to be deleted before the annotation_spec_set can be deleted. -def test_label_image( - capsys, annotation_spec_set, instruction, dataset, cleaner): - +@pytest.mark.skip(reason="currently unavailable") +def test_label_image(capsys, annotation_spec_set, instruction, dataset, cleaner): @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): # Start labeling. return label_image.label_image( - dataset.name, instruction.name, annotation_spec_set.name) + dataset.name, instruction.name, annotation_spec_set.name + ) response = run_sample() cleaner.append(response.operation.name) out, _ = capsys.readouterr() - assert 'Label_image operation name: ' in out + assert "Label_image operation name: " in out diff --git a/datalabeling/snippets/label_text.py b/datalabeling/snippets/label_text.py index 6b8659035975..c85ad5fa6b5f 100644 --- a/datalabeling/snippets/label_text.py +++ b/datalabeling/snippets/label_text.py @@ -21,66 +21,71 @@ # [START datalabeling_label_text_beta] -def label_text(dataset_resource_name, instruction_resource_name, - annotation_spec_set_resource_name): +def label_text( + dataset_resource_name, instruction_resource_name, annotation_spec_set_resource_name +): """Labels a text dataset.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_label_text_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_label_text_beta] - basic_config = datalabeling.types.HumanAnnotationConfig( + basic_config = datalabeling.HumanAnnotationConfig( instruction=instruction_resource_name, - annotated_dataset_display_name='YOUR_ANNOTATED_DATASET_DISPLAY_NAME', - label_group='YOUR_LABEL_GROUP', - replica_count=1 + annotated_dataset_display_name="YOUR_ANNOTATED_DATASET_DISPLAY_NAME", + label_group="YOUR_LABEL_GROUP", + replica_count=1, ) - feature = (datalabeling.enums.LabelTextRequest. - Feature.TEXT_ENTITY_EXTRACTION) + feature = datalabeling.LabelTextRequest.Feature.TEXT_ENTITY_EXTRACTION - config = datalabeling.types.TextEntityExtractionConfig( - annotation_spec_set=annotation_spec_set_resource_name) + config = datalabeling.TextEntityExtractionConfig( + annotation_spec_set=annotation_spec_set_resource_name + ) response = client.label_text( - parent=dataset_resource_name, - basic_config=basic_config, - feature=feature, - text_entity_extraction_config=config + request={ + "parent": dataset_resource_name, + "basic_config": basic_config, + "feature": feature, + "text_classification_config": config, + } ) - print('Label_text operation name: {}'.format(response.operation.name)) + print("Label_text operation name: {}".format(response.operation.name)) return response + + # [END datalabeling_label_text_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument( - '--dataset-resource-name', - help='Dataset resource name. Required.', - required=True + "--dataset-resource-name", + help="Dataset resource name. Required.", + required=True, ) parser.add_argument( - '--instruction-resource-name', - help='Instruction resource name. Required.', - required=True + "--instruction-resource-name", + help="Instruction resource name. Required.", + required=True, ) parser.add_argument( - '--annotation-spec-set-resource-name', - help='Annotation spec set resource name. Required.', - required=True + "--annotation-spec-set-resource-name", + help="Annotation spec set resource name. Required.", + required=True, ) args = parser.parse_args() @@ -88,5 +93,5 @@ def label_text(dataset_resource_name, instruction_resource_name, label_text( args.dataset_resource_name, args.instruction_resource_name, - args.annotation_spec_set_resource_name + args.annotation_spec_set_resource_name, ) diff --git a/datalabeling/snippets/label_text_test.py b/datalabeling/snippets/label_text_test.py index c90024b97336..c34b028507e7 100644 --- a/datalabeling/snippets/label_text_test.py +++ b/datalabeling/snippets/label_text_test.py @@ -18,23 +18,23 @@ import backoff from google.api_core.exceptions import ServerError +from google.cloud import datalabeling import pytest import label_text import testing_lib -PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') -INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/text/input.csv' -INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' - '/instruction/test.pdf') +PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") +INPUT_GCS_URI = "gs://cloud-samples-data/datalabeling/text/input.csv" +INSTRUCTION_GCS_URI = "gs://cloud-samples-data/datalabeling" "/instruction/test.pdf" -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def dataset(): # create a temporary dataset dataset = testing_lib.create_dataset(PROJECT_ID) - testing_lib.import_data(dataset.name, 'TEXT', INPUT_GCS_URI) + testing_lib.import_data(dataset.name, "TEXT", INPUT_GCS_URI) yield dataset @@ -42,7 +42,7 @@ def dataset(): testing_lib.delete_dataset(dataset.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def annotation_spec_set(): # create a temporary annotation_spec_set response = testing_lib.create_annotation_spec_set(PROJECT_ID) @@ -52,11 +52,12 @@ def annotation_spec_set(): testing_lib.delete_annotation_spec_set(response.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def instruction(): # create a temporary instruction instruction = testing_lib.create_instruction( - PROJECT_ID, 'IMAGE', INSTRUCTION_GCS_URI) + PROJECT_ID, datalabeling.DataType.IMAGE, INSTRUCTION_GCS_URI + ) yield instruction @@ -64,7 +65,7 @@ def instruction(): testing_lib.delete_instruction(instruction.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def cleaner(): resource_names = [] @@ -78,19 +79,20 @@ def cleaner(): # to be deleted before the annotation_spec_set can be deleted. @pytest.mark.skip("Constantly failing") def test_label_text(capsys, annotation_spec_set, instruction, dataset, cleaner): - @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): # Start labeling. return label_text.label_text( - dataset.name, instruction.name, annotation_spec_set.name) + dataset.name, instruction.name, annotation_spec_set.name + ) response = run_sample() cleaner.append(response.operation.name) out, _ = capsys.readouterr() - assert 'Label_text operation name: ' in out + assert "Label_text operation name: " in out # Cancels the labeling operation. response.cancel() diff --git a/datalabeling/snippets/label_video.py b/datalabeling/snippets/label_video.py index a3425b4745c0..09c46bb8fbc9 100644 --- a/datalabeling/snippets/label_video.py +++ b/datalabeling/snippets/label_video.py @@ -21,66 +21,71 @@ # [START datalabeling_label_video_beta] -def label_video(dataset_resource_name, instruction_resource_name, - annotation_spec_set_resource_name): +def label_video( + dataset_resource_name, instruction_resource_name, annotation_spec_set_resource_name +): """Labels a video dataset.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_label_video_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_label_video_beta] - basic_config = datalabeling.types.HumanAnnotationConfig( + basic_config = datalabeling.HumanAnnotationConfig( instruction=instruction_resource_name, - annotated_dataset_display_name='YOUR_ANNOTATED_DATASET_DISPLAY_NAME', - label_group='YOUR_LABEL_GROUP', - replica_count=1 + annotated_dataset_display_name="YOUR_ANNOTATED_DATASET_DISPLAY_NAME", + label_group="YOUR_LABEL_GROUP", + replica_count=1, ) - feature = datalabeling.enums.LabelVideoRequest.Feature.OBJECT_TRACKING + feature = datalabeling.LabelVideoRequest.Feature.OBJECT_TRACKING - config = datalabeling.types.ObjectTrackingConfig( + config = datalabeling.ObjectTrackingConfig( annotation_spec_set=annotation_spec_set_resource_name ) response = client.label_video( - dataset_resource_name, - basic_config, - feature, - object_tracking_config=config + request={ + "parent": dataset_resource_name, + "basic_config": basic_config, + "feature": feature, + "object_tracking_config": config, + } ) - print('Label_video operation name: {}'.format(response.operation.name)) + print("Label_video operation name: {}".format(response.operation.name)) return response + + # [END datalabeling_label_video_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) parser.add_argument( - '--dataset-resource-name', - help='Dataset resource name. Required.', - required=True + "--dataset-resource-name", + help="Dataset resource name. Required.", + required=True, ) parser.add_argument( - '--instruction-resource-name', - help='Instruction resource name. Required.', - required=True + "--instruction-resource-name", + help="Instruction resource name. Required.", + required=True, ) parser.add_argument( - '--annotation-spec-set-resource-name', - help='Annotation spec set resource name. Required.', - required=True + "--annotation-spec-set-resource-name", + help="Annotation spec set resource name. Required.", + required=True, ) args = parser.parse_args() @@ -88,5 +93,5 @@ def label_video(dataset_resource_name, instruction_resource_name, label_video( args.dataset_resource_name, args.instruction_resource_name, - args.annotation_spec_set_resource_name + args.annotation_spec_set_resource_name, ) diff --git a/datalabeling/snippets/label_video_test.py b/datalabeling/snippets/label_video_test.py index 05d3c5a3b124..02fd531c3d7d 100644 --- a/datalabeling/snippets/label_video_test.py +++ b/datalabeling/snippets/label_video_test.py @@ -18,23 +18,23 @@ import backoff from google.api_core.exceptions import ServerError +from google.cloud import datalabeling import pytest import label_video import testing_lib -PROJECT_ID = os.getenv('GOOGLE_CLOUD_PROJECT') -INPUT_GCS_URI = 'gs://cloud-samples-data/datalabeling/videos/video_dataset.csv' -INSTRUCTION_GCS_URI = ('gs://cloud-samples-data/datalabeling' - '/instruction/test.pdf') +PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") +INPUT_GCS_URI = "gs://cloud-samples-data/datalabeling/videos/video_dataset.csv" +INSTRUCTION_GCS_URI = "gs://cloud-samples-data/datalabeling" "/instruction/test.pdf" -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def dataset(): # create a temporary dataset dataset = testing_lib.create_dataset(PROJECT_ID) - testing_lib.import_data(dataset.name, 'VIDEO', INPUT_GCS_URI) + testing_lib.import_data(dataset.name, datalabeling.DataType.VIDEO, INPUT_GCS_URI) yield dataset @@ -42,7 +42,7 @@ def dataset(): testing_lib.delete_dataset(dataset.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def annotation_spec_set(): # create a temporary annotation_spec_set response = testing_lib.create_annotation_spec_set(PROJECT_ID) @@ -52,11 +52,12 @@ def annotation_spec_set(): testing_lib.delete_annotation_spec_set(response.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def instruction(): # create a temporary instruction instruction = testing_lib.create_instruction( - PROJECT_ID, 'VIDEO', INSTRUCTION_GCS_URI) + PROJECT_ID, datalabeling.DataType.VIDEO, INSTRUCTION_GCS_URI + ) yield instruction @@ -64,7 +65,7 @@ def instruction(): testing_lib.delete_instruction(instruction.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def cleaner(): resource_names = [] @@ -76,21 +77,22 @@ def cleaner(): # Passing in dataset as the last argument in test_label_image since it needs # to be deleted before the annotation_spec_set can be deleted. -def test_label_video( - capsys, annotation_spec_set, instruction, dataset, cleaner): - +@pytest.mark.skip(reason="currently unavailable") +def test_label_video(capsys, annotation_spec_set, instruction, dataset, cleaner): @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): # Start labeling. return label_video.label_video( - dataset.name, instruction.name, annotation_spec_set.name) + dataset.name, instruction.name, annotation_spec_set.name + ) response = run_sample() cleaner.append(response.operation.name) out, _ = capsys.readouterr() - assert 'Label_video operation name: ' in out + assert "Label_video operation name: " in out # Cancels the labeling operation. response.cancel() diff --git a/datalabeling/snippets/manage_dataset.py b/datalabeling/snippets/manage_dataset.py index a100bf4b9b22..2bc37304a4e6 100644 --- a/datalabeling/snippets/manage_dataset.py +++ b/datalabeling/snippets/manage_dataset.py @@ -24,34 +24,38 @@ def create_dataset(project_id): """Creates a dataset for the given Google Cloud project.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_create_dataset_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_create_dataset_beta] - formatted_project_name = client.project_path(project_id) + formatted_project_name = f"projects/{project_id}" - dataset = datalabeling.types.Dataset( - display_name='YOUR_DATASET_SET_DISPLAY_NAME', - description='YOUR_DESCRIPTION' + dataset = datalabeling.Dataset( + display_name="YOUR_DATASET_SET_DISPLAY_NAME", description="YOUR_DESCRIPTION" ) - response = client.create_dataset(formatted_project_name, dataset) + response = client.create_dataset( + request={"parent": formatted_project_name, "dataset": dataset} + ) # The format of resource name: # project_id/{project_id}/datasets/{dataset_id} - print('The dataset resource name: {}'.format(response.name)) - print('Display name: {}'.format(response.display_name)) - print('Description: {}'.format(response.description)) - print('Create time:') - print('\tseconds: {}'.format(response.create_time.seconds)) - print('\tnanos: {}\n'.format(response.create_time.nanos)) + print("The dataset resource name: {}".format(response.name)) + print("Display name: {}".format(response.display_name)) + print("Description: {}".format(response.description)) + print("Create time:") + print("\tseconds: {}".format(response.create_time.timestamp_pb().seconds)) + print("\tnanos: {}\n".format(response.create_time.timestamp_pb().nanos)) return response + + # [END datalabeling_create_dataset_beta] @@ -59,27 +63,30 @@ def create_dataset(project_id): def list_datasets(project_id): """Lists datasets for the given Google Cloud project.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_list_datasets_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_list_datasets_beta] - formatted_project_name = client.project_path(project_id) + formatted_project_name = f"projects/{project_id}" - response = client.list_datasets(formatted_project_name) + response = client.list_datasets(request={"parent": formatted_project_name}) for element in response: # The format of resource name: # project_id/{project_id}/datasets/{dataset_id} - print('The dataset resource name: {}\n'.format(element.name)) - print('Display name: {}'.format(element.display_name)) - print('Description: {}'.format(element.description)) - print('Create time:') - print('\tseconds: {}'.format(element.create_time.seconds)) - print('\tnanos: {}'.format(element.create_time.nanos)) + print("The dataset resource name: {}\n".format(element.name)) + print("Display name: {}".format(element.display_name)) + print("Description: {}".format(element.description)) + print("Create time:") + print("\tseconds: {}".format(element.create_time.timestamp_pb().seconds)) + print("\tnanos: {}".format(element.create_time.timestamp_pb().nanos)) + + # [END datalabeling_list_datasets_beta] @@ -87,23 +94,26 @@ def list_datasets(project_id): def get_dataset(dataset_resource_name): """Gets a dataset for the given Google Cloud project.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_get_dataset_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_get_dataset_beta] - response = client.get_dataset(dataset_resource_name) + response = client.get_dataset(request={"name": dataset_resource_name}) + + print("The dataset resource name: {}\n".format(response.name)) + print("Display name: {}".format(response.display_name)) + print("Description: {}".format(response.description)) + print("Create time:") + print("\tseconds: {}".format(response.create_time.timestamp_pb().seconds)) + print("\tnanos: {}".format(response.create_time.timestamp_pb().nanos)) + - print('The dataset resource name: {}\n'.format(response.name)) - print('Display name: {}'.format(response.display_name)) - print('Description: {}'.format(response.description)) - print('Create time:') - print('\tseconds: {}'.format(response.create_time.seconds)) - print('\tnanos: {}'.format(response.create_time.nanos)) # [END datalabeling_get_dataset_beta] @@ -111,67 +121,66 @@ def get_dataset(dataset_resource_name): def delete_dataset(dataset_resource_name): """Deletes a dataset for the given Google Cloud project.""" from google.cloud import datalabeling_v1beta1 as datalabeling + client = datalabeling.DataLabelingServiceClient() # [END datalabeling_delete_dataset_beta] # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) # [START datalabeling_delete_dataset_beta] - response = client.delete_dataset(dataset_resource_name) + response = client.delete_dataset(request={"name": dataset_resource_name}) + + print("Dataset deleted. {}\n".format(response)) + - print('Dataset deleted. {}\n'.format(response)) # [END datalabeling_delete_dataset_beta] -if __name__ == '__main__': +if __name__ == "__main__": parser = argparse.ArgumentParser( - description=__doc__, - formatter_class=argparse.RawDescriptionHelpFormatter + description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter ) - subparsers = parser.add_subparsers(dest='command') + subparsers = parser.add_subparsers(dest="command") - create_parser = subparsers.add_parser( - 'create', help='Create a new dataset.') + create_parser = subparsers.add_parser("create", help="Create a new dataset.") create_parser.add_argument( - '--project-id', - help='Project ID. Required.', - required=True + "--project-id", help="Project ID. Required.", required=True ) - list_parser = subparsers.add_parser('list', help='List all datasets.') + list_parser = subparsers.add_parser("list", help="List all datasets.") list_parser.add_argument( - '--project-id', - help='Project ID. Required.', - required=True + "--project-id", help="Project ID. Required.", required=True ) get_parser = subparsers.add_parser( - 'get', help='Get a dataset by the dataset resource name.') + "get", help="Get a dataset by the dataset resource name." + ) get_parser.add_argument( - '--dataset-resource-name', - help='The dataset resource name. Used in the get or delete operation.', - required=True + "--dataset-resource-name", + help="The dataset resource name. Used in the get or delete operation.", + required=True, ) delete_parser = subparsers.add_parser( - 'delete', help='Delete a dataset by the dataset resource name.') + "delete", help="Delete a dataset by the dataset resource name." + ) delete_parser.add_argument( - '--dataset-resource-name', - help='The dataset resource name. Used in the get or delete operation.', - required=True + "--dataset-resource-name", + help="The dataset resource name. Used in the get or delete operation.", + required=True, ) args = parser.parse_args() - if args.command == 'create': + if args.command == "create": create_dataset(args.project_id) - elif args.command == 'list': + elif args.command == "list": list_datasets(args.project_id) - elif args.command == 'get': + elif args.command == "get": get_dataset(args.dataset_resource_name) - elif args.command == 'delete': + elif args.command == "delete": delete_dataset(args.dataset_resource_name) diff --git a/datalabeling/snippets/manage_dataset_test.py b/datalabeling/snippets/manage_dataset_test.py index b6abc25829bb..3ecc175af5bc 100644 --- a/datalabeling/snippets/manage_dataset_test.py +++ b/datalabeling/snippets/manage_dataset_test.py @@ -28,7 +28,7 @@ PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def dataset(): # create a temporary dataset dataset = testing_lib.create_dataset(PROJECT_ID) @@ -39,7 +39,7 @@ def dataset(): testing_lib.delete_dataset(dataset.name) -@pytest.fixture(scope='module') +@pytest.fixture(scope="module") def cleaner(): # First delete old datasets. try: @@ -58,9 +58,9 @@ def cleaner(): def test_create_dataset(cleaner, capsys): - @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): return manage_dataset.create_dataset(PROJECT_ID) @@ -73,9 +73,9 @@ def run_sample(): @pytest.mark.skip("Constantly failing") def test_list_dataset(capsys, dataset): - @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): manage_dataset.list_datasets(PROJECT_ID) @@ -86,7 +86,8 @@ def run_sample(): def test_get_dataset(capsys, dataset): @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): manage_dataset.get_dataset(dataset.name) @@ -97,7 +98,8 @@ def run_sample(): def test_delete_dataset(capsys, dataset): @backoff.on_exception( - backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE) + backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE + ) def run_sample(): manage_dataset.delete_dataset(dataset.name) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index ba55d7ce53ca..5660f08be441 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -37,24 +37,22 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], - + "ignored_versions": ["2.7"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', + "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', - # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - 'envs': {}, + "envs": {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append('.') + sys.path.append(".") from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -69,12 +67,12 @@ def get_pytest_env_vars(): ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG['gcloud_project_env'] + env_key = TEST_CONFIG["gcloud_project_env"] # This should error out if not set. - ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] + ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG['envs']) + ret.update(TEST_CONFIG["envs"]) return ret @@ -83,7 +81,7 @@ def get_pytest_env_vars(): ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] +IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) @@ -138,7 +136,7 @@ def lint(session): args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - "." + ".", ] session.run("flake8", *args) @@ -182,9 +180,9 @@ def py(session): if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip("SKIPPED: {} tests are disabled for this sample.".format( - session.python - )) + session.skip( + "SKIPPED: {} tests are disabled for this sample.".format(session.python) + ) # diff --git a/datalabeling/snippets/testing_lib.py b/datalabeling/snippets/testing_lib.py index c9674a9bd785..7c39d82066f2 100644 --- a/datalabeling/snippets/testing_lib.py +++ b/datalabeling/snippets/testing_lib.py @@ -33,8 +33,8 @@ def create_client(): # If provided, use a provided test endpoint - this will prevent tests on # this snippet from triggering any action by a real human - if 'DATALABELING_ENDPOINT' in os.environ: - opts = ClientOptions(api_endpoint=os.getenv('DATALABELING_ENDPOINT')) + if "DATALABELING_ENDPOINT" in os.environ: + opts = ClientOptions(api_endpoint=os.getenv("DATALABELING_ENDPOINT")) client = datalabeling.DataLabelingServiceClient(client_options=opts) else: client = datalabeling.DataLabelingServiceClient() @@ -53,13 +53,13 @@ def delete_dataset(name): def delete_old_datasets(project_id): client = create_client() - formatted_project_name = client.project_path(project_id) + formatted_project_name = f"projects/{project_id}" - response = client.list_datasets(formatted_project_name) + response = client.list_datasets(request={"parent": formatted_project_name}) # It will delete datasets created more than 2 hours ago cutoff_time = time.time() - 7200 for element in response: - if element.create_time.seconds < cutoff_time: + if element.create_time.timestamp_pb().seconds < cutoff_time: print("Deleting {}".format(element.name)) try: dataset_sample.delete_dataset(element.name) @@ -80,7 +80,7 @@ def create_annotation_spec_set(project_id): @backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) def delete_annotation_spec_set(name): client = create_client() - client.delete_annotation_spec_set(name) + client.delete_annotation_spec_set(request={"name": name}) @backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) @@ -91,13 +91,13 @@ def create_instruction(project_id, data_type, gcs_uri): @backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) def delete_instruction(name): client = create_client() - client.delete_instruction(name) + client.delete_instruction(request={"name": name}) @backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) def cancel_operation(name): client = create_client() - client.transport._operations_client.cancel_operation(name) + client._transport.operations_client.cancel_operation(name) @backoff.on_exception(backoff.expo, DeadlineExceeded, max_time=RETRY_DEADLINE) From 71ca67a5a01dc4293e1978572af36277dec18e9f Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Wed, 2 Sep 2020 12:28:47 -0700 Subject: [PATCH 03/63] samples: updated requierement.txt and enabled list sample test (#48) --- datalabeling/snippets/manage_dataset_test.py | 1 - datalabeling/snippets/requirements.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/datalabeling/snippets/manage_dataset_test.py b/datalabeling/snippets/manage_dataset_test.py index 3ecc175af5bc..a0dc5800d9af 100644 --- a/datalabeling/snippets/manage_dataset_test.py +++ b/datalabeling/snippets/manage_dataset_test.py @@ -71,7 +71,6 @@ def run_sample(): assert "The dataset resource name:" in out -@pytest.mark.skip("Constantly failing") def test_list_dataset(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index 56ba790e276d..3b9a86369197 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==0.4.0 +google-cloud-datalabeling==1.0.0 From 1e0adb9947eb9d1fc6f19ef58be4eb5417f9ad53 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 16 Nov 2020 10:42:02 -0800 Subject: [PATCH 04/63] chore: added helpful instruction comment on lable_image sample (#52) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes b/172749007 🦕 --- datalabeling/snippets/label_image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/datalabeling/snippets/label_image.py b/datalabeling/snippets/label_image.py index 010f0ddfaa86..d61fbb4c9e16 100644 --- a/datalabeling/snippets/label_image.py +++ b/datalabeling/snippets/label_image.py @@ -45,6 +45,9 @@ def label_image( feature = datalabeling.LabelImageRequest.Feature.CLASSIFICATION + # annotation_spec_set_resource_name needs to be created beforehand. + # See the examples in the following: + # https://cloud.google.com/ai-platform/data-labeling/docs/label-sets config = datalabeling.ImageClassificationConfig( annotation_spec_set=annotation_spec_set_resource_name, allow_multi_label=False, From 5c9984791fe8a4b3dc17bca6a09ae4dba8213e85 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Nov 2020 16:12:16 -0800 Subject: [PATCH 05/63] feat: add common resource helper paths; expose client transport (#49) * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(py-library): enable snippet-bot Co-authored-by: Benjamin E. Coe Source-Author: Takashi Matsuo Source-Date: Tue Sep 1 17:14:08 2020 +0000 Source-Repo: googleapis/synthtool Source-Sha: d91dd8aac77f7a9c5506c238038a26fa4f9e361e Source-Link: https://github.com/googleapis/synthtool/commit/d91dd8aac77f7a9c5506c238038a26fa4f9e361e * chore: manual regen Co-authored-by: Bu Sun Kim Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- datalabeling/snippets/noxfile.py | 50 +++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 13 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 5660f08be441..b90eef00f2d9 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -37,22 +37,28 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["2.7"], + 'ignored_versions': ["2.7"], + + # Old samples are opted out of enforcing Python type hints + # All new samples should feature them + 'enforce_type_hints': False, + # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", + 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', + # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - "envs": {}, + 'envs': {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append(".") + sys.path.append('.') from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -67,12 +73,12 @@ def get_pytest_env_vars(): ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG["gcloud_project_env"] + env_key = TEST_CONFIG['gcloud_project_env'] # This should error out if not set. - ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] + ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG["envs"]) + ret.update(TEST_CONFIG['envs']) return ret @@ -81,7 +87,7 @@ def get_pytest_env_vars(): ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] +IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) @@ -130,16 +136,29 @@ def _determine_local_import_names(start_dir): @nox.session def lint(session): - session.install("flake8", "flake8-import-order") + if not TEST_CONFIG['enforce_type_hints']: + session.install("flake8", "flake8-import-order") + else: + session.install("flake8", "flake8-import-order", "flake8-annotations") local_names = _determine_local_import_names(".") args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - ".", + "." ] session.run("flake8", *args) +# +# Black +# + +@nox.session +def blacken(session): + session.install("black") + python_files = [path for path in os.listdir(".") if path.endswith(".py")] + + session.run("black", *python_files) # # Sample Tests @@ -180,9 +199,9 @@ def py(session): if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip( - "SKIPPED: {} tests are disabled for this sample.".format(session.python) - ) + session.skip("SKIPPED: {} tests are disabled for this sample.".format( + session.python + )) # @@ -199,6 +218,11 @@ def _get_repo_root(): break if Path(p / ".git").exists(): return str(p) + # .git is not available in repos cloned via Cloud Build + # setup.py is always in the library's root, so use that instead + # https://github.com/googleapis/synthtool/issues/792 + if Path(p / "setup.py").exists(): + return str(p) p = p.parent raise Exception("Unable to detect repository root.") From 213a2e3caafe5f22f18d6d45173b0a3d5d66014f Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Mon, 28 Dec 2020 10:22:42 -0800 Subject: [PATCH 06/63] chore: currently datalabeling is limited to due to covid 19 (#61) --- datalabeling/snippets/import_data_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datalabeling/snippets/import_data_test.py b/datalabeling/snippets/import_data_test.py index d304cbaca19f..742c71f17560 100644 --- a/datalabeling/snippets/import_data_test.py +++ b/datalabeling/snippets/import_data_test.py @@ -40,6 +40,7 @@ def dataset(): testing_lib.delete_dataset(dataset.name) +@pytest.mark.flaky(max_runs=3, min_passes=1) def test_import_data(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE From 3f8a86876eaa2c74c21ec675080a537d39f27e33 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 29 Dec 2020 08:11:39 -0800 Subject: [PATCH 07/63] chore: update templates (#63) * docs(python): update intersphinx for grpc and auth * docs(python): update intersphinx for grpc and auth * use https for python intersphinx Co-authored-by: Tim Swast Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Nov 18 14:37:25 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9a7d9fbb7045c34c9d3d22c1ff766eeae51f04c9 Source-Link: https://github.com/googleapis/synthtool/commit/9a7d9fbb7045c34c9d3d22c1ff766eeae51f04c9 * docs(python): fix intersphinx link for google-auth Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu Nov 19 10:16:05 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: a073c873f3928c561bdf87fdfbf1d081d1998984 Source-Link: https://github.com/googleapis/synthtool/commit/a073c873f3928c561bdf87fdfbf1d081d1998984 * chore: add config / docs for 'pre-commit' support Source-Author: Tres Seaver Source-Date: Tue Dec 1 16:01:20 2020 -0500 Source-Repo: googleapis/synthtool Source-Sha: 32af6da519a6b042e3da62008e2a75e991efb6b4 Source-Link: https://github.com/googleapis/synthtool/commit/32af6da519a6b042e3da62008e2a75e991efb6b4 * chore(deps): update precommit hook pre-commit/pre-commit-hooks to v3.3.0 Source-Author: WhiteSource Renovate Source-Date: Wed Dec 2 17:18:24 2020 +0100 Source-Repo: googleapis/synthtool Source-Sha: 69629b64b83c6421d616be2b8e11795738ec8a6c Source-Link: https://github.com/googleapis/synthtool/commit/69629b64b83c6421d616be2b8e11795738ec8a6c * test(python): give filesystem paths to pytest-cov https://pytest-cov.readthedocs.io/en/latest/config.html The pytest-cov docs seem to suggest a filesystem path is expected. Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Dec 2 09:28:04 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: f94318521f63085b9ccb43d42af89f153fb39f15 Source-Link: https://github.com/googleapis/synthtool/commit/f94318521f63085b9ccb43d42af89f153fb39f15 * chore: update noxfile.py.j2 * Update noxfile.py.j2 add changes from @glasnt to the template template to ensure that enforcing type hinting doesn't fail for repos with the sample noxfile (aka all samples repos) See https://github.com/GoogleCloudPlatform/python-docs-samples/pull/4869/files for context * fix typo Source-Author: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Source-Date: Thu Dec 3 13:44:30 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: 18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1 Source-Link: https://github.com/googleapis/synthtool/commit/18c5dbdb4ac8cf75d4d8174e7b4558f48e76f8a1 * chore(deps): update precommit hook pre-commit/pre-commit-hooks to v3.4.0 Co-authored-by: Tres Seaver Source-Author: WhiteSource Renovate Source-Date: Wed Dec 16 18:13:24 2020 +0100 Source-Repo: googleapis/synthtool Source-Sha: aa255b15d52b6d8950cca48cfdf58f7d27a60c8a Source-Link: https://github.com/googleapis/synthtool/commit/aa255b15d52b6d8950cca48cfdf58f7d27a60c8a * docs(python): document adding Python 3.9 support, dropping 3.5 support Closes #787 Source-Author: Tres Seaver Source-Date: Thu Dec 17 16:08:02 2020 -0500 Source-Repo: googleapis/synthtool Source-Sha: b670a77a454f415d247907908e8ee7943e06d718 Source-Link: https://github.com/googleapis/synthtool/commit/b670a77a454f415d247907908e8ee7943e06d718 * chore: exclude `.nox` directories from linting The samples tests create `.nox` directories with all dependencies installed. These directories should be excluded from linting. I've tested this change locally, and it significantly speeds up linting on my machine. Source-Author: Tim Swast Source-Date: Tue Dec 22 13:04:04 2020 -0600 Source-Repo: googleapis/synthtool Source-Sha: 373861061648b5fe5e0ac4f8a38b32d639ee93e4 Source-Link: https://github.com/googleapis/synthtool/commit/373861061648b5fe5e0ac4f8a38b32d639ee93e4 --- datalabeling/snippets/noxfile.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index b90eef00f2d9..bca0522ec4d9 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -17,6 +17,7 @@ import os from pathlib import Path import sys +from typing import Callable, Dict, List, Optional import nox @@ -68,7 +69,7 @@ TEST_CONFIG.update(TEST_CONFIG_OVERRIDE) -def get_pytest_env_vars(): +def get_pytest_env_vars() -> Dict[str, str]: """Returns a dict for pytest invocation.""" ret = {} @@ -97,7 +98,7 @@ def get_pytest_env_vars(): # -def _determine_local_import_names(start_dir): +def _determine_local_import_names(start_dir: str) -> List[str]: """Determines all import names that should be considered "local". This is used when running the linter to insure that import order is @@ -135,7 +136,7 @@ def _determine_local_import_names(start_dir): @nox.session -def lint(session): +def lint(session: nox.sessions.Session) -> None: if not TEST_CONFIG['enforce_type_hints']: session.install("flake8", "flake8-import-order") else: @@ -154,7 +155,7 @@ def lint(session): @nox.session -def blacken(session): +def blacken(session: nox.sessions.Session) -> None: session.install("black") python_files = [path for path in os.listdir(".") if path.endswith(".py")] @@ -168,7 +169,7 @@ def blacken(session): PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] -def _session_tests(session, post_install=None): +def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: """Runs py.test for a particular project.""" if os.path.exists("requirements.txt"): session.install("-r", "requirements.txt") @@ -194,7 +195,7 @@ def _session_tests(session, post_install=None): @nox.session(python=ALL_VERSIONS) -def py(session): +def py(session: nox.sessions.Session) -> None: """Runs py.test for a sample using the specified version of Python.""" if session.python in TESTED_VERSIONS: _session_tests(session) @@ -209,7 +210,7 @@ def py(session): # -def _get_repo_root(): +def _get_repo_root() -> Optional[str]: """ Returns the root folder of the project. """ # Get root of this repository. Assume we don't have directories nested deeper than 10 items. p = Path(os.getcwd()) @@ -232,7 +233,7 @@ def _get_repo_root(): @nox.session @nox.parametrize("path", GENERATED_READMES) -def readmegen(session, path): +def readmegen(session: nox.sessions.Session, path: str) -> None: """(Re-)generates the readme for a sample.""" session.install("jinja2", "pyyaml") dir_ = os.path.dirname(path) From abebafde9f36c0e8469e966913d424687f515aba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 11 Feb 2021 16:39:38 -0800 Subject: [PATCH 08/63] chore: Updating resources and configuration for presubmits and test environments (#72) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(python): skip docfx in main presubmit * chore(python): skip docfx in main presubmit * fix: properly template the repo name Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Fri Jan 8 10:32:13 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: fb53b6fb373b7c3edf4e55f3e8036bc6d73fa483 Source-Link: https://github.com/googleapis/synthtool/commit/fb53b6fb373b7c3edf4e55f3e8036bc6d73fa483 * chore: add missing quotation mark Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Mon Jan 11 09:43:06 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: 16ec872dd898d7de6e1822badfac32484b5d9031 Source-Link: https://github.com/googleapis/synthtool/commit/16ec872dd898d7de6e1822badfac32484b5d9031 * chore: add 3.9 to noxfile template Since the python-docs-samples noxfile-template doesn't sync with this, I wanted to make sure the noxfile template matched the most recent change [here](https://github.com/GoogleCloudPlatform/python-docs-samples/pull/4968/files) cc @tmatsuo Source-Author: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Source-Date: Fri Jan 15 17:24:05 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 56ddc68f36b32341e9f22c2c59b4ce6aa3ba635f Source-Link: https://github.com/googleapis/synthtool/commit/56ddc68f36b32341e9f22c2c59b4ce6aa3ba635f * build(python): make `NOX_SESSION` optional I added this accidentally in #889. `NOX_SESSION` should be passed down if it is set but not marked required. Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Tue Jan 19 09:38:04 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: ba960d730416fe05c50547e975ce79fcee52c671 Source-Link: https://github.com/googleapis/synthtool/commit/ba960d730416fe05c50547e975ce79fcee52c671 * chore: Add header checker config to python library synth Now that we have it working in [python-docs-samples](https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/.github/header-checker-lint.yml) we should consider adding it to the 🐍 libraries :) Source-Author: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Source-Date: Mon Jan 25 13:24:08 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: 573f7655311b553a937f9123bee17bf78497db95 Source-Link: https://github.com/googleapis/synthtool/commit/573f7655311b553a937f9123bee17bf78497db95 * chore: add noxfile parameters for extra dependencies Also, add tests for some noxfile parameters for assurance that the template generates valid Python. Co-authored-by: Jeffrey Rennie Source-Author: Tim Swast Source-Date: Tue Jan 26 12:26:57 2021 -0600 Source-Repo: googleapis/synthtool Source-Sha: 778d8beae28d6d87eb01fdc839a4b4d966ed2ebe Source-Link: https://github.com/googleapis/synthtool/commit/778d8beae28d6d87eb01fdc839a4b4d966ed2ebe * build: migrate to flakybot Source-Author: Justin Beckwith Source-Date: Thu Jan 28 22:22:38 2021 -0800 Source-Repo: googleapis/synthtool Source-Sha: d1bb9173100f62c0cfc8f3138b62241e7f47ca6a Source-Link: https://github.com/googleapis/synthtool/commit/d1bb9173100f62c0cfc8f3138b62241e7f47ca6a * chore(python): include py.typed files in release A py.typed file must be included in the released package for it to be considered typed by type checkers. https://www.python.org/dev/peps/pep-0561/#packaging-type-information. See https://github.com/googleapis/python-secret-manager/issues/79 Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Fri Feb 5 17:32:06 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: 33366574ffb9e11737b3547eb6f020ecae0536e8 Source-Link: https://github.com/googleapis/synthtool/commit/33366574ffb9e11737b3547eb6f020ecae0536e8 * docs: update python contributing guide Adds details about blacken, updates version for system tests, and shows how to pass through pytest arguments. Source-Author: Chris Cotter Source-Date: Mon Feb 8 17:13:36 2021 -0500 Source-Repo: googleapis/synthtool Source-Sha: 4679e7e415221f03ff2a71e3ffad75b9ec41d87e Source-Link: https://github.com/googleapis/synthtool/commit/4679e7e415221f03ff2a71e3ffad75b9ec41d87e --- datalabeling/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index bca0522ec4d9..97bf7da80e39 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -85,7 +85,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to tested samples. -ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"] +ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] From 686d515209d217b416cfa9afb0a5a97b0b8f77e1 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 23 Mar 2021 12:14:02 -0700 Subject: [PATCH 09/63] chore: disabling datalabeling tests due to service limited exception (#81) * chore: disabling datalabeling tests due to service limited exception * lint --- datalabeling/snippets/create_annotation_spec_set_test.py | 1 + datalabeling/snippets/create_instruction_test.py | 1 + datalabeling/snippets/import_data_test.py | 2 +- datalabeling/snippets/manage_dataset_test.py | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/datalabeling/snippets/create_annotation_spec_set_test.py b/datalabeling/snippets/create_annotation_spec_set_test.py index 1ed722ecc2d3..952f192c8e79 100644 --- a/datalabeling/snippets/create_annotation_spec_set_test.py +++ b/datalabeling/snippets/create_annotation_spec_set_test.py @@ -37,6 +37,7 @@ def cleaner(): testing_lib.delete_annotation_spec_set(resource_name) +@pytest.mark.skip(reason="service is limited due to covid") def test_create_annotation_spec_set(cleaner, capsys): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE diff --git a/datalabeling/snippets/create_instruction_test.py b/datalabeling/snippets/create_instruction_test.py index 5b32f8277bdc..8e521c245c24 100644 --- a/datalabeling/snippets/create_instruction_test.py +++ b/datalabeling/snippets/create_instruction_test.py @@ -39,6 +39,7 @@ def cleaner(): testing_lib.delete_instruction(resource_name) +@pytest.mark.skip(reason="service is limited due to covid") def test_create_instruction(cleaner, capsys): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE diff --git a/datalabeling/snippets/import_data_test.py b/datalabeling/snippets/import_data_test.py index 742c71f17560..fbccf8d9d87f 100644 --- a/datalabeling/snippets/import_data_test.py +++ b/datalabeling/snippets/import_data_test.py @@ -40,7 +40,7 @@ def dataset(): testing_lib.delete_dataset(dataset.name) -@pytest.mark.flaky(max_runs=3, min_passes=1) +@pytest.mark.skip(reason="service is limited due to covid") def test_import_data(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE diff --git a/datalabeling/snippets/manage_dataset_test.py b/datalabeling/snippets/manage_dataset_test.py index a0dc5800d9af..80fae2f2d2ff 100644 --- a/datalabeling/snippets/manage_dataset_test.py +++ b/datalabeling/snippets/manage_dataset_test.py @@ -28,6 +28,7 @@ PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") +@pytest.mark.skip(reason="service is limited due to covid") @pytest.fixture(scope="module") def dataset(): # create a temporary dataset @@ -57,6 +58,7 @@ def cleaner(): testing_lib.delete_dataset(resource_name) +@pytest.mark.skip(reason="service is limited due to covid") def test_create_dataset(cleaner, capsys): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE @@ -71,6 +73,7 @@ def run_sample(): assert "The dataset resource name:" in out +@pytest.mark.skip(reason="service is limited due to covid") def test_list_dataset(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE @@ -83,6 +86,7 @@ def run_sample(): assert dataset.name in out +@pytest.mark.skip(reason="service is limited due to covid") def test_get_dataset(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE @@ -95,6 +99,7 @@ def run_sample(): assert "The dataset resource name:" in out +@pytest.mark.skip(reason="service is limited due to covid") def test_delete_dataset(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE From cc4de635723afeb13c9d640add8af9eac957ba9e Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 12 May 2021 18:55:52 -0400 Subject: [PATCH 10/63] chore: migrate to owl bot (#96) * chore: migrate to owl bot * chore: copy files from googleapis-gen ee56c3493ec6aeb237ff515ecea949710944a20f * chore: run the post processor --- datalabeling/snippets/noxfile.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 97bf7da80e39..956cdf4f9250 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -172,10 +172,16 @@ def blacken(session: nox.sessions.Session) -> None: def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: """Runs py.test for a particular project.""" if os.path.exists("requirements.txt"): - session.install("-r", "requirements.txt") + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + else: + session.install("-r", "requirements.txt") if os.path.exists("requirements-test.txt"): - session.install("-r", "requirements-test.txt") + if os.path.exists("constraints-test.txt"): + session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") + else: + session.install("-r", "requirements-test.txt") if INSTALL_LIBRARY_FROM_SOURCE: session.install("-e", _get_repo_root()) From f43b1fbaea65c5f0f602d2656e8cf88ec52e654e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 14 May 2021 03:02:06 +0200 Subject: [PATCH 11/63] chore(deps): update dependency pytest to v6.2.4 (#97) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index d0029c6de49e..766a8035d690 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==1.10.0 -pytest==6.0.1 +pytest==6.2.4 From 93288af4ddd51653b87cf41b8b58dc28eb79f7ad Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 22 May 2021 09:18:05 +0000 Subject: [PATCH 12/63] chore: new owl bot post processor docker image (#103) gcr.io/repo-automation-bots/owlbot-python:latest@sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479 --- datalabeling/snippets/noxfile.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 956cdf4f9250..5ff9e1db5808 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -50,7 +50,10 @@ # to use your own Cloud project. 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', - + # If you need to use a specific version of pip, + # change pip_version_override to the string representation + # of the version number, for example, "20.2.4" + "pip_version_override": None, # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. 'envs': {}, @@ -170,6 +173,9 @@ def blacken(session: nox.sessions.Session) -> None: def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: + if TEST_CONFIG["pip_version_override"]: + pip_version = TEST_CONFIG["pip_version_override"] + session.install(f"pip=={pip_version}") """Runs py.test for a particular project.""" if os.path.exists("requirements.txt"): if os.path.exists("constraints.txt"): From c2e3910b196e58370a8d6091a9657432ea916d57 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Jun 2021 20:13:22 +0200 Subject: [PATCH 13/63] chore(deps): update dependency google-cloud-datalabeling to v1.1.0 (#106) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index 3b9a86369197..c20eae059d6c 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.0.0 +google-cloud-datalabeling==1.1.0 From 3e88a9b69c820a4e447c356c40588d0ae927a957 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Jul 2021 20:05:57 +0200 Subject: [PATCH 14/63] chore(deps): update dependency backoff to v1.11.0 (#118) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 766a8035d690..b179d9b00cec 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -backoff==1.10.0 +backoff==1.11.0 pytest==6.2.4 From e7a0dee42e21183fbf0088e222b63f99c973a188 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 13 Jul 2021 15:58:22 +0200 Subject: [PATCH 15/63] chore(deps): update dependency google-cloud-datalabeling to v1.2.0 (#119) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-datalabeling](https://togithub.com/googleapis/python-datalabeling) | `==1.1.0` -> `==1.2.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-datalabeling ### [`v1.2.0`](https://togithub.com/googleapis/python-datalabeling/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapispython-datalabelingcomparev110v120-2021-07-12) [Compare Source](https://togithub.com/googleapis/python-datalabeling/compare/v1.1.0...v1.2.0) ##### Features - add always_use_jwt_access ([#​113](https://www.github.com/googleapis/python-datalabeling/issues/113)) ([416b3e9](https://www.github.com/googleapis/python-datalabeling/commit/416b3e9e15d7b147c69391133cb4576c64a41a82)) ##### Bug Fixes - disable always_use_jwt_access ([#​117](https://www.github.com/googleapis/python-datalabeling/issues/117)) ([8c50b89](https://www.github.com/googleapis/python-datalabeling/commit/8c50b899ff1cee04af36fc5f2dae68ba721efdae)) ##### Documentation - omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#​1127](https://www.github.com/googleapis/python-datalabeling/issues/1127)) ([#​108](https://www.github.com/googleapis/python-datalabeling/issues/108)) ([2d38075](https://www.github.com/googleapis/python-datalabeling/commit/2d38075bd68c083ed164a7202fd65056ff1edbc8)), closes [#​1126](https://www.github.com/googleapis/python-datalabeling/issues/1126)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-datalabeling). --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index c20eae059d6c..ad7d1158fa49 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.1.0 +google-cloud-datalabeling==1.2.0 From 9047b773dc609194befb082d1c760b0528fa8a50 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 16 Jul 2021 15:12:13 +0200 Subject: [PATCH 16/63] chore(deps): update dependency backoff to v1.11.1 (#120) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [backoff](https://togithub.com/litl/backoff) | `==1.11.0` -> `==1.11.1` | [![age](https://badges.renovateapi.com/packages/pypi/backoff/1.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/backoff/1.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/backoff/1.11.1/compatibility-slim/1.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/backoff/1.11.1/confidence-slim/1.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
litl/backoff ### [`v1.11.1`](https://togithub.com/litl/backoff/blob/master/CHANGELOG.md#v1111-2021-07-14) [Compare Source](https://togithub.com/litl/backoff/compare/v1.11.0...v1.11.1) ##### Changed - Update **version** in backoff module
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-datalabeling). --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index b179d9b00cec..0db5cc446cf1 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -backoff==1.11.0 +backoff==1.11.1 pytest==6.2.4 From 49f141a2fc70b294af8d9865c18d728def16a89a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 22 Jul 2021 13:50:23 +0000 Subject: [PATCH 17/63] feat: add Samples section to CONTRIBUTING.rst (#124) Source-Link: https://github.com/googleapis/synthtool/commit/52e4e46eff2a0b70e3ff5506a02929d089d077d4 Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:6186535cbdbf6b9fe61f00294929221d060634dae4a0795c1cefdbc995b2d605 --- datalabeling/snippets/noxfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 5ff9e1db5808..6a8ccdae22c9 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -28,8 +28,9 @@ # WARNING - WARNING - WARNING - WARNING - WARNING # WARNING - WARNING - WARNING - WARNING - WARNING -# Copy `noxfile_config.py` to your directory and modify it instead. +BLACK_VERSION = "black==19.10b0" +# Copy `noxfile_config.py` to your directory and modify it instead. # `TEST_CONFIG` dict is a configuration hook that allows users to # modify the test configurations. The values here should be in sync @@ -159,7 +160,7 @@ def lint(session: nox.sessions.Session) -> None: @nox.session def blacken(session: nox.sessions.Session) -> None: - session.install("black") + session.install(BLACK_VERSION) python_files = [path for path in os.listdir(".") if path.endswith(".py")] session.run("black", *python_files) From 8791e61f73e6f56e46b2d4892ea34c369316e922 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Jul 2021 16:00:33 +0200 Subject: [PATCH 18/63] chore(deps): update dependency google-cloud-datalabeling to v1.2.1 (#126) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-datalabeling](https://togithub.com/googleapis/python-datalabeling) | `==1.2.0` -> `==1.2.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.1/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-datalabeling/1.2.1/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/python-datalabeling ### [`v1.2.1`](https://togithub.com/googleapis/python-datalabeling/blob/master/CHANGELOG.md#​121-httpswwwgithubcomgoogleapispython-datalabelingcomparev120v121-2021-07-20) [Compare Source](https://togithub.com/googleapis/python-datalabeling/compare/v1.2.0...v1.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-datalabeling). --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index ad7d1158fa49..4d4a9649e17d 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.2.0 +google-cloud-datalabeling==1.2.1 From 3b967197036cdba1b1d3f67dd194a284cbb9d0c9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 21:55:31 +0200 Subject: [PATCH 19/63] chore(deps): update dependency google-cloud-datalabeling to v1.2.2 (#132) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index 4d4a9649e17d..f6b6f36560d1 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.2.1 +google-cloud-datalabeling==1.2.2 From 20bf518a5f1f2559a86a5ea62cae0741e05d3684 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 11 Aug 2021 16:32:36 +0000 Subject: [PATCH 20/63] chore: fix INSTALL_LIBRARY_FROM_SOURCE in noxfile.py (#134) Source-Link: https://github.com/googleapis/synthtool/commit/6252f2cd074c38f37b44abe5e96d128733eb1b61 Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:50e35228649c47b6ca82aa0be3ff9eb2afce51c82b66c4a03fe4afeb5ff6c0fc --- datalabeling/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 6a8ccdae22c9..125bb619cc49 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -96,7 +96,7 @@ def get_pytest_env_vars() -> Dict[str, str]: TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) -INSTALL_LIBRARY_FROM_SOURCE = bool(os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False)) +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ("True", "true") # # Style Checks # From d770fa94e89846b02100b6244fdf6bfaee1709a7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 13 Aug 2021 11:31:29 -0400 Subject: [PATCH 21/63] chore: drop mention of Python 2.7 from templates (#136) Source-Link: https://github.com/googleapis/synthtool/commit/facee4cc1ea096cd8bcc008bb85929daa7c414c0 Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:9743664022bd63a8084be67f144898314c7ca12f0a03e422ac17c733c129d803 Co-authored-by: Owl Bot --- datalabeling/snippets/noxfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 125bb619cc49..e73436a15626 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -39,7 +39,7 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - 'ignored_versions': ["2.7"], + 'ignored_versions': [], # Old samples are opted out of enforcing Python type hints # All new samples should feature them @@ -88,8 +88,8 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. -# All versions used to tested samples. -ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9"] +# All versions used to test samples. +ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] From 9bebe8c4f2481875afaed6c4a041e381e61a66c1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 31 Aug 2021 17:10:25 +0200 Subject: [PATCH 22/63] chore(deps): update dependency pytest to v6.2.5 (#141) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 0db5cc446cf1..fbe6c1c5cfc8 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==1.11.1 -pytest==6.2.4 +pytest==6.2.5 From 0aee688ec2c94e830d245940f0d4ef708e38fa19 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 17 Sep 2021 15:36:52 +0000 Subject: [PATCH 23/63] chore: blacken samples noxfile template (#146) --- datalabeling/snippets/noxfile.py | 44 ++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index e73436a15626..b008613f03ff 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -39,17 +39,15 @@ TEST_CONFIG = { # You can opt out from the test for specific Python versions. - 'ignored_versions': [], - + "ignored_versions": [], # Old samples are opted out of enforcing Python type hints # All new samples should feature them - 'enforce_type_hints': False, - + "enforce_type_hints": False, # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string # to use your own Cloud project. - 'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT', + "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', # If you need to use a specific version of pip, # change pip_version_override to the string representation @@ -57,13 +55,13 @@ "pip_version_override": None, # A dictionary you want to inject into your test. Don't put any # secrets here. These values will override predefined values. - 'envs': {}, + "envs": {}, } try: # Ensure we can import noxfile_config in the project's directory. - sys.path.append('.') + sys.path.append(".") from noxfile_config import TEST_CONFIG_OVERRIDE except ImportError as e: print("No user noxfile_config found: detail: {}".format(e)) @@ -78,12 +76,12 @@ def get_pytest_env_vars() -> Dict[str, str]: ret = {} # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG['gcloud_project_env'] + env_key = TEST_CONFIG["gcloud_project_env"] # This should error out if not set. - ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key] + ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] # Apply user supplied envs. - ret.update(TEST_CONFIG['envs']) + ret.update(TEST_CONFIG["envs"]) return ret @@ -92,11 +90,14 @@ def get_pytest_env_vars() -> Dict[str, str]: ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] # Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG['ignored_versions'] +IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ("True", "true") +INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( + "True", + "true", +) # # Style Checks # @@ -141,7 +142,7 @@ def _determine_local_import_names(start_dir: str) -> List[str]: @nox.session def lint(session: nox.sessions.Session) -> None: - if not TEST_CONFIG['enforce_type_hints']: + if not TEST_CONFIG["enforce_type_hints"]: session.install("flake8", "flake8-import-order") else: session.install("flake8", "flake8-import-order", "flake8-annotations") @@ -150,9 +151,11 @@ def lint(session: nox.sessions.Session) -> None: args = FLAKE8_COMMON_ARGS + [ "--application-import-names", ",".join(local_names), - "." + ".", ] session.run("flake8", *args) + + # # Black # @@ -165,6 +168,7 @@ def blacken(session: nox.sessions.Session) -> None: session.run("black", *python_files) + # # Sample Tests # @@ -173,7 +177,9 @@ def blacken(session: nox.sessions.Session) -> None: PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] -def _session_tests(session: nox.sessions.Session, post_install: Callable = None) -> None: +def _session_tests( + session: nox.sessions.Session, post_install: Callable = None +) -> None: if TEST_CONFIG["pip_version_override"]: pip_version = TEST_CONFIG["pip_version_override"] session.install(f"pip=={pip_version}") @@ -203,7 +209,7 @@ def _session_tests(session: nox.sessions.Session, post_install: Callable = None) # on travis where slow and flaky tests are excluded. # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html success_codes=[0, 5], - env=get_pytest_env_vars() + env=get_pytest_env_vars(), ) @@ -213,9 +219,9 @@ def py(session: nox.sessions.Session) -> None: if session.python in TESTED_VERSIONS: _session_tests(session) else: - session.skip("SKIPPED: {} tests are disabled for this sample.".format( - session.python - )) + session.skip( + "SKIPPED: {} tests are disabled for this sample.".format(session.python) + ) # From f99a2150db677cbd3f50ce7880b050d48f4dbeb2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Sep 2021 15:44:15 +0000 Subject: [PATCH 24/63] chore: fail samples nox session if python version is missing (#153) --- datalabeling/snippets/noxfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index b008613f03ff..1fd8956fbf01 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]: "True", "true", ) + +# Error if a python version is missing +nox.options.error_on_missing_interpreters = True + # # Style Checks # From 7df8fc6aa5bc33a8c4b8ce98b6560963574292c7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 8 Oct 2021 17:18:25 +0000 Subject: [PATCH 25/63] chore(python): Add kokoro configs for python 3.10 samples testing (#158) --- datalabeling/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 1fd8956fbf01..93a9122cc457 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -87,7 +87,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to test samples. -ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] +ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] From 5191da9e7325c404e9f579557fd723d42bd985ef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Oct 2021 16:47:38 +0200 Subject: [PATCH 26/63] chore(deps): update dependency google-cloud-datalabeling to v1.3.0 (#162) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index f6b6f36560d1..9e827c8346a4 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.2.2 +google-cloud-datalabeling==1.3.0 From c2fc455777cf6eb2c87f870eaaf3efce5af413b9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Nov 2021 12:30:58 +0100 Subject: [PATCH 27/63] chore(deps): update dependency google-cloud-datalabeling to v1.4.0 (#168) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index 9e827c8346a4..cb89df9e274a 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.3.0 +google-cloud-datalabeling==1.4.0 From d6620b8587e304e32295189cefdfcb80312e16f0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 07:39:41 -0500 Subject: [PATCH 28/63] chore(samples): Add check for tests in directory (#181) Source-Link: https://github.com/googleapis/synthtool/commit/52aef91f8d25223d9dbdb4aebd94ba8eea2101f3 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:36a95b8f494e4674dc9eee9af98961293b51b86b3649942aac800ae6c1f796d4 Co-authored-by: Owl Bot --- datalabeling/snippets/noxfile.py | 70 ++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 93a9122cc457..3bbef5d54f44 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -14,6 +14,7 @@ from __future__ import print_function +import glob import os from pathlib import Path import sys @@ -184,37 +185,44 @@ def blacken(session: nox.sessions.Session) -> None: def _session_tests( session: nox.sessions.Session, post_install: Callable = None ) -> None: - if TEST_CONFIG["pip_version_override"]: - pip_version = TEST_CONFIG["pip_version_override"] - session.install(f"pip=={pip_version}") - """Runs py.test for a particular project.""" - if os.path.exists("requirements.txt"): - if os.path.exists("constraints.txt"): - session.install("-r", "requirements.txt", "-c", "constraints.txt") - else: - session.install("-r", "requirements.txt") - - if os.path.exists("requirements-test.txt"): - if os.path.exists("constraints-test.txt"): - session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") - else: - session.install("-r", "requirements-test.txt") - - if INSTALL_LIBRARY_FROM_SOURCE: - session.install("-e", _get_repo_root()) - - if post_install: - post_install(session) - - session.run( - "pytest", - *(PYTEST_COMMON_ARGS + session.posargs), - # Pytest will return 5 when no tests are collected. This can happen - # on travis where slow and flaky tests are excluded. - # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html - success_codes=[0, 5], - env=get_pytest_env_vars(), - ) + # check for presence of tests + test_list = glob.glob("*_test.py") + glob.glob("test_*.py") + if len(test_list) == 0: + print("No tests found, skipping directory.") + else: + if TEST_CONFIG["pip_version_override"]: + pip_version = TEST_CONFIG["pip_version_override"] + session.install(f"pip=={pip_version}") + """Runs py.test for a particular project.""" + if os.path.exists("requirements.txt"): + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + else: + session.install("-r", "requirements.txt") + + if os.path.exists("requirements-test.txt"): + if os.path.exists("constraints-test.txt"): + session.install( + "-r", "requirements-test.txt", "-c", "constraints-test.txt" + ) + else: + session.install("-r", "requirements-test.txt") + + if INSTALL_LIBRARY_FROM_SOURCE: + session.install("-e", _get_repo_root()) + + if post_install: + post_install(session) + + session.run( + "pytest", + *(PYTEST_COMMON_ARGS + session.posargs), + # Pytest will return 5 when no tests are collected. This can happen + # on travis where slow and flaky tests are excluded. + # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html + success_codes=[0, 5], + env=get_pytest_env_vars(), + ) @nox.session(python=ALL_VERSIONS) From 9a57f8441e25b31a911317a8866131c2be7fbea4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 18 Jan 2022 21:04:20 -0500 Subject: [PATCH 29/63] chore(python): Noxfile recognizes that tests can live in a folder (#185) Source-Link: https://github.com/googleapis/synthtool/commit/4760d8dce1351d93658cb11d02a1b7ceb23ae5d7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f0e4b51deef56bed74d3e2359c583fc104a8d6367da3984fc5c66938db738828 Co-authored-by: Owl Bot --- datalabeling/snippets/noxfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 3bbef5d54f44..20cdfc620138 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -187,6 +187,7 @@ def _session_tests( ) -> None: # check for presence of tests test_list = glob.glob("*_test.py") + glob.glob("test_*.py") + test_list.extend(glob.glob("tests")) if len(test_list) == 0: print("No tests found, skipping directory.") else: From d55abe667626cb6433c90da4637c8a355b950c82 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Feb 2022 17:14:54 +0100 Subject: [PATCH 30/63] chore(deps): update dependency pytest to v7 (#193) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index fbe6c1c5cfc8..27df4634c3c3 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==1.11.1 -pytest==6.2.5 +pytest==7.0.0 From ed22fe2375196e210a10de3a8b717640a7a1b7d9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Feb 2022 16:52:00 +0100 Subject: [PATCH 31/63] chore(deps): update dependency pytest to v7.0.1 (#195) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 27df4634c3c3..c531e813e29e 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==1.11.1 -pytest==7.0.0 +pytest==7.0.1 From a01df31592f50c5c4d68b3aa582f867f3ed3d295 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Feb 2022 23:12:46 +0100 Subject: [PATCH 32/63] chore(deps): update dependency google-cloud-datalabeling to v1.5.0 (#196) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index cb89df9e274a..b83e7135408c 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.4.0 +google-cloud-datalabeling==1.5.0 From 7133c237c857a62f108546898175d7ccbe9e9386 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 24 Feb 2022 15:13:25 -0700 Subject: [PATCH 33/63] chore: use gapic-generator-python 0.63.2 (#194) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 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 Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- ...ervice_create_annotation_spec_set_async.py | 45 + ...service_create_annotation_spec_set_sync.py | 45 + ...a_labeling_service_create_dataset_async.py | 45 + ...ta_labeling_service_create_dataset_sync.py | 45 + ...ing_service_create_evaluation_job_async.py | 45 + ...ling_service_create_evaluation_job_sync.py | 45 + ...beling_service_create_instruction_async.py | 49 + ...abeling_service_create_instruction_sync.py | 49 + ..._service_delete_annotated_dataset_async.py | 43 + ...g_service_delete_annotated_dataset_sync.py | 43 + ...ervice_delete_annotation_spec_set_async.py | 43 + ...service_delete_annotation_spec_set_sync.py | 43 + ...a_labeling_service_delete_dataset_async.py | 43 + ...ta_labeling_service_delete_dataset_sync.py | 43 + ...ing_service_delete_evaluation_job_async.py | 43 + ...ling_service_delete_evaluation_job_sync.py | 43 + ...beling_service_delete_instruction_async.py | 43 + ...abeling_service_delete_instruction_sync.py | 43 + ...data_labeling_service_export_data_async.py | 50 + ..._data_labeling_service_export_data_sync.py | 50 + ...ing_service_get_annotated_dataset_async.py | 45 + ...ling_service_get_annotated_dataset_sync.py | 45 + ...g_service_get_annotation_spec_set_async.py | 45 + ...ng_service_get_annotation_spec_set_sync.py | 45 + ...ta_labeling_service_get_data_item_async.py | 45 + ...ata_labeling_service_get_data_item_sync.py | 45 + ...data_labeling_service_get_dataset_async.py | 45 + ..._data_labeling_service_get_dataset_sync.py | 45 + ...a_labeling_service_get_evaluation_async.py | 45 + ...beling_service_get_evaluation_job_async.py | 45 + ...abeling_service_get_evaluation_job_sync.py | 45 + ...ta_labeling_service_get_evaluation_sync.py | 45 + ...data_labeling_service_get_example_async.py | 45 + ..._data_labeling_service_get_example_sync.py | 45 + ..._labeling_service_get_instruction_async.py | 45 + ...a_labeling_service_get_instruction_sync.py | 45 + ...data_labeling_service_import_data_async.py | 49 + ..._data_labeling_service_import_data_sync.py | 49 + ...data_labeling_service_label_image_async.py | 59 + ..._data_labeling_service_label_image_sync.py | 59 + ..._data_labeling_service_label_text_async.py | 59 + ...1_data_labeling_service_label_text_sync.py | 59 + ...data_labeling_service_label_video_async.py | 59 + ..._data_labeling_service_label_video_sync.py | 59 + ...g_service_list_annotated_datasets_async.py | 46 + ...ng_service_list_annotated_datasets_sync.py | 46 + ...service_list_annotation_spec_sets_async.py | 46 + ..._service_list_annotation_spec_sets_sync.py | 46 + ..._labeling_service_list_data_items_async.py | 46 + ...a_labeling_service_list_data_items_sync.py | 46 + ...ta_labeling_service_list_datasets_async.py | 46 + ...ata_labeling_service_list_datasets_sync.py | 46 + ...ling_service_list_evaluation_jobs_async.py | 46 + ...eling_service_list_evaluation_jobs_sync.py | 46 + ...ta_labeling_service_list_examples_async.py | 46 + ...ata_labeling_service_list_examples_sync.py | 46 + ...abeling_service_list_instructions_async.py | 46 + ...labeling_service_list_instructions_sync.py | 46 + ...ling_service_pause_evaluation_job_async.py | 43 + ...eling_service_pause_evaluation_job_sync.py | 43 + ...ing_service_resume_evaluation_job_async.py | 43 + ...ling_service_resume_evaluation_job_sync.py | 43 + ...beling_service_search_evaluations_async.py | 46 + ...abeling_service_search_evaluations_sync.py | 46 + ...ervice_search_example_comparisons_async.py | 46 + ...service_search_example_comparisons_sync.py | 46 + ...ing_service_update_evaluation_job_async.py | 44 + ...ling_service_update_evaluation_job_sync.py | 44 + ...snippet_metadata_datalabeling_v1beta1.json | 3002 +++++++++++++++++ 69 files changed, 6160 insertions(+) create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py create mode 100644 datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py create mode 100644 datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py new file mode 100644 index 000000000000..d086cb1f2176 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py new file mode 100644 index 000000000000..9f9fe8b1691f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py new file mode 100644 index 000000000000..6fc1cd179034 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py new file mode 100644 index 000000000000..850b858a4a7e --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py new file mode 100644 index 000000000000..1cbe99c1fec8 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py new file mode 100644 index 000000000000..eb0a11551063 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py new file mode 100644 index 000000000000..901348d48a23 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py new file mode 100644 index 000000000000..7d498c05240f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py @@ -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] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py new file mode 100644 index 000000000000..86d741065229 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py @@ -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 DeleteAnnotatedDataset +# 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_DeleteAnnotatedDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + await client.delete_annotated_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py new file mode 100644 index 000000000000..f4c31d85c666 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py @@ -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 DeleteAnnotatedDataset +# 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_DeleteAnnotatedDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + client.delete_annotated_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py new file mode 100644 index 000000000000..49ea3cdc26ce --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py @@ -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 DeleteAnnotationSpecSet +# 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_DeleteAnnotationSpecSet_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + await client.delete_annotation_spec_set(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py new file mode 100644 index 000000000000..c6e74c97040f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py @@ -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 DeleteAnnotationSpecSet +# 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_DeleteAnnotationSpecSet_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + client.delete_annotation_spec_set(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py new file mode 100644 index 000000000000..6a69d1c06f3b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py @@ -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 DeleteDataset +# 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_DeleteDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteDatasetRequest( + name="name_value", + ) + + # Make the request + await client.delete_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py new file mode 100644 index 000000000000..b8533c2034b9 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py @@ -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 DeleteDataset +# 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_DeleteDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteDatasetRequest( + name="name_value", + ) + + # Make the request + client.delete_dataset(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py new file mode 100644 index 000000000000..676f3d850144 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py @@ -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 DeleteEvaluationJob +# 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_DeleteEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteEvaluationJobRequest( + name="name_value", + ) + + # Make the request + await client.delete_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py new file mode 100644 index 000000000000..f3584d97d106 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py @@ -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 DeleteEvaluationJob +# 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_DeleteEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteEvaluationJobRequest( + name="name_value", + ) + + # Make the request + client.delete_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py new file mode 100644 index 000000000000..81941d2a3173 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py @@ -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 DeleteInstruction +# 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_DeleteInstruction_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_delete_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteInstructionRequest( + name="name_value", + ) + + # Make the request + await client.delete_instruction(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py new file mode 100644 index 000000000000..2e0a3f6dc274 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py @@ -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 DeleteInstruction +# 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_DeleteInstruction_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_delete_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.DeleteInstructionRequest( + name="name_value", + ) + + # Make the request + client.delete_instruction(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py new file mode 100644 index 000000000000..b6816d9b30c7 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py @@ -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 ExportData +# 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_ExportData_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_export_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ExportDataRequest( + name="name_value", + annotated_dataset="annotated_dataset_value", + ) + + # Make the request + operation = client.export_data(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py new file mode 100644 index 000000000000..6b0c4b35403b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py @@ -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 ExportData +# 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_ExportData_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_export_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ExportDataRequest( + name="name_value", + annotated_dataset="annotated_dataset_value", + ) + + # Make the request + operation = client.export_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py new file mode 100644 index 000000000000..61dbe02bd195 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py @@ -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 GetAnnotatedDataset +# 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_GetAnnotatedDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + response = await client.get_annotated_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py new file mode 100644 index 000000000000..2868844527fd --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py @@ -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 GetAnnotatedDataset +# 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_GetAnnotatedDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_annotated_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotatedDatasetRequest( + name="name_value", + ) + + # Make the request + response = client.get_annotated_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py new file mode 100644 index 000000000000..81682727945b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py @@ -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 GetAnnotationSpecSet +# 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_GetAnnotationSpecSet_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + response = await client.get_annotation_spec_set(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py new file mode 100644 index 000000000000..b0868b683e3b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py @@ -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 GetAnnotationSpecSet +# 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_GetAnnotationSpecSet_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_annotation_spec_set(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetAnnotationSpecSetRequest( + name="name_value", + ) + + # Make the request + response = client.get_annotation_spec_set(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py new file mode 100644 index 000000000000..645e70682dd8 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py @@ -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 GetDataItem +# 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_GetDataItem_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_data_item(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDataItemRequest( + name="name_value", + ) + + # Make the request + response = await client.get_data_item(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py new file mode 100644 index 000000000000..0085c5cb139a --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py @@ -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 GetDataItem +# 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_GetDataItem_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_data_item(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDataItemRequest( + name="name_value", + ) + + # Make the request + response = client.get_data_item(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py new file mode 100644 index 000000000000..67fc987ca7f2 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py @@ -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 GetDataset +# 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_GetDataset_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDatasetRequest( + name="name_value", + ) + + # Make the request + response = await client.get_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py new file mode 100644 index 000000000000..525862ed65c0 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py @@ -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 GetDataset +# 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_GetDataset_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_dataset(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetDatasetRequest( + name="name_value", + ) + + # Make the request + response = client.get_dataset(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py new file mode 100644 index 000000000000..c9c7cb158e18 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py @@ -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 GetEvaluation +# 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_GetEvaluation_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_evaluation(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationRequest( + name="name_value", + ) + + # Make the request + response = await client.get_evaluation(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py new file mode 100644 index 000000000000..843694bf265d --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py @@ -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 GetEvaluationJob +# 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_GetEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationJobRequest( + name="name_value", + ) + + # Make the request + response = await client.get_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py new file mode 100644 index 000000000000..5f29bd6a09fa --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py @@ -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 GetEvaluationJob +# 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_GetEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationJobRequest( + name="name_value", + ) + + # Make the request + response = client.get_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py new file mode 100644 index 000000000000..3ca6ea923f6f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py @@ -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 GetEvaluation +# 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_GetEvaluation_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_evaluation(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetEvaluationRequest( + name="name_value", + ) + + # Make the request + response = client.get_evaluation(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py new file mode 100644 index 000000000000..2c30fef732dd --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py @@ -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 GetExample +# 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_GetExample_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_example(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetExampleRequest( + name="name_value", + ) + + # Make the request + response = await client.get_example(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py new file mode 100644 index 000000000000..682e4aebf739 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py @@ -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 GetExample +# 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_GetExample_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_example(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetExampleRequest( + name="name_value", + ) + + # Make the request + response = client.get_example(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py new file mode 100644 index 000000000000..695a8f32cb08 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py @@ -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 GetInstruction +# 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_GetInstruction_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_get_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetInstructionRequest( + name="name_value", + ) + + # Make the request + response = await client.get_instruction(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py new file mode 100644 index 000000000000..f65c97c3e302 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py @@ -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 GetInstruction +# 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_GetInstruction_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_get_instruction(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.GetInstructionRequest( + name="name_value", + ) + + # Make the request + response = client.get_instruction(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py new file mode 100644 index 000000000000..60a8d20f4507 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py @@ -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 ImportData +# 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_ImportData_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_import_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ImportDataRequest( + name="name_value", + ) + + # Make the request + operation = client.import_data(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py new file mode 100644 index 000000000000..e6823e8f6429 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py @@ -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 ImportData +# 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_ImportData_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_import_data(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ImportDataRequest( + name="name_value", + ) + + # Make the request + operation = client.import_data(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py new file mode 100644 index 000000000000..90e6ebe8769c --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py @@ -0,0 +1,59 @@ +# -*- 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 LabelImage +# 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_LabelImage_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_label_image(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + image_classification_config = datalabeling_v1beta1.ImageClassificationConfig() + image_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelImageRequest( + image_classification_config=image_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="SEGMENTATION", + ) + + # Make the request + operation = client.label_image(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py new file mode 100644 index 000000000000..6177e6f6dd86 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py @@ -0,0 +1,59 @@ +# -*- 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 LabelImage +# 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_LabelImage_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_label_image(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + image_classification_config = datalabeling_v1beta1.ImageClassificationConfig() + image_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelImageRequest( + image_classification_config=image_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="SEGMENTATION", + ) + + # Make the request + operation = client.label_image(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py new file mode 100644 index 000000000000..5bc8467f40a7 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py @@ -0,0 +1,59 @@ +# -*- 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 LabelText +# 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_LabelText_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_label_text(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + text_classification_config = datalabeling_v1beta1.TextClassificationConfig() + text_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelTextRequest( + text_classification_config=text_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="TEXT_ENTITY_EXTRACTION", + ) + + # Make the request + operation = client.label_text(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py new file mode 100644 index 000000000000..ca1866ff8b41 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py @@ -0,0 +1,59 @@ +# -*- 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 LabelText +# 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_LabelText_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_label_text(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + text_classification_config = datalabeling_v1beta1.TextClassificationConfig() + text_classification_config.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelTextRequest( + text_classification_config=text_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="TEXT_ENTITY_EXTRACTION", + ) + + # Make the request + operation = client.label_text(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py new file mode 100644 index 000000000000..6d709c83fdb4 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py @@ -0,0 +1,59 @@ +# -*- 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 LabelVideo +# 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_LabelVideo_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_label_video(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + video_classification_config = datalabeling_v1beta1.VideoClassificationConfig() + video_classification_config.annotation_spec_set_configs.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelVideoRequest( + video_classification_config=video_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="EVENT", + ) + + # Make the request + operation = client.label_video(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py new file mode 100644 index 000000000000..60b1e9ff9ceb --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py @@ -0,0 +1,59 @@ +# -*- 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 LabelVideo +# 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_LabelVideo_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_label_video(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + video_classification_config = datalabeling_v1beta1.VideoClassificationConfig() + video_classification_config.annotation_spec_set_configs.annotation_spec_set = "annotation_spec_set_value" + + basic_config = datalabeling_v1beta1.HumanAnnotationConfig() + basic_config.instruction = "instruction_value" + basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" + + request = datalabeling_v1beta1.LabelVideoRequest( + video_classification_config=video_classification_config, + parent="parent_value", + basic_config=basic_config, + feature="EVENT", + ) + + # Make the request + operation = client.label_video(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py new file mode 100644 index 000000000000..6164b79af696 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py @@ -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 ListAnnotatedDatasets +# 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_ListAnnotatedDatasets_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_annotated_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotatedDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotated_datasets(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py new file mode 100644 index 000000000000..979fbe64974f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py @@ -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 ListAnnotatedDatasets +# 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_ListAnnotatedDatasets_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_annotated_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotatedDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotated_datasets(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py new file mode 100644 index 000000000000..b6173f62fb06 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py @@ -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 ListAnnotationSpecSets +# 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_ListAnnotationSpecSets_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_annotation_spec_sets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotationSpecSetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotation_spec_sets(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py new file mode 100644 index 000000000000..a01c7d3e9c45 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py @@ -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 ListAnnotationSpecSets +# 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_ListAnnotationSpecSets_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_annotation_spec_sets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListAnnotationSpecSetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_annotation_spec_sets(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py new file mode 100644 index 000000000000..48b034cf3d69 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py @@ -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 ListDataItems +# 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_ListDataItems_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_data_items(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDataItemsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_data_items(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py new file mode 100644 index 000000000000..aeba476c9c22 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py @@ -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 ListDataItems +# 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_ListDataItems_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_data_items(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDataItemsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_data_items(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py new file mode 100644 index 000000000000..940271982f29 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py @@ -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 ListDatasets +# 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_ListDatasets_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_datasets(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py new file mode 100644 index 000000000000..b37f1371acc9 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py @@ -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 ListDatasets +# 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_ListDatasets_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_datasets(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListDatasetsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_datasets(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py new file mode 100644 index 000000000000..3c1632032f2f --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py @@ -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 ListEvaluationJobs +# 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_ListEvaluationJobs_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_evaluation_jobs(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListEvaluationJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_evaluation_jobs(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py new file mode 100644 index 000000000000..9107205f7c37 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py @@ -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 ListEvaluationJobs +# 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_ListEvaluationJobs_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_evaluation_jobs(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListEvaluationJobsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_evaluation_jobs(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py new file mode 100644 index 000000000000..67ce39031d41 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py @@ -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 ListExamples +# 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_ListExamples_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_examples(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListExamplesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_examples(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py new file mode 100644 index 000000000000..2e00142f57d4 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py @@ -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 ListExamples +# 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_ListExamples_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_examples(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListExamplesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_examples(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py new file mode 100644 index 000000000000..fded708d162a --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py @@ -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 ListInstructions +# 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_ListInstructions_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_list_instructions(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListInstructionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instructions(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py new file mode 100644 index 000000000000..abf91a6d512e --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py @@ -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 ListInstructions +# 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_ListInstructions_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_list_instructions(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ListInstructionsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_instructions(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py new file mode 100644 index 000000000000..3041bbf3bc7a --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py @@ -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 PauseEvaluationJob +# 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_PauseEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_pause_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.PauseEvaluationJobRequest( + name="name_value", + ) + + # Make the request + await client.pause_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py new file mode 100644 index 000000000000..d26c86c110af --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py @@ -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 PauseEvaluationJob +# 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_PauseEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_pause_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.PauseEvaluationJobRequest( + name="name_value", + ) + + # Make the request + client.pause_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py new file mode 100644 index 000000000000..0d9e97e37664 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py @@ -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 ResumeEvaluationJob +# 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_ResumeEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_resume_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ResumeEvaluationJobRequest( + name="name_value", + ) + + # Make the request + await client.resume_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py new file mode 100644 index 000000000000..90953eae59f5 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py @@ -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 ResumeEvaluationJob +# 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_ResumeEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_resume_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.ResumeEvaluationJobRequest( + name="name_value", + ) + + # Make the request + client.resume_evaluation_job(request=request) + + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py new file mode 100644 index 000000000000..a1c463f4f8f1 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py @@ -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 SearchEvaluations +# 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_SearchEvaluations_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_search_evaluations(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchEvaluationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_evaluations(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py new file mode 100644 index 000000000000..8799325c5e59 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py @@ -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 SearchEvaluations +# 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_SearchEvaluations_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_search_evaluations(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchEvaluationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_evaluations(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py new file mode 100644 index 000000000000..bd3ef9abd87b --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py @@ -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 SearchExampleComparisons +# 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_SearchExampleComparisons_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_search_example_comparisons(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchExampleComparisonsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_example_comparisons(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py new file mode 100644 index 000000000000..9d82b0167997 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py @@ -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 SearchExampleComparisons +# 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_SearchExampleComparisons_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_search_example_comparisons(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.SearchExampleComparisonsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.search_example_comparisons(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py new file mode 100644 index 000000000000..4c522cec4e17 --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py @@ -0,0 +1,44 @@ +# -*- 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 UpdateEvaluationJob +# 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_UpdateEvaluationJob_async] +from google.cloud import datalabeling_v1beta1 + + +async def sample_update_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.UpdateEvaluationJobRequest( + ) + + # Make the request + response = await client.update_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py new file mode 100644 index 000000000000..1ce475b5f44e --- /dev/null +++ b/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py @@ -0,0 +1,44 @@ +# -*- 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 UpdateEvaluationJob +# 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_UpdateEvaluationJob_sync] +from google.cloud import datalabeling_v1beta1 + + +def sample_update_evaluation_job(): + # Create a client + client = datalabeling_v1beta1.DataLabelingServiceClient() + + # Initialize request argument(s) + request = datalabeling_v1beta1.UpdateEvaluationJobRequest( + ) + + # Make the request + response = client.update_evaluation_job(request=request) + + # Handle the response + print(response) + +# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync] diff --git a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json new file mode 100644 index 000000000000..fb73ced8f856 --- /dev/null +++ b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json @@ -0,0 +1,3002 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "CreateInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "DeleteInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ExportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ExportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync", + "segments": [ + { + "end": 49, + "start": 27, + "type": "FULL" + }, + { + "end": 49, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 46, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 50, + "start": 47, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotatedDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetAnnotationSpecSet" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataItem" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataItem" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetDataset" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluation" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetEvaluation" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetExample" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetExample" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "GetInstruction" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ImportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ImportData" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelImage" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelImage" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelText" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelText" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelVideo" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "LabelVideo" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync", + "segments": [ + { + "end": 58, + "start": 27, + "type": "FULL" + }, + { + "end": 58, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 48, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 55, + "start": 49, + "type": "REQUEST_EXECUTION" + }, + { + "end": 59, + "start": 56, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotatedDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotatedDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotationSpecSets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListAnnotationSpecSets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDataItems" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDataItems" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListDatasets" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListEvaluationJobs" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListEvaluationJobs" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListExamples" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListExamples" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListInstructions" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ListInstructions" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "PauseEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "PauseEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ResumeEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "ResumeEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync", + "segments": [ + { + "end": 42, + "start": 27, + "type": "FULL" + }, + { + "end": 42, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchEvaluations" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchEvaluations" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchExampleComparisons" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "SearchExampleComparisons" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "UpdateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "DataLabelingService" + }, + "shortName": "UpdateEvaluationJob" + } + }, + "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py", + "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync", + "segments": [ + { + "end": 43, + "start": 27, + "type": "FULL" + }, + { + "end": 43, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 40, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 44, + "start": 41, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +} From a62b743017bdab1d06f881bf843ce235887aefbb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Feb 2022 10:07:58 -0700 Subject: [PATCH 34/63] chore: use gapic-generator-python 0.63.4 (#197) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.4 chore: fix snippet region tag format chore: fix docstring code block formatting PiperOrigin-RevId: 430730865 Source-Link: https://github.com/googleapis/googleapis/commit/ea5800229f73f94fd7204915a86ed09dcddf429a Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca893ff8af25fc7fe001de1405a517d80446ecca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2E4OTNmZjhhZjI1ZmM3ZmUwMDFkZTE0MDVhNTE3ZDgwNDQ2ZWNjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: delete duplicates Co-authored-by: Owl Bot Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- ...rvice_create_annotation_spec_set_async.py} | 4 +- ...ervice_create_annotation_spec_set_sync.py} | 4 +- ..._labeling_service_create_dataset_async.py} | 4 +- ...a_labeling_service_create_dataset_sync.py} | 4 +- ...ng_service_create_evaluation_job_async.py} | 4 +- ...ing_service_create_evaluation_job_sync.py} | 4 +- ...eling_service_create_instruction_async.py} | 4 +- ...beling_service_create_instruction_sync.py} | 4 +- ...service_delete_annotated_dataset_async.py} | 4 +- ..._service_delete_annotated_dataset_sync.py} | 4 +- ...rvice_delete_annotation_spec_set_async.py} | 4 +- ...ervice_delete_annotation_spec_set_sync.py} | 4 +- ..._labeling_service_delete_dataset_async.py} | 4 +- ...a_labeling_service_delete_dataset_sync.py} | 4 +- ...ng_service_delete_evaluation_job_async.py} | 4 +- ...ing_service_delete_evaluation_job_sync.py} | 4 +- ...eling_service_delete_instruction_async.py} | 4 +- ...beling_service_delete_instruction_sync.py} | 4 +- ...ata_labeling_service_export_data_async.py} | 4 +- ...data_labeling_service_export_data_sync.py} | 4 +- ...ng_service_get_annotated_dataset_async.py} | 4 +- ...ing_service_get_annotated_dataset_sync.py} | 4 +- ..._service_get_annotation_spec_set_async.py} | 4 +- ...g_service_get_annotation_spec_set_sync.py} | 4 +- ...a_labeling_service_get_data_item_async.py} | 4 +- ...ta_labeling_service_get_data_item_sync.py} | 4 +- ...ata_labeling_service_get_dataset_async.py} | 4 +- ...data_labeling_service_get_dataset_sync.py} | 4 +- ..._labeling_service_get_evaluation_async.py} | 4 +- ...eling_service_get_evaluation_job_async.py} | 4 +- ...beling_service_get_evaluation_job_sync.py} | 4 +- ...a_labeling_service_get_evaluation_sync.py} | 4 +- ...ata_labeling_service_get_example_async.py} | 4 +- ...data_labeling_service_get_example_sync.py} | 4 +- ...labeling_service_get_instruction_async.py} | 4 +- ..._labeling_service_get_instruction_sync.py} | 4 +- ...ata_labeling_service_import_data_async.py} | 4 +- ...data_labeling_service_import_data_sync.py} | 4 +- ...ata_labeling_service_label_image_async.py} | 4 +- ...data_labeling_service_label_image_sync.py} | 4 +- ...data_labeling_service_label_text_async.py} | 4 +- ..._data_labeling_service_label_text_sync.py} | 4 +- ...ata_labeling_service_label_video_async.py} | 4 +- ...data_labeling_service_label_video_sync.py} | 4 +- ..._service_list_annotated_datasets_async.py} | 4 +- ...g_service_list_annotated_datasets_sync.py} | 4 +- ...ervice_list_annotation_spec_sets_async.py} | 4 +- ...service_list_annotation_spec_sets_sync.py} | 4 +- ...labeling_service_list_data_items_async.py} | 4 +- ..._labeling_service_list_data_items_sync.py} | 4 +- ...a_labeling_service_list_datasets_async.py} | 4 +- ...ta_labeling_service_list_datasets_sync.py} | 4 +- ...ing_service_list_evaluation_jobs_async.py} | 4 +- ...ling_service_list_evaluation_jobs_sync.py} | 4 +- ...a_labeling_service_list_examples_async.py} | 4 +- ...ta_labeling_service_list_examples_sync.py} | 4 +- ...beling_service_list_instructions_async.py} | 4 +- ...abeling_service_list_instructions_sync.py} | 4 +- ...ing_service_pause_evaluation_job_async.py} | 4 +- ...ling_service_pause_evaluation_job_sync.py} | 4 +- ...ng_service_resume_evaluation_job_async.py} | 4 +- ...ing_service_resume_evaluation_job_sync.py} | 4 +- ...eling_service_search_evaluations_async.py} | 4 +- ...beling_service_search_evaluations_sync.py} | 4 +- ...rvice_search_example_comparisons_async.py} | 4 +- ...ervice_search_example_comparisons_sync.py} | 4 +- ...ng_service_update_evaluation_job_async.py} | 4 +- ...ing_service_update_evaluation_job_sync.py} | 4 +- ...snippet_metadata_datalabeling_v1beta1.json | 272 +++++++++--------- 69 files changed, 272 insertions(+), 272 deletions(-) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py => datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py => datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py => datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py => datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py => datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py => datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py => datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py => datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py => datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py} (86%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py => datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py} (86%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py => datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py} (86%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py => datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py} (86%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py => datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py => datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py => datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py => datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py => datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py => datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py => datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py} (89%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py => datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py} (89%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py => datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py => datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py => datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py => datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py => datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py} (91%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py => datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py} (91%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py => datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py} (91%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py => datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py} (91%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py => datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py} (91%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py => datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py} (91%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py => datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py => datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py => datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py => datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py => datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py => datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py => datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py => datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py => datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py => datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py => datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py => datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py => datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py => datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py => datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py => datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py => datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py => datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py => datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py => datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py} (88%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py => datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py => datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py => datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py} (87%) rename datalabeling/generated_samples/{datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py => datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py} (87%) diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py index d086cb1f2176..b9debf2ec307 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_create_annotation_spec_set(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py index 9f9fe8b1691f..29093a21cc98 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_create_annotation_spec_set(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py index 6fc1cd179034..961f50f0838e 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_create_dataset(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py index 850b858a4a7e..6364ff7e799f 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_create_dataset(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py index 1cbe99c1fec8..345fc82a08c1 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_create_evaluation_job(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py index eb0a11551063..9d2e45fce805 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_create_evaluation_job(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py index 901348d48a23..32b5095cc088 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async] from google.cloud import datalabeling_v1beta1 @@ -46,4 +46,4 @@ async def sample_create_instruction(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py index 7d498c05240f..d5cb222dc285 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync] from google.cloud import datalabeling_v1beta1 @@ -46,4 +46,4 @@ def sample_create_instruction(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py similarity index 86% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py index 86d741065229..e7527a9fa0e4 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ async def sample_delete_annotated_dataset(): await client.delete_annotated_dataset(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py similarity index 86% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py index f4c31d85c666..3fabd9a35e87 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ def sample_delete_annotated_dataset(): client.delete_annotated_dataset(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py similarity index 86% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py index 49ea3cdc26ce..ba534cc133f7 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ async def sample_delete_annotation_spec_set(): await client.delete_annotation_spec_set(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py similarity index 86% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py index c6e74c97040f..34ef9f88a1f0 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ def sample_delete_annotation_spec_set(): client.delete_annotation_spec_set(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py index 6a69d1c06f3b..174328511c36 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ async def sample_delete_dataset(): await client.delete_dataset(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py index b8533c2034b9..752d3fe367f0 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ def sample_delete_dataset(): client.delete_dataset(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py index 676f3d850144..79ff634968f0 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ async def sample_delete_evaluation_job(): await client.delete_evaluation_job(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py index f3584d97d106..c5526f683a75 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ def sample_delete_evaluation_job(): client.delete_evaluation_job(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py index 81941d2a3173..4d58144c28a7 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ async def sample_delete_instruction(): await client.delete_instruction(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py index 2e0a3f6dc274..f1587d8f2f22 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ def sample_delete_instruction(): client.delete_instruction(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py similarity index 89% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py index b6816d9b30c7..4eb209217751 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ExportData_async] from google.cloud import datalabeling_v1beta1 @@ -47,4 +47,4 @@ async def sample_export_data(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ExportData_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py similarity index 89% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py index 6b0c4b35403b..238cfcdee82f 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync] from google.cloud import datalabeling_v1beta1 @@ -47,4 +47,4 @@ def sample_export_data(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py index 61dbe02bd195..fea687c65ea9 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_annotated_dataset(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py index 2868844527fd..12308cdddb3a 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_annotated_dataset(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py index 81682727945b..a66bf6d82b02 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_annotation_spec_set(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py index b0868b683e3b..16dc70cf6c11 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_annotation_spec_set(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py index 645e70682dd8..773c4b1b11f1 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_data_item(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py index 0085c5cb139a..2711429d3a84 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_data_item(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py index 67fc987ca7f2..b9dafe2ca0b7 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_dataset(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py index 525862ed65c0..13e8de473fbc 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_dataset(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py index c9c7cb158e18..fabe7dc2e9c4 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_evaluation(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py index 843694bf265d..b41bbda85696 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_evaluation_job(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py index 5f29bd6a09fa..a1966c4fec9e 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_evaluation_job(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py index 3ca6ea923f6f..d9f41a89a3be 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_evaluation(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py index 2c30fef732dd..552bd0da88cf 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetExample_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_example(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetExample_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py index 682e4aebf739..38adce985bdc 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_example(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py index 695a8f32cb08..8aafce5c3391 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ async def sample_get_instruction(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py index f65c97c3e302..b585a5786d07 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync] from google.cloud import datalabeling_v1beta1 @@ -42,4 +42,4 @@ def sample_get_instruction(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py index 60a8d20f4507..ce074c058ef1 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ImportData_async] from google.cloud import datalabeling_v1beta1 @@ -46,4 +46,4 @@ async def sample_import_data(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ImportData_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py index e6823e8f6429..75d789d8a43d 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync] from google.cloud import datalabeling_v1beta1 @@ -46,4 +46,4 @@ def sample_import_data(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py similarity index 91% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py index 90e6ebe8769c..d7a60c12a68d 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async] from google.cloud import datalabeling_v1beta1 @@ -56,4 +56,4 @@ async def sample_label_image(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py similarity index 91% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py index 6177e6f6dd86..2542bdd62b5e 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync] from google.cloud import datalabeling_v1beta1 @@ -56,4 +56,4 @@ def sample_label_image(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py similarity index 91% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py index 5bc8467f40a7..1cfecf5916f3 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_LabelText_async] from google.cloud import datalabeling_v1beta1 @@ -56,4 +56,4 @@ async def sample_label_text(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_LabelText_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py similarity index 91% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py index ca1866ff8b41..73d6d9d69921 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync] from google.cloud import datalabeling_v1beta1 @@ -56,4 +56,4 @@ def sample_label_text(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py similarity index 91% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py index 6d709c83fdb4..47616f640e01 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async] from google.cloud import datalabeling_v1beta1 @@ -56,4 +56,4 @@ async def sample_label_video(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py similarity index 91% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py index 60b1e9ff9ceb..c5ce3f772edd 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync] from google.cloud import datalabeling_v1beta1 @@ -56,4 +56,4 @@ def sample_label_video(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py index 6164b79af696..928b10bfbefa 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_list_annotated_datasets(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py index 979fbe64974f..a86de20c81ab 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_list_annotated_datasets(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py index b6173f62fb06..43668ec077e0 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_list_annotation_spec_sets(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py index a01c7d3e9c45..67dc95e01cec 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_list_annotation_spec_sets(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py index 48b034cf3d69..308d1246479b 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_list_data_items(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py index aeba476c9c22..01d6533b5271 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_list_data_items(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py index 940271982f29..ba39ea5af119 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_list_datasets(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py index b37f1371acc9..73682a8998cc 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_list_datasets(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py index 3c1632032f2f..3db9f161e44e 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_list_evaluation_jobs(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py index 9107205f7c37..b63e57954a35 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_list_evaluation_jobs(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py index 67ce39031d41..708398781f1f 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_list_examples(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py index 2e00142f57d4..a673ee0d669b 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_list_examples(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py index fded708d162a..a5b5d8cc9bed 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_list_instructions(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py index abf91a6d512e..c972951231bc 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_list_instructions(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py index 3041bbf3bc7a..80af2e4a4303 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ async def sample_pause_evaluation_job(): await client.pause_evaluation_job(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py index d26c86c110af..3d835e008294 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ def sample_pause_evaluation_job(): client.pause_evaluation_job(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py index 0d9e97e37664..b6d1fdc040a4 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ async def sample_resume_evaluation_job(): await client.resume_evaluation_job(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py index 90953eae59f5..926282b24daa 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync] from google.cloud import datalabeling_v1beta1 @@ -40,4 +40,4 @@ def sample_resume_evaluation_job(): client.resume_evaluation_job(request=request) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py index a1c463f4f8f1..ad1573e21a7a 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_search_evaluations(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py similarity index 88% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py index 8799325c5e59..6f319c7a6a3c 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_search_evaluations(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py index bd3ef9abd87b..7f6d3288c909 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ async def sample_search_example_comparisons(): async for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py index 9d82b0167997..3765f1de9475 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync] from google.cloud import datalabeling_v1beta1 @@ -43,4 +43,4 @@ def sample_search_example_comparisons(): for response in page_result: print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py index 4c522cec4e17..a8a3dbaae2d6 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async] +# [START datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async] from google.cloud import datalabeling_v1beta1 @@ -41,4 +41,4 @@ async def sample_update_evaluation_job(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async] +# [END datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py similarity index 87% rename from datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py rename to datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py index 1ce475b5f44e..d561ea4afae9 100644 --- a/datalabeling/generated_samples/datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-datalabeling -# [START datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync] +# [START datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync] from google.cloud import datalabeling_v1beta1 @@ -41,4 +41,4 @@ def sample_update_evaluation_job(): # Handle the response print(response) -# [END datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync] +# [END datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync] diff --git a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json index fb73ced8f856..e7ab87238106 100644 --- a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json +++ b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json @@ -10,8 +10,8 @@ "shortName": "CreateAnnotationSpecSet" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async", "segments": [ { "end": 44, @@ -54,8 +54,8 @@ "shortName": "CreateAnnotationSpecSet" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_annotation_spec_set_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateAnnotationSpecSet_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync", "segments": [ { "end": 44, @@ -99,8 +99,8 @@ "shortName": "CreateDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async", "segments": [ { "end": 44, @@ -143,8 +143,8 @@ "shortName": "CreateDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_dataset_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateDataset_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync", "segments": [ { "end": 44, @@ -188,8 +188,8 @@ "shortName": "CreateEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async", "segments": [ { "end": 44, @@ -232,8 +232,8 @@ "shortName": "CreateEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_evaluation_job_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateEvaluationJob_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync", "segments": [ { "end": 44, @@ -277,8 +277,8 @@ "shortName": "CreateInstruction" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async", "segments": [ { "end": 48, @@ -321,8 +321,8 @@ "shortName": "CreateInstruction" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_create_instruction_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_CreateInstruction_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync", "segments": [ { "end": 48, @@ -366,8 +366,8 @@ "shortName": "DeleteAnnotatedDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async", "segments": [ { "end": 42, @@ -408,8 +408,8 @@ "shortName": "DeleteAnnotatedDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotated_dataset_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotatedDataset_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync", "segments": [ { "end": 42, @@ -451,8 +451,8 @@ "shortName": "DeleteAnnotationSpecSet" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async", "segments": [ { "end": 42, @@ -493,8 +493,8 @@ "shortName": "DeleteAnnotationSpecSet" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_annotation_spec_set_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteAnnotationSpecSet_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync", "segments": [ { "end": 42, @@ -536,8 +536,8 @@ "shortName": "DeleteDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async", "segments": [ { "end": 42, @@ -578,8 +578,8 @@ "shortName": "DeleteDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_dataset_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteDataset_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync", "segments": [ { "end": 42, @@ -621,8 +621,8 @@ "shortName": "DeleteEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async", "segments": [ { "end": 42, @@ -663,8 +663,8 @@ "shortName": "DeleteEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_evaluation_job_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteEvaluationJob_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync", "segments": [ { "end": 42, @@ -706,8 +706,8 @@ "shortName": "DeleteInstruction" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async", "segments": [ { "end": 42, @@ -748,8 +748,8 @@ "shortName": "DeleteInstruction" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_delete_instruction_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_DeleteInstruction_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync", "segments": [ { "end": 42, @@ -791,8 +791,8 @@ "shortName": "ExportData" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_async", "segments": [ { "end": 49, @@ -835,8 +835,8 @@ "shortName": "ExportData" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_export_data_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ExportData_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync", "segments": [ { "end": 49, @@ -880,8 +880,8 @@ "shortName": "GetAnnotatedDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async", "segments": [ { "end": 44, @@ -924,8 +924,8 @@ "shortName": "GetAnnotatedDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotated_dataset_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotatedDataset_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync", "segments": [ { "end": 44, @@ -969,8 +969,8 @@ "shortName": "GetAnnotationSpecSet" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async", "segments": [ { "end": 44, @@ -1013,8 +1013,8 @@ "shortName": "GetAnnotationSpecSet" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_annotation_spec_set_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetAnnotationSpecSet_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync", "segments": [ { "end": 44, @@ -1058,8 +1058,8 @@ "shortName": "GetDataItem" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async", "segments": [ { "end": 44, @@ -1102,8 +1102,8 @@ "shortName": "GetDataItem" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_data_item_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataItem_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync", "segments": [ { "end": 44, @@ -1147,8 +1147,8 @@ "shortName": "GetDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async", "segments": [ { "end": 44, @@ -1191,8 +1191,8 @@ "shortName": "GetDataset" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_dataset_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetDataset_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync", "segments": [ { "end": 44, @@ -1236,8 +1236,8 @@ "shortName": "GetEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async", "segments": [ { "end": 44, @@ -1280,8 +1280,8 @@ "shortName": "GetEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_job_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluationJob_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync", "segments": [ { "end": 44, @@ -1325,8 +1325,8 @@ "shortName": "GetEvaluation" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async", "segments": [ { "end": 44, @@ -1369,8 +1369,8 @@ "shortName": "GetEvaluation" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_evaluation_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetEvaluation_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync", "segments": [ { "end": 44, @@ -1414,8 +1414,8 @@ "shortName": "GetExample" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_async", "segments": [ { "end": 44, @@ -1458,8 +1458,8 @@ "shortName": "GetExample" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_example_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetExample_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync", "segments": [ { "end": 44, @@ -1503,8 +1503,8 @@ "shortName": "GetInstruction" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async", "segments": [ { "end": 44, @@ -1547,8 +1547,8 @@ "shortName": "GetInstruction" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_get_instruction_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_GetInstruction_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync", "segments": [ { "end": 44, @@ -1592,8 +1592,8 @@ "shortName": "ImportData" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_async", "segments": [ { "end": 48, @@ -1636,8 +1636,8 @@ "shortName": "ImportData" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_import_data_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ImportData_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync", "segments": [ { "end": 48, @@ -1681,8 +1681,8 @@ "shortName": "LabelImage" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async", "segments": [ { "end": 58, @@ -1725,8 +1725,8 @@ "shortName": "LabelImage" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_image_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelImage_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync", "segments": [ { "end": 58, @@ -1770,8 +1770,8 @@ "shortName": "LabelText" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_async", "segments": [ { "end": 58, @@ -1814,8 +1814,8 @@ "shortName": "LabelText" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_text_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelText_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync", "segments": [ { "end": 58, @@ -1859,8 +1859,8 @@ "shortName": "LabelVideo" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async", "segments": [ { "end": 58, @@ -1903,8 +1903,8 @@ "shortName": "LabelVideo" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_label_video_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_LabelVideo_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync", "segments": [ { "end": 58, @@ -1948,8 +1948,8 @@ "shortName": "ListAnnotatedDatasets" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async", "segments": [ { "end": 45, @@ -1992,8 +1992,8 @@ "shortName": "ListAnnotatedDatasets" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotated_datasets_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotatedDatasets_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync", "segments": [ { "end": 45, @@ -2037,8 +2037,8 @@ "shortName": "ListAnnotationSpecSets" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async", "segments": [ { "end": 45, @@ -2081,8 +2081,8 @@ "shortName": "ListAnnotationSpecSets" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_annotation_spec_sets_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListAnnotationSpecSets_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync", "segments": [ { "end": 45, @@ -2126,8 +2126,8 @@ "shortName": "ListDataItems" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async", "segments": [ { "end": 45, @@ -2170,8 +2170,8 @@ "shortName": "ListDataItems" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_data_items_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDataItems_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync", "segments": [ { "end": 45, @@ -2215,8 +2215,8 @@ "shortName": "ListDatasets" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async", "segments": [ { "end": 45, @@ -2259,8 +2259,8 @@ "shortName": "ListDatasets" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_datasets_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListDatasets_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync", "segments": [ { "end": 45, @@ -2304,8 +2304,8 @@ "shortName": "ListEvaluationJobs" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async", "segments": [ { "end": 45, @@ -2348,8 +2348,8 @@ "shortName": "ListEvaluationJobs" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_evaluation_jobs_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListEvaluationJobs_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync", "segments": [ { "end": 45, @@ -2393,8 +2393,8 @@ "shortName": "ListExamples" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async", "segments": [ { "end": 45, @@ -2437,8 +2437,8 @@ "shortName": "ListExamples" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_examples_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListExamples_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync", "segments": [ { "end": 45, @@ -2482,8 +2482,8 @@ "shortName": "ListInstructions" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async", "segments": [ { "end": 45, @@ -2526,8 +2526,8 @@ "shortName": "ListInstructions" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_list_instructions_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ListInstructions_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync", "segments": [ { "end": 45, @@ -2571,8 +2571,8 @@ "shortName": "PauseEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async", "segments": [ { "end": 42, @@ -2613,8 +2613,8 @@ "shortName": "PauseEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_pause_evaluation_job_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_PauseEvaluationJob_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync", "segments": [ { "end": 42, @@ -2656,8 +2656,8 @@ "shortName": "ResumeEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async", "segments": [ { "end": 42, @@ -2698,8 +2698,8 @@ "shortName": "ResumeEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_resume_evaluation_job_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_ResumeEvaluationJob_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync", "segments": [ { "end": 42, @@ -2741,8 +2741,8 @@ "shortName": "SearchEvaluations" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async", "segments": [ { "end": 45, @@ -2785,8 +2785,8 @@ "shortName": "SearchEvaluations" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_evaluations_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchEvaluations_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync", "segments": [ { "end": 45, @@ -2830,8 +2830,8 @@ "shortName": "SearchExampleComparisons" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async", "segments": [ { "end": 45, @@ -2874,8 +2874,8 @@ "shortName": "SearchExampleComparisons" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_search_example_comparisons_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_SearchExampleComparisons_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync", "segments": [ { "end": 45, @@ -2919,8 +2919,8 @@ "shortName": "UpdateEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_async.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_async", + "file": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async", "segments": [ { "end": 43, @@ -2963,8 +2963,8 @@ "shortName": "UpdateEvaluationJob" } }, - "file": "datalabeling_generated_datalabeling_v1beta1_data_labeling_service_update_evaluation_job_sync.py", - "regionTag": "datalabeling_generated_datalabeling_v1beta1_DataLabelingService_UpdateEvaluationJob_sync", + "file": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py", + "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync", "segments": [ { "end": 43, From 5c43f566bdd841a01ce6bd4448a478211c5ae9c4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 26 Feb 2022 05:58:56 -0500 Subject: [PATCH 35/63] chore: update copyright year to 2022 (#198) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update copyright year to 2022 PiperOrigin-RevId: 431037888 Source-Link: https://github.com/googleapis/googleapis/commit/b3397f5febbf21dfc69b875ddabaf76bee765058 Source-Link: https://github.com/googleapis/googleapis-gen/commit/510b54e1cdefd53173984df16645081308fe897e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTEwYjU0ZTFjZGVmZDUzMTczOTg0ZGYxNjY0NTA4MTMwOGZlODk3ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- ...ed_data_labeling_service_create_annotation_spec_set_async.py | 2 +- ...ted_data_labeling_service_create_annotation_spec_set_sync.py | 2 +- ...eta1_generated_data_labeling_service_create_dataset_async.py | 2 +- ...beta1_generated_data_labeling_service_create_dataset_sync.py | 2 +- ...nerated_data_labeling_service_create_evaluation_job_async.py | 2 +- ...enerated_data_labeling_service_create_evaluation_job_sync.py | 2 +- ..._generated_data_labeling_service_create_instruction_async.py | 2 +- ...1_generated_data_labeling_service_create_instruction_sync.py | 2 +- ...ated_data_labeling_service_delete_annotated_dataset_async.py | 2 +- ...rated_data_labeling_service_delete_annotated_dataset_sync.py | 2 +- ...ed_data_labeling_service_delete_annotation_spec_set_async.py | 2 +- ...ted_data_labeling_service_delete_annotation_spec_set_sync.py | 2 +- ...eta1_generated_data_labeling_service_delete_dataset_async.py | 2 +- ...beta1_generated_data_labeling_service_delete_dataset_sync.py | 2 +- ...nerated_data_labeling_service_delete_evaluation_job_async.py | 2 +- ...enerated_data_labeling_service_delete_evaluation_job_sync.py | 2 +- ..._generated_data_labeling_service_delete_instruction_async.py | 2 +- ...1_generated_data_labeling_service_delete_instruction_sync.py | 2 +- ...v1beta1_generated_data_labeling_service_export_data_async.py | 2 +- ..._v1beta1_generated_data_labeling_service_export_data_sync.py | 2 +- ...nerated_data_labeling_service_get_annotated_dataset_async.py | 2 +- ...enerated_data_labeling_service_get_annotated_dataset_sync.py | 2 +- ...rated_data_labeling_service_get_annotation_spec_set_async.py | 2 +- ...erated_data_labeling_service_get_annotation_spec_set_sync.py | 2 +- ...beta1_generated_data_labeling_service_get_data_item_async.py | 2 +- ...1beta1_generated_data_labeling_service_get_data_item_sync.py | 2 +- ...v1beta1_generated_data_labeling_service_get_dataset_async.py | 2 +- ..._v1beta1_generated_data_labeling_service_get_dataset_sync.py | 2 +- ...eta1_generated_data_labeling_service_get_evaluation_async.py | 2 +- ..._generated_data_labeling_service_get_evaluation_job_async.py | 2 +- ...1_generated_data_labeling_service_get_evaluation_job_sync.py | 2 +- ...beta1_generated_data_labeling_service_get_evaluation_sync.py | 2 +- ...v1beta1_generated_data_labeling_service_get_example_async.py | 2 +- ..._v1beta1_generated_data_labeling_service_get_example_sync.py | 2 +- ...ta1_generated_data_labeling_service_get_instruction_async.py | 2 +- ...eta1_generated_data_labeling_service_get_instruction_sync.py | 2 +- ...v1beta1_generated_data_labeling_service_import_data_async.py | 2 +- ..._v1beta1_generated_data_labeling_service_import_data_sync.py | 2 +- ...v1beta1_generated_data_labeling_service_label_image_async.py | 2 +- ..._v1beta1_generated_data_labeling_service_label_image_sync.py | 2 +- ..._v1beta1_generated_data_labeling_service_label_text_async.py | 2 +- ...g_v1beta1_generated_data_labeling_service_label_text_sync.py | 2 +- ...v1beta1_generated_data_labeling_service_label_video_async.py | 2 +- ..._v1beta1_generated_data_labeling_service_label_video_sync.py | 2 +- ...rated_data_labeling_service_list_annotated_datasets_async.py | 2 +- ...erated_data_labeling_service_list_annotated_datasets_sync.py | 2 +- ...ted_data_labeling_service_list_annotation_spec_sets_async.py | 2 +- ...ated_data_labeling_service_list_annotation_spec_sets_sync.py | 2 +- ...ta1_generated_data_labeling_service_list_data_items_async.py | 2 +- ...eta1_generated_data_labeling_service_list_data_items_sync.py | 2 +- ...beta1_generated_data_labeling_service_list_datasets_async.py | 2 +- ...1beta1_generated_data_labeling_service_list_datasets_sync.py | 2 +- ...enerated_data_labeling_service_list_evaluation_jobs_async.py | 2 +- ...generated_data_labeling_service_list_evaluation_jobs_sync.py | 2 +- ...beta1_generated_data_labeling_service_list_examples_async.py | 2 +- ...1beta1_generated_data_labeling_service_list_examples_sync.py | 2 +- ...1_generated_data_labeling_service_list_instructions_async.py | 2 +- ...a1_generated_data_labeling_service_list_instructions_sync.py | 2 +- ...enerated_data_labeling_service_pause_evaluation_job_async.py | 2 +- ...generated_data_labeling_service_pause_evaluation_job_sync.py | 2 +- ...nerated_data_labeling_service_resume_evaluation_job_async.py | 2 +- ...enerated_data_labeling_service_resume_evaluation_job_sync.py | 2 +- ..._generated_data_labeling_service_search_evaluations_async.py | 2 +- ...1_generated_data_labeling_service_search_evaluations_sync.py | 2 +- ...ed_data_labeling_service_search_example_comparisons_async.py | 2 +- ...ted_data_labeling_service_search_example_comparisons_sync.py | 2 +- ...nerated_data_labeling_service_update_evaluation_job_async.py | 2 +- ...enerated_data_labeling_service_update_evaluation_job_sync.py | 2 +- 68 files changed, 68 insertions(+), 68 deletions(-) diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py index b9debf2ec307..3834bee06004 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py index 29093a21cc98..708cf4ed7918 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py index 961f50f0838e..2b9ab2e8ff16 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py index 6364ff7e799f..70bca2fea9a1 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py index 345fc82a08c1..58aa1bf1f1d4 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py index 9d2e45fce805..7deb6933a744 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py index 32b5095cc088..69f5651adc67 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py index d5cb222dc285..e6c4d17ef384 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py index e7527a9fa0e4..e9d99384bf05 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py index 3fabd9a35e87..80273ddc5e6d 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py index ba534cc133f7..92568ab8d1cf 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py index 34ef9f88a1f0..338a2d00439c 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py index 174328511c36..dd3f87038798 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py index 752d3fe367f0..3ddb7acf209c 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py index 79ff634968f0..0eea09f13661 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py index c5526f683a75..cbd4ba041f7b 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py index 4d58144c28a7..0fd393928a56 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py index f1587d8f2f22..97423052df8a 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py index 4eb209217751..8eb8356e3f0b 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py index 238cfcdee82f..0ed197129e54 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py index fea687c65ea9..1653430edb5e 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py index 12308cdddb3a..301cd0304543 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py index a66bf6d82b02..b238147ea033 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py index 16dc70cf6c11..bafce393eb63 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py index 773c4b1b11f1..6a703db72d87 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py index 2711429d3a84..520dbe388e78 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py index b9dafe2ca0b7..66ee2acf7c3f 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py index 13e8de473fbc..2b84ba6b3dae 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py index fabe7dc2e9c4..6378703cb746 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py index b41bbda85696..76800e47f76e 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py index a1966c4fec9e..f100dcf57c3c 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py index d9f41a89a3be..023669661f99 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py index 552bd0da88cf..ff4717565882 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py index 38adce985bdc..9d9810340352 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py index 8aafce5c3391..49d87c76ce91 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py index b585a5786d07..933c8b37e752 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py index ce074c058ef1..6e4b00886435 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py index 75d789d8a43d..9c419a972a4f 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py index d7a60c12a68d..261c986f4af0 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py index 2542bdd62b5e..557b4afd330b 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py index 1cfecf5916f3..6d96a0be9a6d 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py index 73d6d9d69921..ecdda3fcd0fb 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py index 47616f640e01..8c11bc51e08a 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py index c5ce3f772edd..1f361b39c67a 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py index 928b10bfbefa..8b440c9bec7d 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py index a86de20c81ab..3ad56220fac9 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py index 43668ec077e0..d97cfacc2ff4 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py index 67dc95e01cec..6de25502547d 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py index 308d1246479b..e9a5e39e2c6d 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py index 01d6533b5271..3d3d662bfc79 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py index ba39ea5af119..eb61d102669f 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py index 73682a8998cc..c3b71ea22253 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py index 3db9f161e44e..1564b80adfeb 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py index b63e57954a35..19baa93150a0 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py index 708398781f1f..e0fc24ec426a 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py index a673ee0d669b..669a0c908ef8 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py index a5b5d8cc9bed..501f370d6a98 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py index c972951231bc..445fe509ad89 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py index 80af2e4a4303..b4a5619e6e87 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py index 3d835e008294..8dd240cd2795 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py index b6d1fdc040a4..8d2830f2ba19 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py index 926282b24daa..17b1f7b1d289 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py index ad1573e21a7a..3534f5a2cdf9 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py index 6f319c7a6a3c..39eaa27973c8 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py index 7f6d3288c909..0299ee2cba1c 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py index 3765f1de9475..ff67edd9d9ba 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py index a8a3dbaae2d6..942d63b76e28 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py index d561ea4afae9..72dd0f06a161 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 9093bf9e9fb6478a7c6c554727b5f7c517132e54 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 4 Mar 2022 13:11:05 -0500 Subject: [PATCH 36/63] chore: Adding support for pytest-xdist and pytest-parallel (#207) Source-Link: https://github.com/googleapis/synthtool/commit/82f5cb283efffe96e1b6cd634738e0e7de2cd90a Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5d8da01438ece4021d135433f2cf3227aa39ef0eaccc941d62aa35e6902832ae Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- datalabeling/snippets/noxfile.py | 78 ++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 34 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 20cdfc620138..85f5836dba3a 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -188,42 +188,52 @@ def _session_tests( # check for presence of tests test_list = glob.glob("*_test.py") + glob.glob("test_*.py") test_list.extend(glob.glob("tests")) + if len(test_list) == 0: print("No tests found, skipping directory.") - else: - if TEST_CONFIG["pip_version_override"]: - pip_version = TEST_CONFIG["pip_version_override"] - session.install(f"pip=={pip_version}") - """Runs py.test for a particular project.""" - if os.path.exists("requirements.txt"): - if os.path.exists("constraints.txt"): - session.install("-r", "requirements.txt", "-c", "constraints.txt") - else: - session.install("-r", "requirements.txt") - - if os.path.exists("requirements-test.txt"): - if os.path.exists("constraints-test.txt"): - session.install( - "-r", "requirements-test.txt", "-c", "constraints-test.txt" - ) - else: - session.install("-r", "requirements-test.txt") - - if INSTALL_LIBRARY_FROM_SOURCE: - session.install("-e", _get_repo_root()) - - if post_install: - post_install(session) - - session.run( - "pytest", - *(PYTEST_COMMON_ARGS + session.posargs), - # Pytest will return 5 when no tests are collected. This can happen - # on travis where slow and flaky tests are excluded. - # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html - success_codes=[0, 5], - env=get_pytest_env_vars(), - ) + return + + if TEST_CONFIG["pip_version_override"]: + pip_version = TEST_CONFIG["pip_version_override"] + session.install(f"pip=={pip_version}") + """Runs py.test for a particular project.""" + concurrent_args = [] + if os.path.exists("requirements.txt"): + if os.path.exists("constraints.txt"): + session.install("-r", "requirements.txt", "-c", "constraints.txt") + else: + session.install("-r", "requirements.txt") + with open("requirements.txt") as rfile: + packages = rfile.read() + + if os.path.exists("requirements-test.txt"): + if os.path.exists("constraints-test.txt"): + session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") + else: + session.install("-r", "requirements-test.txt") + with open("requirements-test.txt") as rtfile: + packages += rtfile.read() + + if INSTALL_LIBRARY_FROM_SOURCE: + session.install("-e", _get_repo_root()) + + if post_install: + post_install(session) + + if "pytest-parallel" in packages: + concurrent_args.extend(["--workers", "auto", "--tests-per-worker", "auto"]) + elif "pytest-xdist" in packages: + concurrent_args.extend(["-n", "auto"]) + + session.run( + "pytest", + *(PYTEST_COMMON_ARGS + session.posargs + concurrent_args), + # Pytest will return 5 when no tests are collected. This can happen + # on travis where slow and flaky tests are excluded. + # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html + success_codes=[0, 5], + env=get_pytest_env_vars(), + ) @nox.session(python=ALL_VERSIONS) From da7ea9d46e957655373ac82ffd86e6e5127e684c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Mar 2022 19:55:42 +0100 Subject: [PATCH 37/63] chore(deps): update dependency google-cloud-datalabeling to v1.5.1 (#210) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index b83e7135408c..d94e268cc362 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.5.0 +google-cloud-datalabeling==1.5.1 From fcbaeb9c022a03389a3aff2bc571b4356004130a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 13 Mar 2022 17:04:00 +0100 Subject: [PATCH 38/63] chore(deps): update dependency pytest to v7.1.0 (#212) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index c531e813e29e..c265ab7091f6 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==1.11.1 -pytest==7.0.1 +pytest==7.1.0 From 15caff7f249c655e0ec7eff4bf937099126ef1d7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 19 Mar 2022 11:34:52 +0100 Subject: [PATCH 39/63] chore(deps): update dependency pytest to v7.1.1 (#213) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index c265ab7091f6..678dbc8efd1b 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==1.11.1 -pytest==7.1.0 +pytest==7.1.1 From a64f2a6454ffde9e428a920911f89f3d8c14ef5f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 28 Mar 2022 23:58:15 +0000 Subject: [PATCH 40/63] chore(python): use black==22.3.0 (#218) Source-Link: https://github.com/googleapis/synthtool/commit/6fab84af09f2cf89a031fd8671d1def6b2931b11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe --- datalabeling/snippets/create_instruction.py | 2 +- datalabeling/snippets/noxfile.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/datalabeling/snippets/create_instruction.py b/datalabeling/snippets/create_instruction.py index f0d23996ffd5..5fb010f00ef9 100644 --- a/datalabeling/snippets/create_instruction.py +++ b/datalabeling/snippets/create_instruction.py @@ -22,7 +22,7 @@ # [START datalabeling_create_instruction_beta] def create_instruction(project_id, data_type, instruction_gcs_uri): - """ Creates a data labeling PDF instruction for the given Google Cloud + """Creates a data labeling PDF instruction for the given Google Cloud project. The PDF file should be uploaded to the project in Google Cloud Storage. """ diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 85f5836dba3a..25f87a215d4c 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -29,7 +29,7 @@ # WARNING - WARNING - WARNING - WARNING - WARNING # WARNING - WARNING - WARNING - WARNING - WARNING -BLACK_VERSION = "black==19.10b0" +BLACK_VERSION = "black==22.3.0" # Copy `noxfile_config.py` to your directory and modify it instead. @@ -253,7 +253,7 @@ def py(session: nox.sessions.Session) -> None: def _get_repo_root() -> Optional[str]: - """ Returns the root folder of the project. """ + """Returns the root folder of the project.""" # Get root of this repository. Assume we don't have directories nested deeper than 10 items. p = Path(os.getcwd()) for i in range(10): From f936c4406940268ecb5da6e1d1767861c1d54352 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 14 Apr 2022 06:34:45 -0400 Subject: [PATCH 41/63] chore: use gapic-generator-python 0.65.1 (#228) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: https://github.com/googleapis/googleapis/commit/2a273915b3f70fe86c9d2a75470a0b83e48d0abf Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab6756a48c89b5bcb9fb73443cb8e55d574f4643 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- ...snippet_metadata_datalabeling_v1beta1.json | 2904 ++++++++++++++++- 1 file changed, 2766 insertions(+), 138 deletions(-) diff --git a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json index e7ab87238106..350f97687b01 100644 --- a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json +++ b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json @@ -1,16 +1,65 @@ { + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.datalabeling.v1beta1", + "version": "v1beta1" + } + ], + "language": "PYTHON", + "name": "google-cloud-datalabeling" + }, "snippets": [ { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_annotation_spec_set", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSet", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateAnnotationSpecSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateAnnotationSpecSetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "annotation_spec_set", + "type": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", + "shortName": "create_annotation_spec_set" }, + "description": "Sample for CreateAnnotationSpecSet", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async", "segments": [ { @@ -43,18 +92,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_annotation_spec_set", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSet", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateAnnotationSpecSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateAnnotationSpecSetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "annotation_spec_set", + "type": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", + "shortName": "create_annotation_spec_set" }, + "description": "Sample for CreateAnnotationSpecSet", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync", "segments": [ { @@ -87,19 +176,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateDatasetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "dataset", + "type": "google.cloud.datalabeling_v1beta1.types.Dataset" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", + "shortName": "create_dataset" }, + "description": "Sample for CreateDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async", "segments": [ { @@ -132,18 +261,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateDatasetRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "dataset", + "type": "google.cloud.datalabeling_v1beta1.types.Dataset" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", + "shortName": "create_dataset" }, + "description": "Sample for CreateDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync", "segments": [ { @@ -176,19 +345,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateEvaluationJobRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "job", + "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", + "shortName": "create_evaluation_job" }, + "description": "Sample for CreateEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async", "segments": [ { @@ -221,18 +430,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateEvaluationJobRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "job", + "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", + "shortName": "create_evaluation_job" }, + "description": "Sample for CreateEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync", "segments": [ { @@ -265,19 +514,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_instruction", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstruction", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateInstruction" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateInstructionRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "instruction", + "type": "google.cloud.datalabeling_v1beta1.types.Instruction" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_instruction" }, + "description": "Sample for CreateInstruction", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async", "segments": [ { @@ -310,18 +599,58 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_instruction", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstruction", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "CreateInstruction" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.CreateInstructionRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "instruction", + "type": "google.cloud.datalabeling_v1beta1.types.Instruction" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "create_instruction" }, + "description": "Sample for CreateInstruction", "file": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync", "segments": [ { @@ -354,19 +683,50 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_annotated_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteAnnotatedDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotatedDatasetRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_annotated_dataset" }, + "description": "Sample for DeleteAnnotatedDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async", "segments": [ { @@ -397,18 +757,49 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_annotated_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteAnnotatedDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotatedDatasetRequest" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_annotated_dataset" }, + "description": "Sample for DeleteAnnotatedDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync", "segments": [ { @@ -439,19 +830,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_annotation_spec_set", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSet", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteAnnotationSpecSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotationSpecSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_annotation_spec_set" }, + "description": "Sample for DeleteAnnotationSpecSet", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async", "segments": [ { @@ -482,18 +908,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_annotation_spec_set", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSet", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteAnnotationSpecSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotationSpecSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_annotation_spec_set" }, + "description": "Sample for DeleteAnnotationSpecSet", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync", "segments": [ { @@ -524,19 +985,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteDatasetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_dataset" }, + "description": "Sample for DeleteDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async", "segments": [ { @@ -567,18 +1063,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteDatasetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_dataset" }, + "description": "Sample for DeleteDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync", "segments": [ { @@ -609,19 +1140,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_evaluation_job" }, + "description": "Sample for DeleteEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async", "segments": [ { @@ -652,18 +1218,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_evaluation_job" }, + "description": "Sample for DeleteEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync", "segments": [ { @@ -694,19 +1295,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_instruction", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstruction", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteInstruction" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteInstructionRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_instruction" }, + "description": "Sample for DeleteInstruction", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async", "segments": [ { @@ -737,18 +1373,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_instruction", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstruction", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "DeleteInstruction" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.DeleteInstructionRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "delete_instruction" }, + "description": "Sample for DeleteInstruction", "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync", "segments": [ { @@ -779,19 +1450,67 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.export_data", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ExportData", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ExportData" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ExportDataRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "annotated_dataset", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "output_config", + "type": "google.cloud.datalabeling_v1beta1.types.OutputConfig" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "export_data" }, + "description": "Sample for ExportData", "file": "datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_async", "segments": [ { @@ -824,18 +1543,66 @@ "start": 47, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.export_data", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ExportData", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ExportData" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ExportDataRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "annotated_dataset", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "output_config", + "type": "google.cloud.datalabeling_v1beta1.types.OutputConfig" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "export_data" }, + "description": "Sample for ExportData", "file": "datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync", "segments": [ { @@ -868,19 +1635,55 @@ "start": 47, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_annotated_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetAnnotatedDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotatedDatasetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotatedDataset", + "shortName": "get_annotated_dataset" }, + "description": "Sample for GetAnnotatedDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async", "segments": [ { @@ -913,18 +1716,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_annotated_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetAnnotatedDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotatedDatasetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotatedDataset", + "shortName": "get_annotated_dataset" }, + "description": "Sample for GetAnnotatedDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync", "segments": [ { @@ -957,19 +1796,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_annotation_spec_set", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSet", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetAnnotationSpecSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotationSpecSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", + "shortName": "get_annotation_spec_set" }, + "description": "Sample for GetAnnotationSpecSet", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async", "segments": [ { @@ -1002,18 +1877,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_annotation_spec_set", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSet", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetAnnotationSpecSet" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotationSpecSetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", + "shortName": "get_annotation_spec_set" }, + "description": "Sample for GetAnnotationSpecSet", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync", "segments": [ { @@ -1046,19 +1957,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_data_item", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItem", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetDataItem" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetDataItemRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.DataItem", + "shortName": "get_data_item" }, + "description": "Sample for GetDataItem", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async", "segments": [ { @@ -1091,18 +2038,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_data_item", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItem", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetDataItem" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetDataItemRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.DataItem", + "shortName": "get_data_item" }, + "description": "Sample for GetDataItem", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync", "segments": [ { @@ -1135,19 +2118,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetDatasetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", + "shortName": "get_dataset" }, + "description": "Sample for GetDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async", "segments": [ { @@ -1180,18 +2199,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_dataset", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataset", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetDataset" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetDatasetRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", + "shortName": "get_dataset" }, + "description": "Sample for GetDataset", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync", "segments": [ { @@ -1224,19 +2279,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", + "shortName": "get_evaluation_job" }, + "description": "Sample for GetEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async", "segments": [ { @@ -1269,18 +2360,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", + "shortName": "get_evaluation_job" }, + "description": "Sample for GetEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync", "segments": [ { @@ -1313,19 +2440,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_evaluation", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluation", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetEvaluation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Evaluation", + "shortName": "get_evaluation" }, + "description": "Sample for GetEvaluation", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async", "segments": [ { @@ -1358,18 +2521,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_evaluation", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluation", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetEvaluation" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Evaluation", + "shortName": "get_evaluation" }, + "description": "Sample for GetEvaluation", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync", "segments": [ { @@ -1402,19 +2601,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_example", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetExample", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetExample" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetExampleRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Example", + "shortName": "get_example" }, + "description": "Sample for GetExample", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_async", "segments": [ { @@ -1447,18 +2686,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_example", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetExample", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetExample" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetExampleRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Example", + "shortName": "get_example" }, + "description": "Sample for GetExample", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync", "segments": [ { @@ -1491,19 +2770,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_instruction", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstruction", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetInstruction" - } - }, - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py", + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetInstructionRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Instruction", + "shortName": "get_instruction" + }, + "description": "Sample for GetInstruction", + "file": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async", "segments": [ { @@ -1536,18 +2851,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_instruction", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstruction", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "GetInstruction" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.GetInstructionRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.Instruction", + "shortName": "get_instruction" }, + "description": "Sample for GetInstruction", "file": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync", "segments": [ { @@ -1580,19 +2931,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.import_data", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ImportData", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ImportData" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ImportDataRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "input_config", + "type": "google.cloud.datalabeling_v1beta1.types.InputConfig" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "import_data" }, + "description": "Sample for ImportData", "file": "datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_async", "segments": [ { @@ -1625,18 +3016,58 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.import_data", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ImportData", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ImportData" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ImportDataRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "input_config", + "type": "google.cloud.datalabeling_v1beta1.types.InputConfig" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "import_data" }, + "description": "Sample for ImportData", "file": "datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync", "segments": [ { @@ -1669,19 +3100,63 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.label_image", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImage", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "LabelImage" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "basic_config", + "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" + }, + { + "name": "feature", + "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest.Feature" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "label_image" }, + "description": "Sample for LabelImage", "file": "datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async", "segments": [ { @@ -1714,18 +3189,62 @@ "start": 56, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.label_image", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImage", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "LabelImage" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "basic_config", + "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" + }, + { + "name": "feature", + "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest.Feature" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "label_image" }, + "description": "Sample for LabelImage", "file": "datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync", "segments": [ { @@ -1758,19 +3277,63 @@ "start": 56, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.label_text", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelText", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "LabelText" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "basic_config", + "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" + }, + { + "name": "feature", + "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest.Feature" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "label_text" }, + "description": "Sample for LabelText", "file": "datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_async", "segments": [ { @@ -1803,18 +3366,62 @@ "start": 56, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.label_text", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelText", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "LabelText" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "basic_config", + "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" + }, + { + "name": "feature", + "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest.Feature" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "label_text" }, + "description": "Sample for LabelText", "file": "datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync", "segments": [ { @@ -1847,19 +3454,63 @@ "start": 56, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.label_video", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideo", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "LabelVideo" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "basic_config", + "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" + }, + { + "name": "feature", + "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest.Feature" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "label_video" }, + "description": "Sample for LabelVideo", "file": "datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async", "segments": [ { @@ -1892,18 +3543,62 @@ "start": 56, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.label_video", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideo", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "LabelVideo" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "basic_config", + "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" + }, + { + "name": "feature", + "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest.Feature" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "label_video" }, + "description": "Sample for LabelVideo", "file": "datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync", "segments": [ { @@ -1936,19 +3631,59 @@ "start": 56, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_annotated_datasets", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasets", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListAnnotatedDatasets" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotatedDatasetsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotatedDatasetsAsyncPager", + "shortName": "list_annotated_datasets" }, + "description": "Sample for ListAnnotatedDatasets", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async", "segments": [ { @@ -1981,18 +3716,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_annotated_datasets", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasets", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListAnnotatedDatasets" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotatedDatasetsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotatedDatasetsPager", + "shortName": "list_annotated_datasets" }, + "description": "Sample for ListAnnotatedDatasets", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync", "segments": [ { @@ -2025,19 +3800,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_annotation_spec_sets", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSets", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListAnnotationSpecSets" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotationSpecSetsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotationSpecSetsAsyncPager", + "shortName": "list_annotation_spec_sets" }, + "description": "Sample for ListAnnotationSpecSets", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async", "segments": [ { @@ -2070,18 +3885,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_annotation_spec_sets", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSets", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListAnnotationSpecSets" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotationSpecSetsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotationSpecSetsPager", + "shortName": "list_annotation_spec_sets" }, + "description": "Sample for ListAnnotationSpecSets", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync", "segments": [ { @@ -2114,19 +3969,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_data_items", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItems", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListDataItems" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListDataItemsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDataItemsAsyncPager", + "shortName": "list_data_items" }, + "description": "Sample for ListDataItems", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async", "segments": [ { @@ -2159,18 +4054,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_data_items", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItems", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListDataItems" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListDataItemsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDataItemsPager", + "shortName": "list_data_items" }, + "description": "Sample for ListDataItems", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync", "segments": [ { @@ -2203,19 +4138,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_datasets", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasets", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListDatasets" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListDatasetsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDatasetsAsyncPager", + "shortName": "list_datasets" }, + "description": "Sample for ListDatasets", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async", "segments": [ { @@ -2248,18 +4223,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_datasets", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasets", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListDatasets" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListDatasetsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDatasetsPager", + "shortName": "list_datasets" }, + "description": "Sample for ListDatasets", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync", "segments": [ { @@ -2292,19 +4307,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_evaluation_jobs", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobs", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListEvaluationJobs" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListEvaluationJobsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListEvaluationJobsAsyncPager", + "shortName": "list_evaluation_jobs" }, + "description": "Sample for ListEvaluationJobs", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async", "segments": [ { @@ -2337,18 +4392,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_evaluation_jobs", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobs", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListEvaluationJobs" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListEvaluationJobsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListEvaluationJobsPager", + "shortName": "list_evaluation_jobs" }, + "description": "Sample for ListEvaluationJobs", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync", "segments": [ { @@ -2381,19 +4476,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_examples", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamples", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListExamples" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListExamplesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListExamplesAsyncPager", + "shortName": "list_examples" }, + "description": "Sample for ListExamples", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async", "segments": [ { @@ -2426,18 +4561,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_examples", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamples", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListExamples" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListExamplesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListExamplesPager", + "shortName": "list_examples" }, + "description": "Sample for ListExamples", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync", "segments": [ { @@ -2470,19 +4645,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_instructions", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructions", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListInstructions" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListInstructionsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListInstructionsAsyncPager", + "shortName": "list_instructions" }, + "description": "Sample for ListInstructions", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async", "segments": [ { @@ -2515,18 +4730,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_instructions", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructions", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ListInstructions" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ListInstructionsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListInstructionsPager", + "shortName": "list_instructions" }, + "description": "Sample for ListInstructions", "file": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync", "segments": [ { @@ -2559,19 +4814,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.pause_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "PauseEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.PauseEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "pause_evaluation_job" }, + "description": "Sample for PauseEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async", "segments": [ { @@ -2602,18 +4892,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.pause_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "PauseEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.PauseEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "pause_evaluation_job" }, + "description": "Sample for PauseEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync", "segments": [ { @@ -2644,19 +4969,54 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.resume_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ResumeEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ResumeEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "resume_evaluation_job" }, + "description": "Sample for ResumeEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async", "segments": [ { @@ -2687,18 +5047,53 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.resume_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "ResumeEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.ResumeEvaluationJobRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "shortName": "resume_evaluation_job" }, + "description": "Sample for ResumeEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync", "segments": [ { @@ -2729,19 +5124,59 @@ "end": 43, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.search_evaluations", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "SearchEvaluations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.SearchEvaluationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchEvaluationsAsyncPager", + "shortName": "search_evaluations" }, + "description": "Sample for SearchEvaluations", "file": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async", "segments": [ { @@ -2774,18 +5209,58 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.search_evaluations", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "SearchEvaluations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.SearchEvaluationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "filter", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchEvaluationsPager", + "shortName": "search_evaluations" }, + "description": "Sample for SearchEvaluations", "file": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync", "segments": [ { @@ -2818,19 +5293,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.search_example_comparisons", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisons", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "SearchExampleComparisons" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.SearchExampleComparisonsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchExampleComparisonsAsyncPager", + "shortName": "search_example_comparisons" }, + "description": "Sample for SearchExampleComparisons", "file": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async", "segments": [ { @@ -2863,18 +5374,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.search_example_comparisons", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisons", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "SearchExampleComparisons" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.SearchExampleComparisonsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchExampleComparisonsPager", + "shortName": "search_example_comparisons" }, + "description": "Sample for SearchExampleComparisons", "file": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync", "segments": [ { @@ -2907,19 +5454,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", + "shortName": "DataLabelingServiceAsyncClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.update_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "UpdateEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.UpdateEvaluationJobRequest" + }, + { + "name": "evaluation_job", + "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", + "shortName": "update_evaluation_job" }, + "description": "Sample for UpdateEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async", "segments": [ { @@ -2952,18 +5539,58 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", + "shortName": "DataLabelingServiceClient" + }, + "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.update_evaluation_job", "method": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJob", "service": { + "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", "shortName": "DataLabelingService" }, "shortName": "UpdateEvaluationJob" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.datalabeling_v1beta1.types.UpdateEvaluationJobRequest" + }, + { + "name": "evaluation_job", + "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", + "shortName": "update_evaluation_job" }, + "description": "Sample for UpdateEvaluationJob", "file": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync", "segments": [ { @@ -2996,7 +5623,8 @@ "start": 41, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py" } ] } From 44376bcc88f2b374d3af8f48cacf6be6df5015ea Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 20:20:31 -0400 Subject: [PATCH 42/63] chore(python): add nox session to sort python imports (#229) Source-Link: https://github.com/googleapis/synthtool/commit/1b71c10e20de7ed3f97f692f99a0e3399b67049f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot --- .../create_annotation_spec_set_test.py | 1 - .../snippets/create_instruction_test.py | 1 - datalabeling/snippets/import_data_test.py | 1 - datalabeling/snippets/label_image_test.py | 1 - datalabeling/snippets/manage_dataset_test.py | 4 +--- datalabeling/snippets/noxfile.py | 23 ++++++++++++++++++- datalabeling/snippets/testing_lib.py | 4 +--- 7 files changed, 24 insertions(+), 11 deletions(-) diff --git a/datalabeling/snippets/create_annotation_spec_set_test.py b/datalabeling/snippets/create_annotation_spec_set_test.py index 952f192c8e79..35390b4f124e 100644 --- a/datalabeling/snippets/create_annotation_spec_set_test.py +++ b/datalabeling/snippets/create_annotation_spec_set_test.py @@ -23,7 +23,6 @@ import create_annotation_spec_set import testing_lib - PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") diff --git a/datalabeling/snippets/create_instruction_test.py b/datalabeling/snippets/create_instruction_test.py index 8e521c245c24..037798cfa4ce 100644 --- a/datalabeling/snippets/create_instruction_test.py +++ b/datalabeling/snippets/create_instruction_test.py @@ -24,7 +24,6 @@ import create_instruction import testing_lib - PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") INSTRUCTION_GCS_URI = "gs://cloud-samples-data/datalabeling" "/instruction/test.pdf" diff --git a/datalabeling/snippets/import_data_test.py b/datalabeling/snippets/import_data_test.py index fbccf8d9d87f..692cd70fb6b1 100644 --- a/datalabeling/snippets/import_data_test.py +++ b/datalabeling/snippets/import_data_test.py @@ -24,7 +24,6 @@ import import_data import testing_lib - PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") INPUT_GCS_URI = "gs://cloud-samples-data/datalabeling/image/image_dataset.csv" diff --git a/datalabeling/snippets/label_image_test.py b/datalabeling/snippets/label_image_test.py index 930ce7857d25..1873ff96258c 100644 --- a/datalabeling/snippets/label_image_test.py +++ b/datalabeling/snippets/label_image_test.py @@ -24,7 +24,6 @@ import label_image import testing_lib - PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") INPUT_GCS_URI = "gs://cloud-samples-data/datalabeling/image/image_dataset.csv" INSTRUCTION_GCS_URI = "gs://cloud-samples-data/datalabeling" "/instruction/test.pdf" diff --git a/datalabeling/snippets/manage_dataset_test.py b/datalabeling/snippets/manage_dataset_test.py index 80fae2f2d2ff..95b7272c1a03 100644 --- a/datalabeling/snippets/manage_dataset_test.py +++ b/datalabeling/snippets/manage_dataset_test.py @@ -17,14 +17,12 @@ import os import backoff -from google.api_core.exceptions import RetryError -from google.api_core.exceptions import ServerError +from google.api_core.exceptions import RetryError, ServerError import pytest import manage_dataset import testing_lib - PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 25f87a215d4c..3b3ffa5d2b0f 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -22,7 +22,6 @@ import nox - # WARNING - WARNING - WARNING - WARNING - WARNING # WARNING - WARNING - WARNING - WARNING - WARNING # DO NOT EDIT THIS FILE EVER! @@ -30,6 +29,7 @@ # WARNING - WARNING - WARNING - WARNING - WARNING BLACK_VERSION = "black==22.3.0" +ISORT_VERSION = "isort==5.10.1" # Copy `noxfile_config.py` to your directory and modify it instead. @@ -168,12 +168,33 @@ def lint(session: nox.sessions.Session) -> None: @nox.session def blacken(session: nox.sessions.Session) -> None: + """Run black. Format code to uniform standard.""" session.install(BLACK_VERSION) python_files = [path for path in os.listdir(".") if path.endswith(".py")] session.run("black", *python_files) +# +# format = isort + black +# + + +@nox.session +def format(session: nox.sessions.Session) -> None: + """ + Run isort to sort imports. Then run black + to format code to uniform standard. + """ + session.install(BLACK_VERSION, ISORT_VERSION) + python_files = [path for path in os.listdir(".") if path.endswith(".py")] + + # Use the --fss option to sort imports using strict alphabetical order. + # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections + session.run("isort", "--fss", *python_files) + session.run("black", *python_files) + + # # Sample Tests # diff --git a/datalabeling/snippets/testing_lib.py b/datalabeling/snippets/testing_lib.py index 7c39d82066f2..dadb32bc7a18 100644 --- a/datalabeling/snippets/testing_lib.py +++ b/datalabeling/snippets/testing_lib.py @@ -17,8 +17,7 @@ import backoff from google.api_core.client_options import ClientOptions -from google.api_core.exceptions import DeadlineExceeded -from google.api_core.exceptions import FailedPrecondition +from google.api_core.exceptions import DeadlineExceeded, FailedPrecondition from google.cloud import datalabeling_v1beta1 as datalabeling import create_annotation_spec_set as annotation_spec_set_sample @@ -26,7 +25,6 @@ import import_data as import_sample import manage_dataset as dataset_sample - RETRY_DEADLINE = 60 From 0adf632d1d1fc1a656ab0270c0441c99283f096a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Apr 2022 16:58:14 +0200 Subject: [PATCH 43/63] chore(deps): update dependency pytest to v7.1.2 (#232) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 678dbc8efd1b..e29e011b390c 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==1.11.1 -pytest==7.1.1 +pytest==7.1.2 From ea1ce9beb8e1db964ad40dc6ceaea1c3894ab7c5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Apr 2022 20:07:08 +0200 Subject: [PATCH 44/63] chore(deps): update dependency backoff to v2 (#233) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index e29e011b390c..81c3a60c109a 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -backoff==1.11.1 +backoff==2.0.0 pytest==7.1.2 From f4d289ddb1ab1a85f9e5a340ed90dccdfe5b3608 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 18:10:08 +0200 Subject: [PATCH 45/63] chore(deps): update dependency backoff to v2.0.1 (#235) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 81c3a60c109a..4d92cc9aa9dd 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -backoff==2.0.0 +backoff==2.0.1 pytest==7.1.2 From ba5bfe30b434458e767249b80d0c650baee7b6e5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sun, 10 Jul 2022 07:37:36 -0400 Subject: [PATCH 46/63] fix: require python 3.7+ (#251) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(python): drop python 3.6 Source-Link: https://github.com/googleapis/synthtool/commit/4f89b13af10d086458f9b379e56a614f9d6dab7b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c * add api_description to .repo-metadata.json * require python 3.7+ in setup.py * remove python 3.6 sample configs * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- datalabeling/snippets/noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index 3b3ffa5d2b0f..e9eb1cbfa5db 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -88,7 +88,7 @@ def get_pytest_env_vars() -> Dict[str, str]: # DO NOT EDIT - automatically generated. # All versions used to test samples. -ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] +ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"] # Any default versions that should be ignored. IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] From 70d69065fb0448fb907670f37e24889163069615 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Jul 2022 16:21:50 +0200 Subject: [PATCH 47/63] chore(deps): update all dependencies (#245) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- datalabeling/snippets/requirements-test.txt | 2 +- datalabeling/snippets/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 4d92cc9aa9dd..ce161d15f1a4 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -backoff==2.0.1 +backoff==2.1.2 pytest==7.1.2 diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index d94e268cc362..12239cbcf4d0 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.5.1 +google-cloud-datalabeling==1.5.2 From a5894211b19bc0d17450ba1bfb7f1aefc5dea223 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 14:57:28 +0200 Subject: [PATCH 48/63] chore(deps): update all dependencies (#257) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update all dependencies * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * revert Co-authored-by: Owl Bot Co-authored-by: Anthonios Partheniou --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index 12239cbcf4d0..b5c03b2a0480 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.5.2 +google-cloud-datalabeling==1.6.0 From 0ab4e21fc238bc34fc58ce3165fa399cd8425537 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Aug 2022 16:53:19 +0200 Subject: [PATCH 49/63] chore(deps): update dependency google-cloud-datalabeling to v1.6.1 (#263) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index b5c03b2a0480..153bdcc624dc 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.6.0 +google-cloud-datalabeling==1.6.1 From 4a7715e71344a7383f0b75b2c2173fe0526e056e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Sep 2022 17:43:38 +0200 Subject: [PATCH 50/63] chore(deps): update dependency pytest to v7.1.3 (#272) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index ce161d15f1a4..6759e75e03a0 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==2.1.2 -pytest==7.1.2 +pytest==7.1.3 From 8d10ac40d333c52fb99209eededec6af00877f64 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 14:18:38 +0000 Subject: [PATCH 51/63] chore: Bump gapic-generator-python version to 1.3.0 (#273) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: https://github.com/googleapis/googleapis/commit/332ecf599f8e747d8d1213b77ae7db26eff12814 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4313d682880fd9d7247291164d4e9d3d5bd9f177 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9 --- ...ervice_create_annotation_spec_set_async.py | 7 + ...service_create_annotation_spec_set_sync.py | 7 + ...a_labeling_service_create_dataset_async.py | 7 + ...ta_labeling_service_create_dataset_sync.py | 7 + ...ing_service_create_evaluation_job_async.py | 7 + ...ling_service_create_evaluation_job_sync.py | 7 + ...beling_service_create_instruction_async.py | 7 + ...abeling_service_create_instruction_sync.py | 7 + ..._service_delete_annotated_dataset_async.py | 7 + ...g_service_delete_annotated_dataset_sync.py | 7 + ...ervice_delete_annotation_spec_set_async.py | 7 + ...service_delete_annotation_spec_set_sync.py | 7 + ...a_labeling_service_delete_dataset_async.py | 7 + ...ta_labeling_service_delete_dataset_sync.py | 7 + ...ing_service_delete_evaluation_job_async.py | 7 + ...ling_service_delete_evaluation_job_sync.py | 7 + ...beling_service_delete_instruction_async.py | 7 + ...abeling_service_delete_instruction_sync.py | 7 + ...data_labeling_service_export_data_async.py | 7 + ..._data_labeling_service_export_data_sync.py | 7 + ...ing_service_get_annotated_dataset_async.py | 7 + ...ling_service_get_annotated_dataset_sync.py | 7 + ...g_service_get_annotation_spec_set_async.py | 7 + ...ng_service_get_annotation_spec_set_sync.py | 7 + ...ta_labeling_service_get_data_item_async.py | 7 + ...ata_labeling_service_get_data_item_sync.py | 7 + ...data_labeling_service_get_dataset_async.py | 7 + ..._data_labeling_service_get_dataset_sync.py | 7 + ...a_labeling_service_get_evaluation_async.py | 7 + ...beling_service_get_evaluation_job_async.py | 7 + ...abeling_service_get_evaluation_job_sync.py | 7 + ...ta_labeling_service_get_evaluation_sync.py | 7 + ...data_labeling_service_get_example_async.py | 7 + ..._data_labeling_service_get_example_sync.py | 7 + ..._labeling_service_get_instruction_async.py | 7 + ...a_labeling_service_get_instruction_sync.py | 7 + ...data_labeling_service_import_data_async.py | 7 + ..._data_labeling_service_import_data_sync.py | 7 + ...data_labeling_service_label_image_async.py | 7 + ..._data_labeling_service_label_image_sync.py | 7 + ..._data_labeling_service_label_text_async.py | 7 + ...d_data_labeling_service_label_text_sync.py | 7 + ...data_labeling_service_label_video_async.py | 7 + ..._data_labeling_service_label_video_sync.py | 7 + ...g_service_list_annotated_datasets_async.py | 7 + ...ng_service_list_annotated_datasets_sync.py | 7 + ...service_list_annotation_spec_sets_async.py | 7 + ..._service_list_annotation_spec_sets_sync.py | 7 + ..._labeling_service_list_data_items_async.py | 7 + ...a_labeling_service_list_data_items_sync.py | 7 + ...ta_labeling_service_list_datasets_async.py | 7 + ...ata_labeling_service_list_datasets_sync.py | 7 + ...ling_service_list_evaluation_jobs_async.py | 7 + ...eling_service_list_evaluation_jobs_sync.py | 7 + ...ta_labeling_service_list_examples_async.py | 7 + ...ata_labeling_service_list_examples_sync.py | 7 + ...abeling_service_list_instructions_async.py | 7 + ...labeling_service_list_instructions_sync.py | 7 + ...ling_service_pause_evaluation_job_async.py | 7 + ...eling_service_pause_evaluation_job_sync.py | 7 + ...ing_service_resume_evaluation_job_async.py | 7 + ...ling_service_resume_evaluation_job_sync.py | 7 + ...beling_service_search_evaluations_async.py | 7 + ...abeling_service_search_evaluations_sync.py | 7 + ...ervice_search_example_comparisons_async.py | 7 + ...service_search_example_comparisons_sync.py | 7 + ...ing_service_update_evaluation_job_async.py | 7 + ...ling_service_update_evaluation_job_sync.py | 7 + ...snippet_metadata_datalabeling_v1beta1.json | 1304 ++++++++--------- 69 files changed, 1128 insertions(+), 652 deletions(-) diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py index 3834bee06004..ee3606d3dbdf 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py index 708cf4ed7918..361aa71783c0 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py index 2b9ab2e8ff16..ce79c3158c63 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py index 70bca2fea9a1..b889b63a3bc3 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py index 58aa1bf1f1d4..438a8c9d1114 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py index 7deb6933a744..d38d605fe482 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py index 69f5651adc67..3f3ffbaf8859 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py index e6c4d17ef384..d76663c5aa98 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py index e9d99384bf05..1891d81706ab 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py index 80273ddc5e6d..f8e23a27da2a 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py index 92568ab8d1cf..48b87d409176 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py index 338a2d00439c..a20bf81c9eae 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py index dd3f87038798..8bb8bb688e33 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py index 3ddb7acf209c..a4cb96e4bacd 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py index 0eea09f13661..888e6edc258b 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py index cbd4ba041f7b..0996af47d19f 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py index 0fd393928a56..514a3130d195 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py index 97423052df8a..eb03af879958 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py index 8eb8356e3f0b..03f33d6252b5 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ExportData_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py index 0ed197129e54..29d118c86ce4 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py index 1653430edb5e..567df81fe888 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py index 301cd0304543..1058f4f90b24 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py index b238147ea033..2fb861fe6cce 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py index bafce393eb63..3899cf111795 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py index 6a703db72d87..7bf5b0745255 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py index 520dbe388e78..7bd9a270af8d 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py index 66ee2acf7c3f..53145e35bca7 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py index 2b84ba6b3dae..738a9e96fa6e 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py index 6378703cb746..3a6b88c42350 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py index 76800e47f76e..ed4a09d4daaf 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py index f100dcf57c3c..391b38e3d19a 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py index 023669661f99..db34a3214e13 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py index ff4717565882..0810fff0212f 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetExample_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py index 9d9810340352..b2e385e2e099 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py index 49d87c76ce91..e82c942772c8 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py index 933c8b37e752..fc08f17910f0 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py index 6e4b00886435..07d2b9de2866 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ImportData_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py index 9c419a972a4f..bbd7652461fe 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py index 261c986f4af0..fe5c2d77f1c5 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py index 557b4afd330b..64073d9e90a1 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py index 6d96a0be9a6d..61524f6b58e3 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_LabelText_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py index ecdda3fcd0fb..01e39b5a8c04 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py index 8c11bc51e08a..cb20f523016b 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py index 1f361b39c67a..16dde02876e6 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py index 8b440c9bec7d..4b61d04353b9 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py index 3ad56220fac9..00e4c2d72b68 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py index d97cfacc2ff4..27ddebe54922 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py index 6de25502547d..e3eedd53593c 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py index e9a5e39e2c6d..673ed856d3bb 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py index 3d3d662bfc79..f5bd2d8d5cb3 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py index eb61d102669f..ec086e96a3d1 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py index c3b71ea22253..5ad1e729edcb 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py index 1564b80adfeb..bc9e2c464404 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py index 19baa93150a0..8ac11f371957 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py index e0fc24ec426a..dac504a6bed1 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py index 669a0c908ef8..33aad02aac94 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py index 501f370d6a98..203d962719b7 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py index 445fe509ad89..419c2a70b820 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py index b4a5619e6e87..d96c6f49d6e3 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py index 8dd240cd2795..9fdff49bddb2 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py index 8d2830f2ba19..4a8c48837215 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py index 17b1f7b1d289..81765fd9ab17 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py index 3534f5a2cdf9..6f561242c51a 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py index 39eaa27973c8..35aaba2d84d6 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py index 0299ee2cba1c..1c3ec4c3c829 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py index ff67edd9d9ba..da9f0d78f718 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py index 942d63b76e28..3b6d4d504aed 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py index 72dd0f06a161..c3d5a43ee65d 100644 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py +++ b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py @@ -24,6 +24,13 @@ # [START datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import datalabeling_v1beta1 diff --git a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json index 350f97687b01..ec0ef820818c 100644 --- a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json +++ b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json @@ -63,33 +63,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -147,33 +147,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -232,33 +232,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -316,33 +316,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -401,33 +401,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -485,33 +485,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -570,33 +570,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -654,33 +654,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -730,31 +730,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -803,31 +803,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -881,31 +881,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -958,31 +958,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1036,31 +1036,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1113,31 +1113,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1191,31 +1191,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1268,31 +1268,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1346,31 +1346,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1423,31 +1423,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -1514,33 +1514,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_async", "segments": [ { - "end": 49, + "end": 56, "start": 27, "type": "FULL" }, { - "end": 49, + "end": 56, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 46, - "start": 40, + "end": 53, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 50, - "start": 47, + "end": 57, + "start": 54, "type": "RESPONSE_HANDLING" } ], @@ -1606,33 +1606,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync", "segments": [ { - "end": 49, + "end": 56, "start": 27, "type": "FULL" }, { - "end": 49, + "end": 56, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 46, - "start": 40, + "end": 53, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 50, - "start": 47, + "end": 57, + "start": 54, "type": "RESPONSE_HANDLING" } ], @@ -1687,33 +1687,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1767,33 +1767,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1848,33 +1848,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1928,33 +1928,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2009,33 +2009,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2089,33 +2089,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2170,33 +2170,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2250,33 +2250,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2331,33 +2331,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2411,33 +2411,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2492,33 +2492,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2572,33 +2572,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2657,33 +2657,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2741,33 +2741,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2822,33 +2822,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2902,33 +2902,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -2987,33 +2987,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -3071,33 +3071,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -3160,33 +3160,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 48, - "start": 34, + "end": 55, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 55, - "start": 49, + "end": 62, + "start": 56, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 56, + "end": 66, + "start": 63, "type": "RESPONSE_HANDLING" } ], @@ -3248,33 +3248,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 48, - "start": 34, + "end": 55, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 55, - "start": 49, + "end": 62, + "start": 56, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 56, + "end": 66, + "start": 63, "type": "RESPONSE_HANDLING" } ], @@ -3337,33 +3337,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_async", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 48, - "start": 34, + "end": 55, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 55, - "start": 49, + "end": 62, + "start": 56, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 56, + "end": 66, + "start": 63, "type": "RESPONSE_HANDLING" } ], @@ -3425,33 +3425,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 48, - "start": 34, + "end": 55, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 55, - "start": 49, + "end": 62, + "start": 56, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 56, + "end": 66, + "start": 63, "type": "RESPONSE_HANDLING" } ], @@ -3514,33 +3514,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 48, - "start": 34, + "end": 55, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 55, - "start": 49, + "end": 62, + "start": 56, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 56, + "end": 66, + "start": 63, "type": "RESPONSE_HANDLING" } ], @@ -3602,33 +3602,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync", "segments": [ { - "end": 58, + "end": 65, "start": 27, "type": "FULL" }, { - "end": 58, + "end": 65, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 48, - "start": 34, + "end": 55, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 55, - "start": 49, + "end": 62, + "start": 56, "type": "REQUEST_EXECUTION" }, { - "end": 59, - "start": 56, + "end": 66, + "start": 63, "type": "RESPONSE_HANDLING" } ], @@ -3687,33 +3687,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3771,33 +3771,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3856,33 +3856,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -3940,33 +3940,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4025,33 +4025,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4109,33 +4109,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4194,33 +4194,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4278,33 +4278,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4363,33 +4363,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4447,33 +4447,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4532,33 +4532,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4616,33 +4616,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4701,33 +4701,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4785,33 +4785,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -4865,31 +4865,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -4942,31 +4942,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -5020,31 +5020,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -5097,31 +5097,31 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync", "segments": [ { - "end": 42, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 42, + "end": 49, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 39, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 43, + "end": 50, "type": "RESPONSE_HANDLING" } ], @@ -5180,33 +5180,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -5264,33 +5264,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -5345,33 +5345,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -5425,33 +5425,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -5510,33 +5510,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], @@ -5594,33 +5594,33 @@ "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync", "segments": [ { - "end": 43, + "end": 50, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 50, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 40, - "start": 38, + "end": 47, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 44, - "start": 41, + "end": 51, + "start": 48, "type": "RESPONSE_HANDLING" } ], From 304ffc20cc3ff4566a994ffb0bfb6d27c57f05d0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 16:16:13 +0000 Subject: [PATCH 52/63] chore: detect samples tests in nested directories (#276) Source-Link: https://github.com/googleapis/synthtool/commit/50db768f450a50d7c1fd62513c113c9bb96fd434 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978 --- datalabeling/snippets/noxfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index e9eb1cbfa5db..c1715136d645 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -207,8 +207,10 @@ def _session_tests( session: nox.sessions.Session, post_install: Callable = None ) -> None: # check for presence of tests - test_list = glob.glob("*_test.py") + glob.glob("test_*.py") - test_list.extend(glob.glob("tests")) + test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob( + "**/test_*.py", recursive=True + ) + test_list.extend(glob.glob("**/tests", recursive=True)) if len(test_list) == 0: print("No tests found, skipping directory.") From 714ce015792befdb9366c9cc3450ec7c2af46210 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 4 Oct 2022 15:43:38 +0200 Subject: [PATCH 53/63] chore(deps): update dependency google-cloud-datalabeling to v1.6.2 (#280) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index 153bdcc624dc..5087fcff98e5 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.6.1 +google-cloud-datalabeling==1.6.2 From b57e5189069237c3caee56d217511f022cc916ee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 15:39:32 +0200 Subject: [PATCH 54/63] chore(deps): update dependency backoff to v2.2.1 (#281) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 6759e75e03a0..3bc76cee52db 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ -backoff==2.1.2 +backoff==2.2.1 pytest==7.1.3 From cbc4eb49dbdc9c3c0d78a1e90437a961cb71fc73 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Oct 2022 15:24:11 +0200 Subject: [PATCH 55/63] chore(deps): update dependency google-cloud-datalabeling to v1.6.3 (#284) --- datalabeling/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements.txt b/datalabeling/snippets/requirements.txt index 5087fcff98e5..a764353bb42c 100644 --- a/datalabeling/snippets/requirements.txt +++ b/datalabeling/snippets/requirements.txt @@ -1 +1 @@ -google-cloud-datalabeling==1.6.2 +google-cloud-datalabeling==1.6.3 From ab0e3ba9e2c97dd34accf3116bc07c412a8bf539 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 Oct 2022 12:59:38 +0200 Subject: [PATCH 56/63] chore(deps): update dependency pytest to v7.2.0 (#285) --- datalabeling/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datalabeling/snippets/requirements-test.txt b/datalabeling/snippets/requirements-test.txt index 3bc76cee52db..b90fc387d015 100644 --- a/datalabeling/snippets/requirements-test.txt +++ b/datalabeling/snippets/requirements-test.txt @@ -1,2 +1,2 @@ backoff==2.2.1 -pytest==7.1.3 +pytest==7.2.0 From ee4282fe6cce306c1d60c1fad0ce0d682cd86fa8 Mon Sep 17 00:00:00 2001 From: ivanmkc Date: Thu, 3 Nov 2022 11:10:44 -0400 Subject: [PATCH 57/63] Updated copyright years to 2022 --- appengine/standard/ndb/cache/README.md | 16 ----- appengine/standard/ndb/cache/snippets.py | 45 -------------- appengine/standard/ndb/cache/snippets_test.py | 60 ------------------- .../snippets/create_annotation_spec_set.py | 2 +- .../create_annotation_spec_set_test.py | 2 +- datalabeling/snippets/create_instruction.py | 2 +- .../snippets/create_instruction_test.py | 2 +- datalabeling/snippets/export_data.py | 2 +- datalabeling/snippets/import_data.py | 2 +- datalabeling/snippets/import_data_test.py | 2 +- datalabeling/snippets/label_image.py | 2 +- datalabeling/snippets/label_image_test.py | 2 +- datalabeling/snippets/label_text.py | 2 +- datalabeling/snippets/label_text_test.py | 2 +- datalabeling/snippets/label_video.py | 2 +- datalabeling/snippets/label_video_test.py | 2 +- datalabeling/snippets/manage_dataset.py | 2 +- datalabeling/snippets/manage_dataset_test.py | 2 +- datalabeling/snippets/noxfile.py | 2 +- datalabeling/snippets/noxfile_config.py | 2 +- datalabeling/snippets/testing_lib.py | 2 +- 21 files changed, 18 insertions(+), 139 deletions(-) delete mode 100644 appengine/standard/ndb/cache/README.md delete mode 100644 appengine/standard/ndb/cache/snippets.py delete mode 100644 appengine/standard/ndb/cache/snippets_test.py diff --git a/appengine/standard/ndb/cache/README.md b/appengine/standard/ndb/cache/README.md deleted file mode 100644 index a702c6478195..000000000000 --- a/appengine/standard/ndb/cache/README.md +++ /dev/null @@ -1,16 +0,0 @@ -## App Engine Datastore NDB Cache Samples - -[![Open in Cloud Shell][shell_img]][shell_link] - -[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png -[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=appengine/standard/ndb/cache/README.md - -This contains snippets used in the NDB cache documentation, demonstrating -various operations on ndb caches. - - -These samples are used on the following documentation page: - -> https://cloud.google.com/appengine/docs/python/ndb/cache - - diff --git a/appengine/standard/ndb/cache/snippets.py b/appengine/standard/ndb/cache/snippets.py deleted file mode 100644 index 391ad3f89a04..000000000000 --- a/appengine/standard/ndb/cache/snippets.py +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 2016 Google Inc. All rights reserved. -# -# 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. - -from google.appengine.ext import ndb - - -def set_in_process_cache_policy(func): - context = ndb.get_context() - context.set_cache_policy(func) - - -def set_memcache_policy(func): - context = ndb.get_context() - context.set_memcache_policy(func) - - -def bypass_in_process_cache_for_account_entities(): - context = ndb.get_context() - context.set_cache_policy(lambda key: key.kind() != 'Account') - - -def set_datastore_policy(func): - context = ndb.get_context() - context.set_datastore_policy(func) - - -def set_memcache_timeout_policy(func): - context = ndb.get_context() - context.set_memcache_timeout_policy(func) - - -def clear_cache(): - context = ndb.get_context() - context.clear_cache() diff --git a/appengine/standard/ndb/cache/snippets_test.py b/appengine/standard/ndb/cache/snippets_test.py deleted file mode 100644 index 257525895ee0..000000000000 --- a/appengine/standard/ndb/cache/snippets_test.py +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2016 Google Inc. All rights reserved. -# -# 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. - -from google.appengine.ext import ndb - -import snippets - - -def test_set_in_process_cache_policy(testbed): - def policy(key): - return 1 == 1 - - snippets.set_in_process_cache_policy(policy) - assert policy == ndb.get_context().get_cache_policy() - - -def test_set_memcache_policy(testbed): - def policy(key): - return 1 == 2 - - snippets.set_memcache_policy(policy) - assert policy == ndb.get_context().get_memcache_policy() - - -def test_bypass_in_process_cache_for_account_entities(testbed): - context = ndb.get_context() - assert context.get_cache_policy() == context.default_cache_policy - snippets.bypass_in_process_cache_for_account_entities() - assert context.get_cache_policy() != context.default_cache_policy - - -def test_set_datastore_policy(testbed): - def policy(key): - return key is None - - snippets.set_datastore_policy(policy) - assert ndb.get_context().get_datastore_policy() == policy - - -def test_set_memcache_timeout_policy(testbed): - def policy(key): - return 1 - - snippets.set_memcache_timeout_policy(policy) - assert ndb.get_context().get_memcache_timeout_policy() == policy - - -def test_clear_cache(testbed): - snippets.clear_cache() diff --git a/datalabeling/snippets/create_annotation_spec_set.py b/datalabeling/snippets/create_annotation_spec_set.py index 62983e56eeea..240b50fd415b 100644 --- a/datalabeling/snippets/create_annotation_spec_set.py +++ b/datalabeling/snippets/create_annotation_spec_set.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/create_annotation_spec_set_test.py b/datalabeling/snippets/create_annotation_spec_set_test.py index 35390b4f124e..2653169009e4 100644 --- a/datalabeling/snippets/create_annotation_spec_set_test.py +++ b/datalabeling/snippets/create_annotation_spec_set_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google, Inc +# Copyright 2022 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/create_instruction.py b/datalabeling/snippets/create_instruction.py index 5fb010f00ef9..c6041b3618d3 100644 --- a/datalabeling/snippets/create_instruction.py +++ b/datalabeling/snippets/create_instruction.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/create_instruction_test.py b/datalabeling/snippets/create_instruction_test.py index 037798cfa4ce..0ee09b34fdd3 100644 --- a/datalabeling/snippets/create_instruction_test.py +++ b/datalabeling/snippets/create_instruction_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google, Inc +# Copyright 2022 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/export_data.py b/datalabeling/snippets/export_data.py index 8018676e9aed..f2e2dc0f6df5 100644 --- a/datalabeling/snippets/export_data.py +++ b/datalabeling/snippets/export_data.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/import_data.py b/datalabeling/snippets/import_data.py index 1324214b9d11..fa354ee04eae 100644 --- a/datalabeling/snippets/import_data.py +++ b/datalabeling/snippets/import_data.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/import_data_test.py b/datalabeling/snippets/import_data_test.py index 692cd70fb6b1..8d8365159603 100644 --- a/datalabeling/snippets/import_data_test.py +++ b/datalabeling/snippets/import_data_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google, Inc +# Copyright 2022 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/label_image.py b/datalabeling/snippets/label_image.py index d61fbb4c9e16..d566fcd9dd84 100644 --- a/datalabeling/snippets/label_image.py +++ b/datalabeling/snippets/label_image.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/label_image_test.py b/datalabeling/snippets/label_image_test.py index 1873ff96258c..636b65c2b838 100644 --- a/datalabeling/snippets/label_image_test.py +++ b/datalabeling/snippets/label_image_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google, Inc +# Copyright 2022 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/label_text.py b/datalabeling/snippets/label_text.py index c85ad5fa6b5f..780bc4374292 100644 --- a/datalabeling/snippets/label_text.py +++ b/datalabeling/snippets/label_text.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/label_text_test.py b/datalabeling/snippets/label_text_test.py index c34b028507e7..b91f086e1801 100644 --- a/datalabeling/snippets/label_text_test.py +++ b/datalabeling/snippets/label_text_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google, Inc +# Copyright 2022 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/label_video.py b/datalabeling/snippets/label_video.py index 09c46bb8fbc9..7831e17cb1f1 100644 --- a/datalabeling/snippets/label_video.py +++ b/datalabeling/snippets/label_video.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/label_video_test.py b/datalabeling/snippets/label_video_test.py index 02fd531c3d7d..eefcce68144d 100644 --- a/datalabeling/snippets/label_video_test.py +++ b/datalabeling/snippets/label_video_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google, Inc +# Copyright 2022 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/manage_dataset.py b/datalabeling/snippets/manage_dataset.py index 2bc37304a4e6..168cb66230fd 100644 --- a/datalabeling/snippets/manage_dataset.py +++ b/datalabeling/snippets/manage_dataset.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/manage_dataset_test.py b/datalabeling/snippets/manage_dataset_test.py index 95b7272c1a03..bed3df4caf3c 100644 --- a/datalabeling/snippets/manage_dataset_test.py +++ b/datalabeling/snippets/manage_dataset_test.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -# Copyright 2019 Google, Inc +# Copyright 2022 Google, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py index c1715136d645..1062eecd5679 100644 --- a/datalabeling/snippets/noxfile.py +++ b/datalabeling/snippets/noxfile.py @@ -1,4 +1,4 @@ -# Copyright 2019 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/noxfile_config.py b/datalabeling/snippets/noxfile_config.py index 58569885fabf..5c33914cc7a5 100644 --- a/datalabeling/snippets/noxfile_config.py +++ b/datalabeling/snippets/noxfile_config.py @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/datalabeling/snippets/testing_lib.py b/datalabeling/snippets/testing_lib.py index dadb32bc7a18..ee68accfa078 100644 --- a/datalabeling/snippets/testing_lib.py +++ b/datalabeling/snippets/testing_lib.py @@ -1,4 +1,4 @@ -# Copyright 2020 Google LLC +# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From b686d2f7facd1b7c77e8001192b001521a5f2572 Mon Sep 17 00:00:00 2001 From: ivanmkc Date: Fri, 4 Nov 2022 14:27:01 -0400 Subject: [PATCH 58/63] Removed generated samples --- ...ervice_create_annotation_spec_set_async.py | 52 - ...service_create_annotation_spec_set_sync.py | 52 - ...a_labeling_service_create_dataset_async.py | 52 - ...ta_labeling_service_create_dataset_sync.py | 52 - ...ing_service_create_evaluation_job_async.py | 52 - ...ling_service_create_evaluation_job_sync.py | 52 - ...beling_service_create_instruction_async.py | 56 - ...abeling_service_create_instruction_sync.py | 56 - ..._service_delete_annotated_dataset_async.py | 50 - ...g_service_delete_annotated_dataset_sync.py | 50 - ...ervice_delete_annotation_spec_set_async.py | 50 - ...service_delete_annotation_spec_set_sync.py | 50 - ...a_labeling_service_delete_dataset_async.py | 50 - ...ta_labeling_service_delete_dataset_sync.py | 50 - ...ing_service_delete_evaluation_job_async.py | 50 - ...ling_service_delete_evaluation_job_sync.py | 50 - ...beling_service_delete_instruction_async.py | 50 - ...abeling_service_delete_instruction_sync.py | 50 - ...data_labeling_service_export_data_async.py | 57 - ..._data_labeling_service_export_data_sync.py | 57 - ...ing_service_get_annotated_dataset_async.py | 52 - ...ling_service_get_annotated_dataset_sync.py | 52 - ...g_service_get_annotation_spec_set_async.py | 52 - ...ng_service_get_annotation_spec_set_sync.py | 52 - ...ta_labeling_service_get_data_item_async.py | 52 - ...ata_labeling_service_get_data_item_sync.py | 52 - ...data_labeling_service_get_dataset_async.py | 52 - ..._data_labeling_service_get_dataset_sync.py | 52 - ...a_labeling_service_get_evaluation_async.py | 52 - ...beling_service_get_evaluation_job_async.py | 52 - ...abeling_service_get_evaluation_job_sync.py | 52 - ...ta_labeling_service_get_evaluation_sync.py | 52 - ...data_labeling_service_get_example_async.py | 52 - ..._data_labeling_service_get_example_sync.py | 52 - ..._labeling_service_get_instruction_async.py | 52 - ...a_labeling_service_get_instruction_sync.py | 52 - ...data_labeling_service_import_data_async.py | 56 - ..._data_labeling_service_import_data_sync.py | 56 - ...data_labeling_service_label_image_async.py | 66 - ..._data_labeling_service_label_image_sync.py | 66 - ..._data_labeling_service_label_text_async.py | 66 - ...d_data_labeling_service_label_text_sync.py | 66 - ...data_labeling_service_label_video_async.py | 66 - ..._data_labeling_service_label_video_sync.py | 66 - ...g_service_list_annotated_datasets_async.py | 53 - ...ng_service_list_annotated_datasets_sync.py | 53 - ...service_list_annotation_spec_sets_async.py | 53 - ..._service_list_annotation_spec_sets_sync.py | 53 - ..._labeling_service_list_data_items_async.py | 53 - ...a_labeling_service_list_data_items_sync.py | 53 - ...ta_labeling_service_list_datasets_async.py | 53 - ...ata_labeling_service_list_datasets_sync.py | 53 - ...ling_service_list_evaluation_jobs_async.py | 53 - ...eling_service_list_evaluation_jobs_sync.py | 53 - ...ta_labeling_service_list_examples_async.py | 53 - ...ata_labeling_service_list_examples_sync.py | 53 - ...abeling_service_list_instructions_async.py | 53 - ...labeling_service_list_instructions_sync.py | 53 - ...ling_service_pause_evaluation_job_async.py | 50 - ...eling_service_pause_evaluation_job_sync.py | 50 - ...ing_service_resume_evaluation_job_async.py | 50 - ...ling_service_resume_evaluation_job_sync.py | 50 - ...beling_service_search_evaluations_async.py | 53 - ...abeling_service_search_evaluations_sync.py | 53 - ...ervice_search_example_comparisons_async.py | 53 - ...service_search_example_comparisons_sync.py | 53 - ...ing_service_update_evaluation_job_async.py | 51 - ...ling_service_update_evaluation_job_sync.py | 51 - ...snippet_metadata_datalabeling_v1beta1.json | 5630 ----------------- 69 files changed, 9264 deletions(-) delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py delete mode 100644 datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py delete mode 100644 datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py deleted file mode 100644 index ee3606d3dbdf..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py deleted file mode 100644 index 361aa71783c0..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py deleted file mode 100644 index ce79c3158c63..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateDataset_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py deleted file mode 100644 index b889b63a3bc3..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateDataset_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py deleted file mode 100644 index 438a8c9d1114..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py deleted file mode 100644 index d38d605fe482..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py deleted file mode 100644 index 3f3ffbaf8859..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateInstruction_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py deleted file mode 100644 index d76663c5aa98..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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_v1beta1_generated_DataLabelingService_CreateInstruction_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -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_v1beta1_generated_DataLabelingService_CreateInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py deleted file mode 100644 index 1891d81706ab..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteAnnotatedDataset -# 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_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_delete_annotated_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteAnnotatedDatasetRequest( - name="name_value", - ) - - # Make the request - await client.delete_annotated_dataset(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py deleted file mode 100644 index f8e23a27da2a..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteAnnotatedDataset -# 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_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_delete_annotated_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteAnnotatedDatasetRequest( - name="name_value", - ) - - # Make the request - client.delete_annotated_dataset(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py deleted file mode 100644 index 48b87d409176..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteAnnotationSpecSet -# 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_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_delete_annotation_spec_set(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteAnnotationSpecSetRequest( - name="name_value", - ) - - # Make the request - await client.delete_annotation_spec_set(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py deleted file mode 100644 index a20bf81c9eae..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteAnnotationSpecSet -# 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_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_delete_annotation_spec_set(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteAnnotationSpecSetRequest( - name="name_value", - ) - - # Make the request - client.delete_annotation_spec_set(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py deleted file mode 100644 index 8bb8bb688e33..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteDataset -# 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_v1beta1_generated_DataLabelingService_DeleteDataset_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_delete_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteDatasetRequest( - name="name_value", - ) - - # Make the request - await client.delete_dataset(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py deleted file mode 100644 index a4cb96e4bacd..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteDataset -# 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_v1beta1_generated_DataLabelingService_DeleteDataset_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_delete_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteDatasetRequest( - name="name_value", - ) - - # Make the request - client.delete_dataset(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py deleted file mode 100644 index 888e6edc258b..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteEvaluationJob -# 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_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_delete_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteEvaluationJobRequest( - name="name_value", - ) - - # Make the request - await client.delete_evaluation_job(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py deleted file mode 100644 index 0996af47d19f..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteEvaluationJob -# 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_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_delete_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteEvaluationJobRequest( - name="name_value", - ) - - # Make the request - client.delete_evaluation_job(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py deleted file mode 100644 index 514a3130d195..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteInstruction -# 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_v1beta1_generated_DataLabelingService_DeleteInstruction_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_delete_instruction(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteInstructionRequest( - name="name_value", - ) - - # Make the request - await client.delete_instruction(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py deleted file mode 100644 index eb03af879958..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 DeleteInstruction -# 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_v1beta1_generated_DataLabelingService_DeleteInstruction_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_delete_instruction(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.DeleteInstructionRequest( - name="name_value", - ) - - # Make the request - client.delete_instruction(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py deleted file mode 100644 index 03f33d6252b5..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ExportData -# 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_v1beta1_generated_DataLabelingService_ExportData_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_export_data(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ExportDataRequest( - name="name_value", - annotated_dataset="annotated_dataset_value", - ) - - # Make the request - operation = client.export_data(request=request) - - print("Waiting for operation to complete...") - - response = await operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ExportData_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py deleted file mode 100644 index 29d118c86ce4..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ExportData -# 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_v1beta1_generated_DataLabelingService_ExportData_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_export_data(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ExportDataRequest( - name="name_value", - annotated_dataset="annotated_dataset_value", - ) - - # Make the request - operation = client.export_data(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py deleted file mode 100644 index 567df81fe888..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetAnnotatedDataset -# 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_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_annotated_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetAnnotatedDatasetRequest( - name="name_value", - ) - - # Make the request - response = await client.get_annotated_dataset(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py deleted file mode 100644 index 1058f4f90b24..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetAnnotatedDataset -# 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_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_annotated_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetAnnotatedDatasetRequest( - name="name_value", - ) - - # Make the request - response = client.get_annotated_dataset(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py deleted file mode 100644 index 2fb861fe6cce..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetAnnotationSpecSet -# 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_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_annotation_spec_set(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetAnnotationSpecSetRequest( - name="name_value", - ) - - # Make the request - response = await client.get_annotation_spec_set(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py deleted file mode 100644 index 3899cf111795..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetAnnotationSpecSet -# 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_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_annotation_spec_set(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetAnnotationSpecSetRequest( - name="name_value", - ) - - # Make the request - response = client.get_annotation_spec_set(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py deleted file mode 100644 index 7bf5b0745255..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetDataItem -# 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_v1beta1_generated_DataLabelingService_GetDataItem_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_data_item(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetDataItemRequest( - name="name_value", - ) - - # Make the request - response = await client.get_data_item(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py deleted file mode 100644 index 7bd9a270af8d..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetDataItem -# 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_v1beta1_generated_DataLabelingService_GetDataItem_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_data_item(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetDataItemRequest( - name="name_value", - ) - - # Make the request - response = client.get_data_item(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py deleted file mode 100644 index 53145e35bca7..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetDataset -# 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_v1beta1_generated_DataLabelingService_GetDataset_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetDatasetRequest( - name="name_value", - ) - - # Make the request - response = await client.get_dataset(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py deleted file mode 100644 index 738a9e96fa6e..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetDataset -# 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_v1beta1_generated_DataLabelingService_GetDataset_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_dataset(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetDatasetRequest( - name="name_value", - ) - - # Make the request - response = client.get_dataset(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py deleted file mode 100644 index 3a6b88c42350..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetEvaluation -# 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_v1beta1_generated_DataLabelingService_GetEvaluation_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_evaluation(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetEvaluationRequest( - name="name_value", - ) - - # Make the request - response = await client.get_evaluation(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py deleted file mode 100644 index ed4a09d4daaf..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetEvaluationJob -# 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_v1beta1_generated_DataLabelingService_GetEvaluationJob_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetEvaluationJobRequest( - name="name_value", - ) - - # Make the request - response = await client.get_evaluation_job(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py deleted file mode 100644 index 391b38e3d19a..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetEvaluationJob -# 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_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetEvaluationJobRequest( - name="name_value", - ) - - # Make the request - response = client.get_evaluation_job(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py deleted file mode 100644 index db34a3214e13..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetEvaluation -# 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_v1beta1_generated_DataLabelingService_GetEvaluation_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_evaluation(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetEvaluationRequest( - name="name_value", - ) - - # Make the request - response = client.get_evaluation(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py deleted file mode 100644 index 0810fff0212f..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetExample -# 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_v1beta1_generated_DataLabelingService_GetExample_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_example(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetExampleRequest( - name="name_value", - ) - - # Make the request - response = await client.get_example(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetExample_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py deleted file mode 100644 index b2e385e2e099..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetExample -# 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_v1beta1_generated_DataLabelingService_GetExample_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_example(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetExampleRequest( - name="name_value", - ) - - # Make the request - response = client.get_example(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py deleted file mode 100644 index e82c942772c8..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetInstruction -# 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_v1beta1_generated_DataLabelingService_GetInstruction_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_get_instruction(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetInstructionRequest( - name="name_value", - ) - - # Make the request - response = await client.get_instruction(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py deleted file mode 100644 index fc08f17910f0..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 GetInstruction -# 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_v1beta1_generated_DataLabelingService_GetInstruction_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_get_instruction(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.GetInstructionRequest( - name="name_value", - ) - - # Make the request - response = client.get_instruction(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py deleted file mode 100644 index 07d2b9de2866..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ImportData -# 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_v1beta1_generated_DataLabelingService_ImportData_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_import_data(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ImportDataRequest( - name="name_value", - ) - - # Make the request - operation = client.import_data(request=request) - - print("Waiting for operation to complete...") - - response = await operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ImportData_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py deleted file mode 100644 index bbd7652461fe..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py +++ /dev/null @@ -1,56 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ImportData -# 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_v1beta1_generated_DataLabelingService_ImportData_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_import_data(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ImportDataRequest( - name="name_value", - ) - - # Make the request - operation = client.import_data(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py deleted file mode 100644 index fe5c2d77f1c5..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 LabelImage -# 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_v1beta1_generated_DataLabelingService_LabelImage_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_label_image(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - image_classification_config = datalabeling_v1beta1.ImageClassificationConfig() - image_classification_config.annotation_spec_set = "annotation_spec_set_value" - - basic_config = datalabeling_v1beta1.HumanAnnotationConfig() - basic_config.instruction = "instruction_value" - basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" - - request = datalabeling_v1beta1.LabelImageRequest( - image_classification_config=image_classification_config, - parent="parent_value", - basic_config=basic_config, - feature="SEGMENTATION", - ) - - # Make the request - operation = client.label_image(request=request) - - print("Waiting for operation to complete...") - - response = await operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py deleted file mode 100644 index 64073d9e90a1..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 LabelImage -# 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_v1beta1_generated_DataLabelingService_LabelImage_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_label_image(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - image_classification_config = datalabeling_v1beta1.ImageClassificationConfig() - image_classification_config.annotation_spec_set = "annotation_spec_set_value" - - basic_config = datalabeling_v1beta1.HumanAnnotationConfig() - basic_config.instruction = "instruction_value" - basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" - - request = datalabeling_v1beta1.LabelImageRequest( - image_classification_config=image_classification_config, - parent="parent_value", - basic_config=basic_config, - feature="SEGMENTATION", - ) - - # Make the request - operation = client.label_image(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py deleted file mode 100644 index 61524f6b58e3..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 LabelText -# 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_v1beta1_generated_DataLabelingService_LabelText_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_label_text(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - text_classification_config = datalabeling_v1beta1.TextClassificationConfig() - text_classification_config.annotation_spec_set = "annotation_spec_set_value" - - basic_config = datalabeling_v1beta1.HumanAnnotationConfig() - basic_config.instruction = "instruction_value" - basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" - - request = datalabeling_v1beta1.LabelTextRequest( - text_classification_config=text_classification_config, - parent="parent_value", - basic_config=basic_config, - feature="TEXT_ENTITY_EXTRACTION", - ) - - # Make the request - operation = client.label_text(request=request) - - print("Waiting for operation to complete...") - - response = await operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_LabelText_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py deleted file mode 100644 index 01e39b5a8c04..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 LabelText -# 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_v1beta1_generated_DataLabelingService_LabelText_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_label_text(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - text_classification_config = datalabeling_v1beta1.TextClassificationConfig() - text_classification_config.annotation_spec_set = "annotation_spec_set_value" - - basic_config = datalabeling_v1beta1.HumanAnnotationConfig() - basic_config.instruction = "instruction_value" - basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" - - request = datalabeling_v1beta1.LabelTextRequest( - text_classification_config=text_classification_config, - parent="parent_value", - basic_config=basic_config, - feature="TEXT_ENTITY_EXTRACTION", - ) - - # Make the request - operation = client.label_text(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py deleted file mode 100644 index cb20f523016b..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 LabelVideo -# 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_v1beta1_generated_DataLabelingService_LabelVideo_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_label_video(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - video_classification_config = datalabeling_v1beta1.VideoClassificationConfig() - video_classification_config.annotation_spec_set_configs.annotation_spec_set = "annotation_spec_set_value" - - basic_config = datalabeling_v1beta1.HumanAnnotationConfig() - basic_config.instruction = "instruction_value" - basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" - - request = datalabeling_v1beta1.LabelVideoRequest( - video_classification_config=video_classification_config, - parent="parent_value", - basic_config=basic_config, - feature="EVENT", - ) - - # Make the request - operation = client.label_video(request=request) - - print("Waiting for operation to complete...") - - response = await operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py deleted file mode 100644 index 16dde02876e6..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 LabelVideo -# 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_v1beta1_generated_DataLabelingService_LabelVideo_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_label_video(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - video_classification_config = datalabeling_v1beta1.VideoClassificationConfig() - video_classification_config.annotation_spec_set_configs.annotation_spec_set = "annotation_spec_set_value" - - basic_config = datalabeling_v1beta1.HumanAnnotationConfig() - basic_config.instruction = "instruction_value" - basic_config.annotated_dataset_display_name = "annotated_dataset_display_name_value" - - request = datalabeling_v1beta1.LabelVideoRequest( - video_classification_config=video_classification_config, - parent="parent_value", - basic_config=basic_config, - feature="EVENT", - ) - - # Make the request - operation = client.label_video(request=request) - - print("Waiting for operation to complete...") - - response = operation.result() - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py deleted file mode 100644 index 4b61d04353b9..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListAnnotatedDatasets -# 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_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_list_annotated_datasets(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListAnnotatedDatasetsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_annotated_datasets(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py deleted file mode 100644 index 00e4c2d72b68..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListAnnotatedDatasets -# 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_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_list_annotated_datasets(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListAnnotatedDatasetsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_annotated_datasets(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py deleted file mode 100644 index 27ddebe54922..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListAnnotationSpecSets -# 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_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_list_annotation_spec_sets(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListAnnotationSpecSetsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_annotation_spec_sets(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py deleted file mode 100644 index e3eedd53593c..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListAnnotationSpecSets -# 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_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_list_annotation_spec_sets(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListAnnotationSpecSetsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_annotation_spec_sets(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py deleted file mode 100644 index 673ed856d3bb..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListDataItems -# 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_v1beta1_generated_DataLabelingService_ListDataItems_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_list_data_items(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListDataItemsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_data_items(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py deleted file mode 100644 index f5bd2d8d5cb3..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListDataItems -# 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_v1beta1_generated_DataLabelingService_ListDataItems_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_list_data_items(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListDataItemsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_data_items(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py deleted file mode 100644 index ec086e96a3d1..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListDatasets -# 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_v1beta1_generated_DataLabelingService_ListDatasets_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_list_datasets(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListDatasetsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_datasets(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py deleted file mode 100644 index 5ad1e729edcb..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListDatasets -# 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_v1beta1_generated_DataLabelingService_ListDatasets_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_list_datasets(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListDatasetsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_datasets(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py deleted file mode 100644 index bc9e2c464404..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListEvaluationJobs -# 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_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_list_evaluation_jobs(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListEvaluationJobsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_evaluation_jobs(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py deleted file mode 100644 index 8ac11f371957..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListEvaluationJobs -# 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_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_list_evaluation_jobs(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListEvaluationJobsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_evaluation_jobs(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py deleted file mode 100644 index dac504a6bed1..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListExamples -# 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_v1beta1_generated_DataLabelingService_ListExamples_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_list_examples(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListExamplesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_examples(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py deleted file mode 100644 index 33aad02aac94..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListExamples -# 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_v1beta1_generated_DataLabelingService_ListExamples_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_list_examples(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListExamplesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_examples(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py deleted file mode 100644 index 203d962719b7..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListInstructions -# 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_v1beta1_generated_DataLabelingService_ListInstructions_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_list_instructions(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListInstructionsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_instructions(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py deleted file mode 100644 index 419c2a70b820..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ListInstructions -# 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_v1beta1_generated_DataLabelingService_ListInstructions_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_list_instructions(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ListInstructionsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_instructions(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py deleted file mode 100644 index d96c6f49d6e3..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 PauseEvaluationJob -# 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_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_pause_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.PauseEvaluationJobRequest( - name="name_value", - ) - - # Make the request - await client.pause_evaluation_job(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py deleted file mode 100644 index 9fdff49bddb2..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 PauseEvaluationJob -# 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_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_pause_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.PauseEvaluationJobRequest( - name="name_value", - ) - - # Make the request - client.pause_evaluation_job(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py deleted file mode 100644 index 4a8c48837215..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ResumeEvaluationJob -# 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_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_resume_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ResumeEvaluationJobRequest( - name="name_value", - ) - - # Make the request - await client.resume_evaluation_job(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py deleted file mode 100644 index 81765fd9ab17..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 ResumeEvaluationJob -# 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_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_resume_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.ResumeEvaluationJobRequest( - name="name_value", - ) - - # Make the request - client.resume_evaluation_job(request=request) - - -# [END datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py deleted file mode 100644 index 6f561242c51a..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 SearchEvaluations -# 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_v1beta1_generated_DataLabelingService_SearchEvaluations_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_search_evaluations(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.SearchEvaluationsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.search_evaluations(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py deleted file mode 100644 index 35aaba2d84d6..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 SearchEvaluations -# 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_v1beta1_generated_DataLabelingService_SearchEvaluations_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_search_evaluations(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.SearchEvaluationsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.search_evaluations(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py deleted file mode 100644 index 1c3ec4c3c829..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 SearchExampleComparisons -# 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_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_search_example_comparisons(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.SearchExampleComparisonsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.search_example_comparisons(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py deleted file mode 100644 index da9f0d78f718..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py +++ /dev/null @@ -1,53 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 SearchExampleComparisons -# 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_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_search_example_comparisons(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.SearchExampleComparisonsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.search_example_comparisons(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py deleted file mode 100644 index 3b6d4d504aed..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 UpdateEvaluationJob -# 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_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -async def sample_update_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceAsyncClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.UpdateEvaluationJobRequest( - ) - - # Make the request - response = await client.update_evaluation_job(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async] diff --git a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py b/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py deleted file mode 100644 index c3d5a43ee65d..000000000000 --- a/datalabeling/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2022 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 UpdateEvaluationJob -# 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_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync] -# This snippet has been automatically generated and should be regarded as a -# code template only. -# It will require modifications to work: -# - It may require correct/in-range values for request initialization. -# - It may require specifying regional endpoints when creating the service -# client as shown in: -# https://googleapis.dev/python/google-api-core/latest/client_options.html -from google.cloud import datalabeling_v1beta1 - - -def sample_update_evaluation_job(): - # Create a client - client = datalabeling_v1beta1.DataLabelingServiceClient() - - # Initialize request argument(s) - request = datalabeling_v1beta1.UpdateEvaluationJobRequest( - ) - - # Make the request - response = client.update_evaluation_job(request=request) - - # Handle the response - print(response) - -# [END datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync] diff --git a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json b/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json deleted file mode 100644 index ec0ef820818c..000000000000 --- a/datalabeling/generated_samples/snippet_metadata_datalabeling_v1beta1.json +++ /dev/null @@ -1,5630 +0,0 @@ -{ - "clientLibrary": { - "apis": [ - { - "id": "google.cloud.datalabeling.v1beta1", - "version": "v1beta1" - } - ], - "language": "PYTHON", - "name": "google-cloud-datalabeling" - }, - "snippets": [ - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_annotation_spec_set", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSet", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateAnnotationSpecSet" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateAnnotationSpecSetRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "annotation_spec_set", - "type": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", - "shortName": "create_annotation_spec_set" - }, - "description": "Sample for CreateAnnotationSpecSet", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_annotation_spec_set", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSet", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateAnnotationSpecSet" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateAnnotationSpecSetRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "annotation_spec_set", - "type": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", - "shortName": "create_annotation_spec_set" - }, - "description": "Sample for CreateAnnotationSpecSet", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_annotation_spec_set_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateDatasetRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "dataset", - "type": "google.cloud.datalabeling_v1beta1.types.Dataset" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", - "shortName": "create_dataset" - }, - "description": "Sample for CreateDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateDatasetRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "dataset", - "type": "google.cloud.datalabeling_v1beta1.types.Dataset" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", - "shortName": "create_dataset" - }, - "description": "Sample for CreateDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_dataset_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateEvaluationJobRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "job", - "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", - "shortName": "create_evaluation_job" - }, - "description": "Sample for CreateEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateEvaluationJobRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "job", - "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", - "shortName": "create_evaluation_job" - }, - "description": "Sample for CreateEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_evaluation_job_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.create_instruction", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstruction", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateInstruction" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateInstructionRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "instruction", - "type": "google.cloud.datalabeling_v1beta1.types.Instruction" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "create_instruction" - }, - "description": "Sample for CreateInstruction", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.create_instruction", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstruction", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "CreateInstruction" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.CreateInstructionRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "instruction", - "type": "google.cloud.datalabeling_v1beta1.types.Instruction" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "create_instruction" - }, - "description": "Sample for CreateInstruction", - "file": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_create_instruction_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_annotated_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteAnnotatedDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotatedDatasetRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_annotated_dataset" - }, - "description": "Sample for DeleteAnnotatedDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_annotated_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteAnnotatedDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotatedDatasetRequest" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_annotated_dataset" - }, - "description": "Sample for DeleteAnnotatedDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotated_dataset_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_annotation_spec_set", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSet", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteAnnotationSpecSet" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotationSpecSetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_annotation_spec_set" - }, - "description": "Sample for DeleteAnnotationSpecSet", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_annotation_spec_set", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSet", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteAnnotationSpecSet" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteAnnotationSpecSetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_annotation_spec_set" - }, - "description": "Sample for DeleteAnnotationSpecSet", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_annotation_spec_set_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteDatasetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_dataset" - }, - "description": "Sample for DeleteDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteDatasetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_dataset" - }, - "description": "Sample for DeleteDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_dataset_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_evaluation_job" - }, - "description": "Sample for DeleteEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_evaluation_job" - }, - "description": "Sample for DeleteEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_evaluation_job_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.delete_instruction", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstruction", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteInstruction" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteInstructionRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_instruction" - }, - "description": "Sample for DeleteInstruction", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.delete_instruction", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstruction", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "DeleteInstruction" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.DeleteInstructionRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "delete_instruction" - }, - "description": "Sample for DeleteInstruction", - "file": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_delete_instruction_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.export_data", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ExportData", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ExportData" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ExportDataRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "annotated_dataset", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "output_config", - "type": "google.cloud.datalabeling_v1beta1.types.OutputConfig" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "export_data" - }, - "description": "Sample for ExportData", - "file": "datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_async", - "segments": [ - { - "end": 56, - "start": 27, - "type": "FULL" - }, - { - "end": 56, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 53, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 57, - "start": 54, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_export_data_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.export_data", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ExportData", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ExportData" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ExportDataRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "annotated_dataset", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "output_config", - "type": "google.cloud.datalabeling_v1beta1.types.OutputConfig" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "export_data" - }, - "description": "Sample for ExportData", - "file": "datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_sync", - "segments": [ - { - "end": 56, - "start": 27, - "type": "FULL" - }, - { - "end": 56, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 46, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 53, - "start": 47, - "type": "REQUEST_EXECUTION" - }, - { - "end": 57, - "start": 54, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_export_data_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_annotated_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetAnnotatedDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotatedDatasetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotatedDataset", - "shortName": "get_annotated_dataset" - }, - "description": "Sample for GetAnnotatedDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_annotated_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetAnnotatedDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotatedDatasetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotatedDataset", - "shortName": "get_annotated_dataset" - }, - "description": "Sample for GetAnnotatedDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotated_dataset_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_annotation_spec_set", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSet", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetAnnotationSpecSet" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotationSpecSetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", - "shortName": "get_annotation_spec_set" - }, - "description": "Sample for GetAnnotationSpecSet", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_annotation_spec_set", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSet", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetAnnotationSpecSet" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetAnnotationSpecSetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.AnnotationSpecSet", - "shortName": "get_annotation_spec_set" - }, - "description": "Sample for GetAnnotationSpecSet", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_annotation_spec_set_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_data_item", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItem", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetDataItem" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetDataItemRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.DataItem", - "shortName": "get_data_item" - }, - "description": "Sample for GetDataItem", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_data_item", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItem", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetDataItem" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetDataItemRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.DataItem", - "shortName": "get_data_item" - }, - "description": "Sample for GetDataItem", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_data_item_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetDatasetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", - "shortName": "get_dataset" - }, - "description": "Sample for GetDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_dataset", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataset", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetDataset" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetDatasetRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Dataset", - "shortName": "get_dataset" - }, - "description": "Sample for GetDataset", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_dataset_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", - "shortName": "get_evaluation_job" - }, - "description": "Sample for GetEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", - "shortName": "get_evaluation_job" - }, - "description": "Sample for GetEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_job_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_evaluation", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluation", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetEvaluation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Evaluation", - "shortName": "get_evaluation" - }, - "description": "Sample for GetEvaluation", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_evaluation", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluation", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetEvaluation" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetEvaluationRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Evaluation", - "shortName": "get_evaluation" - }, - "description": "Sample for GetEvaluation", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_evaluation_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_example", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetExample", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetExample" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetExampleRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Example", - "shortName": "get_example" - }, - "description": "Sample for GetExample", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_example_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_example", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetExample", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetExample" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetExampleRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Example", - "shortName": "get_example" - }, - "description": "Sample for GetExample", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_example_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.get_instruction", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstruction", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetInstruction" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetInstructionRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Instruction", - "shortName": "get_instruction" - }, - "description": "Sample for GetInstruction", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.get_instruction", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstruction", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "GetInstruction" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.GetInstructionRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.Instruction", - "shortName": "get_instruction" - }, - "description": "Sample for GetInstruction", - "file": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_sync", - "segments": [ - { - "end": 51, - "start": 27, - "type": "FULL" - }, - { - "end": 51, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 52, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_get_instruction_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.import_data", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ImportData", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ImportData" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ImportDataRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "input_config", - "type": "google.cloud.datalabeling_v1beta1.types.InputConfig" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "import_data" - }, - "description": "Sample for ImportData", - "file": "datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_async", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_import_data_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.import_data", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ImportData", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ImportData" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ImportDataRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "input_config", - "type": "google.cloud.datalabeling_v1beta1.types.InputConfig" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "import_data" - }, - "description": "Sample for ImportData", - "file": "datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_sync", - "segments": [ - { - "end": 55, - "start": 27, - "type": "FULL" - }, - { - "end": 55, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 52, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 56, - "start": 53, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_import_data_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.label_image", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImage", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "LabelImage" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "basic_config", - "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest.Feature" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "label_image" - }, - "description": "Sample for LabelImage", - "file": "datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async", - "segments": [ - { - "end": 65, - "start": 27, - "type": "FULL" - }, - { - "end": 65, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 55, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 62, - "start": 56, - "type": "REQUEST_EXECUTION" - }, - { - "end": 66, - "start": 63, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_label_image_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.label_image", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImage", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "LabelImage" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "basic_config", - "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": "google.cloud.datalabeling_v1beta1.types.LabelImageRequest.Feature" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "label_image" - }, - "description": "Sample for LabelImage", - "file": "datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_sync", - "segments": [ - { - "end": 65, - "start": 27, - "type": "FULL" - }, - { - "end": 65, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 55, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 62, - "start": 56, - "type": "REQUEST_EXECUTION" - }, - { - "end": 66, - "start": 63, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_label_image_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.label_text", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelText", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "LabelText" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "basic_config", - "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest.Feature" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "label_text" - }, - "description": "Sample for LabelText", - "file": "datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_async", - "segments": [ - { - "end": 65, - "start": 27, - "type": "FULL" - }, - { - "end": 65, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 55, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 62, - "start": 56, - "type": "REQUEST_EXECUTION" - }, - { - "end": 66, - "start": 63, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_label_text_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.label_text", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelText", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "LabelText" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "basic_config", - "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": "google.cloud.datalabeling_v1beta1.types.LabelTextRequest.Feature" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "label_text" - }, - "description": "Sample for LabelText", - "file": "datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_sync", - "segments": [ - { - "end": 65, - "start": 27, - "type": "FULL" - }, - { - "end": 65, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 55, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 62, - "start": 56, - "type": "REQUEST_EXECUTION" - }, - { - "end": 66, - "start": 63, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_label_text_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.label_video", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideo", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "LabelVideo" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "basic_config", - "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest.Feature" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "label_video" - }, - "description": "Sample for LabelVideo", - "file": "datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async", - "segments": [ - { - "end": 65, - "start": 27, - "type": "FULL" - }, - { - "end": 65, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 55, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 62, - "start": 56, - "type": "REQUEST_EXECUTION" - }, - { - "end": 66, - "start": 63, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_label_video_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.label_video", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideo", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "LabelVideo" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "basic_config", - "type": "google.cloud.datalabeling_v1beta1.types.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": "google.cloud.datalabeling_v1beta1.types.LabelVideoRequest.Feature" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.api_core.operation.Operation", - "shortName": "label_video" - }, - "description": "Sample for LabelVideo", - "file": "datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_sync", - "segments": [ - { - "end": 65, - "start": 27, - "type": "FULL" - }, - { - "end": 65, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 55, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 62, - "start": 56, - "type": "REQUEST_EXECUTION" - }, - { - "end": 66, - "start": 63, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_label_video_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_annotated_datasets", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasets", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListAnnotatedDatasets" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotatedDatasetsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotatedDatasetsAsyncPager", - "shortName": "list_annotated_datasets" - }, - "description": "Sample for ListAnnotatedDatasets", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_annotated_datasets", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasets", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListAnnotatedDatasets" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotatedDatasetsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotatedDatasetsPager", - "shortName": "list_annotated_datasets" - }, - "description": "Sample for ListAnnotatedDatasets", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_annotation_spec_sets", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSets", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListAnnotationSpecSets" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotationSpecSetsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotationSpecSetsAsyncPager", - "shortName": "list_annotation_spec_sets" - }, - "description": "Sample for ListAnnotationSpecSets", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_annotation_spec_sets", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSets", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListAnnotationSpecSets" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListAnnotationSpecSetsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListAnnotationSpecSetsPager", - "shortName": "list_annotation_spec_sets" - }, - "description": "Sample for ListAnnotationSpecSets", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_annotation_spec_sets_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_data_items", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItems", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListDataItems" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListDataItemsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDataItemsAsyncPager", - "shortName": "list_data_items" - }, - "description": "Sample for ListDataItems", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_data_items", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItems", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListDataItems" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListDataItemsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDataItemsPager", - "shortName": "list_data_items" - }, - "description": "Sample for ListDataItems", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_data_items_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_datasets", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasets", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListDatasets" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListDatasetsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDatasetsAsyncPager", - "shortName": "list_datasets" - }, - "description": "Sample for ListDatasets", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_datasets", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasets", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListDatasets" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListDatasetsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListDatasetsPager", - "shortName": "list_datasets" - }, - "description": "Sample for ListDatasets", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_datasets_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_evaluation_jobs", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobs", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListEvaluationJobs" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListEvaluationJobsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListEvaluationJobsAsyncPager", - "shortName": "list_evaluation_jobs" - }, - "description": "Sample for ListEvaluationJobs", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_evaluation_jobs", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobs", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListEvaluationJobs" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListEvaluationJobsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListEvaluationJobsPager", - "shortName": "list_evaluation_jobs" - }, - "description": "Sample for ListEvaluationJobs", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_evaluation_jobs_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_examples", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamples", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListExamples" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListExamplesRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListExamplesAsyncPager", - "shortName": "list_examples" - }, - "description": "Sample for ListExamples", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_examples", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamples", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListExamples" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListExamplesRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListExamplesPager", - "shortName": "list_examples" - }, - "description": "Sample for ListExamples", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_examples_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.list_instructions", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructions", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListInstructions" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListInstructionsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListInstructionsAsyncPager", - "shortName": "list_instructions" - }, - "description": "Sample for ListInstructions", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.list_instructions", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructions", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ListInstructions" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ListInstructionsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.ListInstructionsPager", - "shortName": "list_instructions" - }, - "description": "Sample for ListInstructions", - "file": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_list_instructions_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.pause_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "PauseEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.PauseEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "pause_evaluation_job" - }, - "description": "Sample for PauseEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.pause_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "PauseEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.PauseEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "pause_evaluation_job" - }, - "description": "Sample for PauseEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_pause_evaluation_job_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.resume_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ResumeEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ResumeEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "resume_evaluation_job" - }, - "description": "Sample for ResumeEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.resume_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "ResumeEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.ResumeEvaluationJobRequest" - }, - { - "name": "name", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "shortName": "resume_evaluation_job" - }, - "description": "Sample for ResumeEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_sync", - "segments": [ - { - "end": 49, - "start": 27, - "type": "FULL" - }, - { - "end": 49, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 50, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_resume_evaluation_job_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.search_evaluations", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "SearchEvaluations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.SearchEvaluationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchEvaluationsAsyncPager", - "shortName": "search_evaluations" - }, - "description": "Sample for SearchEvaluations", - "file": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.search_evaluations", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "SearchEvaluations" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.SearchEvaluationsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "filter", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchEvaluationsPager", - "shortName": "search_evaluations" - }, - "description": "Sample for SearchEvaluations", - "file": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_search_evaluations_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.search_example_comparisons", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisons", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "SearchExampleComparisons" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.SearchExampleComparisonsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchExampleComparisonsAsyncPager", - "shortName": "search_example_comparisons" - }, - "description": "Sample for SearchExampleComparisons", - "file": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.search_example_comparisons", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisons", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "SearchExampleComparisons" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.SearchExampleComparisonsRequest" - }, - { - "name": "parent", - "type": "str" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.services.data_labeling_service.pagers.SearchExampleComparisonsPager", - "shortName": "search_example_comparisons" - }, - "description": "Sample for SearchExampleComparisons", - "file": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_sync", - "segments": [ - { - "end": 52, - "start": 27, - "type": "FULL" - }, - { - "end": 52, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 45, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 48, - "start": 46, - "type": "REQUEST_EXECUTION" - }, - { - "end": 53, - "start": 49, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_search_example_comparisons_sync.py" - }, - { - "canonical": true, - "clientMethod": { - "async": true, - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient", - "shortName": "DataLabelingServiceAsyncClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceAsyncClient.update_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "UpdateEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.UpdateEvaluationJobRequest" - }, - { - "name": "evaluation_job", - "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", - "shortName": "update_evaluation_job" - }, - "description": "Sample for UpdateEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient", - "shortName": "DataLabelingServiceClient" - }, - "fullName": "google.cloud.datalabeling_v1beta1.DataLabelingServiceClient.update_evaluation_job", - "method": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJob", - "service": { - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService", - "shortName": "DataLabelingService" - }, - "shortName": "UpdateEvaluationJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.datalabeling_v1beta1.types.UpdateEvaluationJobRequest" - }, - { - "name": "evaluation_job", - "type": "google.cloud.datalabeling_v1beta1.types.EvaluationJob" - }, - { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" - }, - { - "name": "retry", - "type": "google.api_core.retry.Retry" - }, - { - "name": "timeout", - "type": "float" - }, - { - "name": "metadata", - "type": "Sequence[Tuple[str, str]" - } - ], - "resultType": "google.cloud.datalabeling_v1beta1.types.EvaluationJob", - "shortName": "update_evaluation_job" - }, - "description": "Sample for UpdateEvaluationJob", - "file": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_sync", - "segments": [ - { - "end": 50, - "start": 27, - "type": "FULL" - }, - { - "end": 50, - "start": 27, - "type": "SHORT" - }, - { - "end": 40, - "start": 38, - "type": "CLIENT_INITIALIZATION" - }, - { - "end": 44, - "start": 41, - "type": "REQUEST_INITIALIZATION" - }, - { - "end": 47, - "start": 45, - "type": "REQUEST_EXECUTION" - }, - { - "end": 51, - "start": 48, - "type": "RESPONSE_HANDLING" - } - ], - "title": "datalabeling_v1beta1_generated_data_labeling_service_update_evaluation_job_sync.py" - } - ] -} From 60066eb34617d363b371c44e19764880bcb2e3e1 Mon Sep 17 00:00:00 2001 From: ivanmkc Date: Fri, 4 Nov 2022 14:32:07 -0400 Subject: [PATCH 59/63] Fixed removed files and master-main --- appengine/standard/ndb/cache/README.md | 16 + appengine/standard/ndb/cache/snippets.py | 45 +++ appengine/standard/ndb/cache/snippets_test.py | 60 ++++ datalabeling/AUTHORING_GUIDE.md | 2 +- datalabeling/CONTRIBUTING.md | 2 +- datalabeling/snippets/noxfile.py | 312 ------------------ 6 files changed, 123 insertions(+), 314 deletions(-) create mode 100644 appengine/standard/ndb/cache/README.md create mode 100644 appengine/standard/ndb/cache/snippets.py create mode 100644 appengine/standard/ndb/cache/snippets_test.py delete mode 100644 datalabeling/snippets/noxfile.py diff --git a/appengine/standard/ndb/cache/README.md b/appengine/standard/ndb/cache/README.md new file mode 100644 index 000000000000..a702c6478195 --- /dev/null +++ b/appengine/standard/ndb/cache/README.md @@ -0,0 +1,16 @@ +## App Engine Datastore NDB Cache Samples + +[![Open in Cloud Shell][shell_img]][shell_link] + +[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=appengine/standard/ndb/cache/README.md + +This contains snippets used in the NDB cache documentation, demonstrating +various operations on ndb caches. + + +These samples are used on the following documentation page: + +> https://cloud.google.com/appengine/docs/python/ndb/cache + + diff --git a/appengine/standard/ndb/cache/snippets.py b/appengine/standard/ndb/cache/snippets.py new file mode 100644 index 000000000000..391ad3f89a04 --- /dev/null +++ b/appengine/standard/ndb/cache/snippets.py @@ -0,0 +1,45 @@ +# Copyright 2016 Google Inc. All rights reserved. +# +# 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. + +from google.appengine.ext import ndb + + +def set_in_process_cache_policy(func): + context = ndb.get_context() + context.set_cache_policy(func) + + +def set_memcache_policy(func): + context = ndb.get_context() + context.set_memcache_policy(func) + + +def bypass_in_process_cache_for_account_entities(): + context = ndb.get_context() + context.set_cache_policy(lambda key: key.kind() != 'Account') + + +def set_datastore_policy(func): + context = ndb.get_context() + context.set_datastore_policy(func) + + +def set_memcache_timeout_policy(func): + context = ndb.get_context() + context.set_memcache_timeout_policy(func) + + +def clear_cache(): + context = ndb.get_context() + context.clear_cache() diff --git a/appengine/standard/ndb/cache/snippets_test.py b/appengine/standard/ndb/cache/snippets_test.py new file mode 100644 index 000000000000..257525895ee0 --- /dev/null +++ b/appengine/standard/ndb/cache/snippets_test.py @@ -0,0 +1,60 @@ +# Copyright 2016 Google Inc. All rights reserved. +# +# 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. + +from google.appengine.ext import ndb + +import snippets + + +def test_set_in_process_cache_policy(testbed): + def policy(key): + return 1 == 1 + + snippets.set_in_process_cache_policy(policy) + assert policy == ndb.get_context().get_cache_policy() + + +def test_set_memcache_policy(testbed): + def policy(key): + return 1 == 2 + + snippets.set_memcache_policy(policy) + assert policy == ndb.get_context().get_memcache_policy() + + +def test_bypass_in_process_cache_for_account_entities(testbed): + context = ndb.get_context() + assert context.get_cache_policy() == context.default_cache_policy + snippets.bypass_in_process_cache_for_account_entities() + assert context.get_cache_policy() != context.default_cache_policy + + +def test_set_datastore_policy(testbed): + def policy(key): + return key is None + + snippets.set_datastore_policy(policy) + assert ndb.get_context().get_datastore_policy() == policy + + +def test_set_memcache_timeout_policy(testbed): + def policy(key): + return 1 + + snippets.set_memcache_timeout_policy(policy) + assert ndb.get_context().get_memcache_timeout_policy() == policy + + +def test_clear_cache(testbed): + snippets.clear_cache() diff --git a/datalabeling/AUTHORING_GUIDE.md b/datalabeling/AUTHORING_GUIDE.md index 55c97b32f4c1..f2725aaf3f43 100644 --- a/datalabeling/AUTHORING_GUIDE.md +++ b/datalabeling/AUTHORING_GUIDE.md @@ -1 +1 @@ -See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md \ No newline at end of file +See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md diff --git a/datalabeling/CONTRIBUTING.md b/datalabeling/CONTRIBUTING.md index 34c882b6f1a3..354af3073ee7 100644 --- a/datalabeling/CONTRIBUTING.md +++ b/datalabeling/CONTRIBUTING.md @@ -1 +1 @@ -See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/CONTRIBUTING.md \ No newline at end of file +See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/CONTRIBUTING.md diff --git a/datalabeling/snippets/noxfile.py b/datalabeling/snippets/noxfile.py deleted file mode 100644 index 1062eecd5679..000000000000 --- a/datalabeling/snippets/noxfile.py +++ /dev/null @@ -1,312 +0,0 @@ -# Copyright 2022 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. - -from __future__ import print_function - -import glob -import os -from pathlib import Path -import sys -from typing import Callable, Dict, List, Optional - -import nox - -# WARNING - WARNING - WARNING - WARNING - WARNING -# WARNING - WARNING - WARNING - WARNING - WARNING -# DO NOT EDIT THIS FILE EVER! -# WARNING - WARNING - WARNING - WARNING - WARNING -# WARNING - WARNING - WARNING - WARNING - WARNING - -BLACK_VERSION = "black==22.3.0" -ISORT_VERSION = "isort==5.10.1" - -# Copy `noxfile_config.py` to your directory and modify it instead. - -# `TEST_CONFIG` dict is a configuration hook that allows users to -# modify the test configurations. The values here should be in sync -# with `noxfile_config.py`. Users will copy `noxfile_config.py` into -# their directory and modify it. - -TEST_CONFIG = { - # You can opt out from the test for specific Python versions. - "ignored_versions": [], - # Old samples are opted out of enforcing Python type hints - # All new samples should feature them - "enforce_type_hints": False, - # An envvar key for determining the project id to use. Change it - # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a - # build specific Cloud project. You can also use your own string - # to use your own Cloud project. - "gcloud_project_env": "GOOGLE_CLOUD_PROJECT", - # 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT', - # If you need to use a specific version of pip, - # change pip_version_override to the string representation - # of the version number, for example, "20.2.4" - "pip_version_override": None, - # A dictionary you want to inject into your test. Don't put any - # secrets here. These values will override predefined values. - "envs": {}, -} - - -try: - # Ensure we can import noxfile_config in the project's directory. - sys.path.append(".") - from noxfile_config import TEST_CONFIG_OVERRIDE -except ImportError as e: - print("No user noxfile_config found: detail: {}".format(e)) - TEST_CONFIG_OVERRIDE = {} - -# Update the TEST_CONFIG with the user supplied values. -TEST_CONFIG.update(TEST_CONFIG_OVERRIDE) - - -def get_pytest_env_vars() -> Dict[str, str]: - """Returns a dict for pytest invocation.""" - ret = {} - - # Override the GCLOUD_PROJECT and the alias. - env_key = TEST_CONFIG["gcloud_project_env"] - # This should error out if not set. - ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key] - - # Apply user supplied envs. - ret.update(TEST_CONFIG["envs"]) - return ret - - -# DO NOT EDIT - automatically generated. -# All versions used to test samples. -ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"] - -# Any default versions that should be ignored. -IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"] - -TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS]) - -INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", False) in ( - "True", - "true", -) - -# Error if a python version is missing -nox.options.error_on_missing_interpreters = True - -# -# Style Checks -# - - -def _determine_local_import_names(start_dir: str) -> List[str]: - """Determines all import names that should be considered "local". - - This is used when running the linter to insure that import order is - properly checked. - """ - file_ext_pairs = [os.path.splitext(path) for path in os.listdir(start_dir)] - return [ - basename - for basename, extension in file_ext_pairs - if extension == ".py" - or os.path.isdir(os.path.join(start_dir, basename)) - and basename not in ("__pycache__") - ] - - -# Linting with flake8. -# -# We ignore the following rules: -# E203: whitespace before ‘:’ -# E266: too many leading ‘#’ for block comment -# E501: line too long -# I202: Additional newline in a section of imports -# -# We also need to specify the rules which are ignored by default: -# ['E226', 'W504', 'E126', 'E123', 'W503', 'E24', 'E704', 'E121'] -FLAKE8_COMMON_ARGS = [ - "--show-source", - "--builtin=gettext", - "--max-complexity=20", - "--import-order-style=google", - "--exclude=.nox,.cache,env,lib,generated_pb2,*_pb2.py,*_pb2_grpc.py", - "--ignore=E121,E123,E126,E203,E226,E24,E266,E501,E704,W503,W504,I202", - "--max-line-length=88", -] - - -@nox.session -def lint(session: nox.sessions.Session) -> None: - if not TEST_CONFIG["enforce_type_hints"]: - session.install("flake8", "flake8-import-order") - else: - session.install("flake8", "flake8-import-order", "flake8-annotations") - - local_names = _determine_local_import_names(".") - args = FLAKE8_COMMON_ARGS + [ - "--application-import-names", - ",".join(local_names), - ".", - ] - session.run("flake8", *args) - - -# -# Black -# - - -@nox.session -def blacken(session: nox.sessions.Session) -> None: - """Run black. Format code to uniform standard.""" - session.install(BLACK_VERSION) - python_files = [path for path in os.listdir(".") if path.endswith(".py")] - - session.run("black", *python_files) - - -# -# format = isort + black -# - - -@nox.session -def format(session: nox.sessions.Session) -> None: - """ - Run isort to sort imports. Then run black - to format code to uniform standard. - """ - session.install(BLACK_VERSION, ISORT_VERSION) - python_files = [path for path in os.listdir(".") if path.endswith(".py")] - - # Use the --fss option to sort imports using strict alphabetical order. - # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections - session.run("isort", "--fss", *python_files) - session.run("black", *python_files) - - -# -# Sample Tests -# - - -PYTEST_COMMON_ARGS = ["--junitxml=sponge_log.xml"] - - -def _session_tests( - session: nox.sessions.Session, post_install: Callable = None -) -> None: - # check for presence of tests - test_list = glob.glob("**/*_test.py", recursive=True) + glob.glob( - "**/test_*.py", recursive=True - ) - test_list.extend(glob.glob("**/tests", recursive=True)) - - if len(test_list) == 0: - print("No tests found, skipping directory.") - return - - if TEST_CONFIG["pip_version_override"]: - pip_version = TEST_CONFIG["pip_version_override"] - session.install(f"pip=={pip_version}") - """Runs py.test for a particular project.""" - concurrent_args = [] - if os.path.exists("requirements.txt"): - if os.path.exists("constraints.txt"): - session.install("-r", "requirements.txt", "-c", "constraints.txt") - else: - session.install("-r", "requirements.txt") - with open("requirements.txt") as rfile: - packages = rfile.read() - - if os.path.exists("requirements-test.txt"): - if os.path.exists("constraints-test.txt"): - session.install("-r", "requirements-test.txt", "-c", "constraints-test.txt") - else: - session.install("-r", "requirements-test.txt") - with open("requirements-test.txt") as rtfile: - packages += rtfile.read() - - if INSTALL_LIBRARY_FROM_SOURCE: - session.install("-e", _get_repo_root()) - - if post_install: - post_install(session) - - if "pytest-parallel" in packages: - concurrent_args.extend(["--workers", "auto", "--tests-per-worker", "auto"]) - elif "pytest-xdist" in packages: - concurrent_args.extend(["-n", "auto"]) - - session.run( - "pytest", - *(PYTEST_COMMON_ARGS + session.posargs + concurrent_args), - # Pytest will return 5 when no tests are collected. This can happen - # on travis where slow and flaky tests are excluded. - # See http://doc.pytest.org/en/latest/_modules/_pytest/main.html - success_codes=[0, 5], - env=get_pytest_env_vars(), - ) - - -@nox.session(python=ALL_VERSIONS) -def py(session: nox.sessions.Session) -> None: - """Runs py.test for a sample using the specified version of Python.""" - if session.python in TESTED_VERSIONS: - _session_tests(session) - else: - session.skip( - "SKIPPED: {} tests are disabled for this sample.".format(session.python) - ) - - -# -# Readmegen -# - - -def _get_repo_root() -> Optional[str]: - """Returns the root folder of the project.""" - # Get root of this repository. Assume we don't have directories nested deeper than 10 items. - p = Path(os.getcwd()) - for i in range(10): - if p is None: - break - if Path(p / ".git").exists(): - return str(p) - # .git is not available in repos cloned via Cloud Build - # setup.py is always in the library's root, so use that instead - # https://github.com/googleapis/synthtool/issues/792 - if Path(p / "setup.py").exists(): - return str(p) - p = p.parent - raise Exception("Unable to detect repository root.") - - -GENERATED_READMES = sorted([x for x in Path(".").rglob("*.rst.in")]) - - -@nox.session -@nox.parametrize("path", GENERATED_READMES) -def readmegen(session: nox.sessions.Session, path: str) -> None: - """(Re-)generates the readme for a sample.""" - session.install("jinja2", "pyyaml") - dir_ = os.path.dirname(path) - - if os.path.exists(os.path.join(dir_, "requirements.txt")): - session.install("-r", os.path.join(dir_, "requirements.txt")) - - in_file = os.path.join(dir_, "README.rst.in") - session.run( - "python", _get_repo_root() + "/scripts/readme-gen/readme_gen.py", in_file - ) From d7a9b2d10c61d0de88c63e0eca27bba9a214a734 Mon Sep 17 00:00:00 2001 From: ivanmkc Date: Tue, 8 Nov 2022 13:38:38 -0500 Subject: [PATCH 60/63] Updated blunderbuss file --- .github/blunderbuss.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml index bc1059f6faa8..0901b6157dba 100644 --- a/.github/blunderbuss.yml +++ b/.github/blunderbuss.yml @@ -108,7 +108,11 @@ assign_issues_by: - 'api: translate' to: - nicain - +- labels: + - 'api: datalabeling' + to: + - python-sample-reviewers + assign_prs_by: - labels: - 'api: auth' From 0833c3e74c7791dbfe75865c90c117b243c17480 Mon Sep 17 00:00:00 2001 From: Dan Lee <71398022+dandhlee@users.noreply.github.com> Date: Tue, 8 Nov 2022 12:42:28 -0600 Subject: [PATCH 61/63] Update .github/blunderbuss.yml --- .github/blunderbuss.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml index 0901b6157dba..4885ca6fa8be 100644 --- a/.github/blunderbuss.yml +++ b/.github/blunderbuss.yml @@ -111,7 +111,7 @@ assign_issues_by: - labels: - 'api: datalabeling' to: - - python-sample-reviewers + - GoogleCloudPlatform/python-samples-reviewers assign_prs_by: - labels: From ab01032cb9901412eca27ae8abc85174c2a05b90 Mon Sep 17 00:00:00 2001 From: ivanmkc Date: Tue, 8 Nov 2022 18:02:28 -0500 Subject: [PATCH 62/63] Added ivanmkc as reviewer --- .github/blunderbuss.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml index 4885ca6fa8be..7eaace055f68 100644 --- a/.github/blunderbuss.yml +++ b/.github/blunderbuss.yml @@ -112,6 +112,7 @@ assign_issues_by: - 'api: datalabeling' to: - GoogleCloudPlatform/python-samples-reviewers + - ivanmkc assign_prs_by: - labels: From ddd312e613399be672ed47fb35bccc6ce6b897ad Mon Sep 17 00:00:00 2001 From: ivanmkc Date: Wed, 9 Nov 2022 11:35:14 -0500 Subject: [PATCH 63/63] Added to CODEOWNERS --- .github/CODEOWNERS | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f1ee8750fc91..36ceb59c9923 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -31,6 +31,7 @@ /container/**/* @GoogleCloudPlatform/dee-platform-ops @GoogleCloudPlatform/python-samples-reviewers /data-science-onramp/ @leahecole @bradmiro @GoogleCloudPlatform/python-samples-reviewers /dataflow/**/* @davidcavazos @GoogleCloudPlatform/python-samples-reviewers +/datalabeling/**/* @GoogleCloudPlatform/python-samples-reviewers @ivanmkc /datastore/**/* @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/python-samples-reviewers /dns/**/* @GoogleCloudPlatform/python-samples-reviewers /endpoints/**/* @GoogleCloudPlatform/python-samples-reviewers