From c903e7db557dd6cd46613326fa553134d5de636d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 12 Jul 2023 16:59:12 -0700 Subject: [PATCH] Copybara import of the project: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -- 222f6ead640d3895646fd74ab264f265704742d1 by Owl Bot : feat: add UpdateExplanationDataset to aiplatform PiperOrigin-RevId: 541213716 Source-Link: https://github.com/googleapis/googleapis/commit/4a858c4e033098aaecd29dc9302f406d9eb39684 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e4c3eab1fda49c5d9619bb82872a0a7e81f83528 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTRjM2VhYjFmZGE0OWM1ZDk2MTliYjgyODcyYTBhN2U4MWY4MzUyOCJ9 -- 75bf15d7eca8342b2d1f95aff153e57a6e4a120a by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- c8f2c7e5841c94080f30715eef278952214ea7de by Owl Bot : chore: Generate Ruby documentai wrapper from v1 instead of v1beta3 PiperOrigin-RevId: 542603310 Source-Link: https://github.com/googleapis/googleapis/commit/45001d80e079b14e4c808a93f99849a9325835c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ad6882bb648d1170a5414e0e9999c84a43f515f0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWQ2ODgyYmI2NDhkMTE3MGE1NDE0ZTBlOTk5OWM4NGE0M2Y1MTVmMCJ9 -- df2e2d6f5e529714118e51eb04ad6c9811df94dd by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- eb4f7ab64b9d2391adb54b504b90259379a08c27 by Owl Bot : docs: tightened requirements on cloud storage subscription filename suffixes PiperOrigin-RevId: 543503563 Source-Link: https://github.com/googleapis/googleapis/commit/212ecef96e3ea7c67465ff3f52680301ad0ea1f9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/532d27eea6ff128fdcbb3332176e894e76dcc685 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTMyZDI3ZWVhNmZmMTI4ZmRjYmIzMzMyMTc2ZTg5NGU3NmRjYzY4NSJ9 -- 8b9d874407ebb8b1603429ca2ccb8212b448eb56 by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 1ff05f7fded898f9b59d3402b73c7596af0fda19 by Owl Bot : fix: Add async context manager return types chore: Mock return_value should not populate oneof message fields chore: Support snippet generation for services that only support REST transport chore: Update gapic-generator-python to v1.11.0 PiperOrigin-RevId: 545430278 Source-Link: https://github.com/googleapis/googleapis/commit/601b5326107eeb74800b426d1f9933faa233258a Source-Link: https://github.com/googleapis/googleapis-gen/commit/b3f18d0f6560a855022fd058865e7620479d7af9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjNmMThkMGY2NTYwYTg1NTAyMmZkMDU4ODY1ZTc2MjA0NzlkN2FmOSJ9 -- 79469acf5f4554ed68d11a07aa5b8d72f6b97d06 by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 9c3dfe85da0aeafb6edea9c9b40a065aafa21247 by Owl Bot : chore: Update gapic-generator-python to v1.11.1 PiperOrigin-RevId: 545769621 Source-Link: https://github.com/googleapis/googleapis/commit/cc2f031396e0cda5dd89f191493fe9eddff47233 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1a46ae7652ef98a86c2bc232b6da0412e9f30bdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWE0NmFlNzY1MmVmOThhODZjMmJjMjMyYjZkYTA0MTJlOWYzMGJkYiJ9 -- f221309d4d81139d65e69e2f2fd7fd79c37d230f by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 043107e4022d97566e0deb31877b6cb4c092bdbe by Owl Bot : feat: added GitIntegrationSettings to the Agent PiperOrigin-RevId: 546355900 Source-Link: https://github.com/googleapis/googleapis/commit/dc3d3a2bf6b082b22fefa27119caaaf74e2fce8e Source-Link: https://github.com/googleapis/googleapis-gen/commit/2480a9f8bfbc7987f583d70e199584a46b52133f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ4MGE5ZjhiZmJjNzk4N2Y1ODNkNzBlMTk5NTg0YTQ2YjUyMTMzZiJ9 -- 5112a1a767467861040ff7f1f93f4fa04e808477 by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 57b17e5d95f378bb9a10f94e5c66f83ebfedf7d5 by Owl Bot : chore: Update gapic-generator-python to v1.11.2 PiperOrigin-RevId: 546510849 Source-Link: https://github.com/googleapis/googleapis/commit/736073ad9a9763a170eceaaa54519bcc0ea55a5e Source-Link: https://github.com/googleapis/googleapis-gen/commit/deb64e8ec19d141e31089fe932b3a997ad541c4d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGViNjRlOGVjMTlkMTQxZTMxMDg5ZmU5MzJiM2E5OTdhZDU0MWM0ZCJ9 -- 195ff4e30e442bf440fb2343db0fc5d03fd1ac31 by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 4c05c4104eeb05c3bad280c7438b8c9759429278 by Owl Bot : chore: Update gapic-generator-python to v1.11.3 PiperOrigin-RevId: 546899192 Source-Link: https://github.com/googleapis/googleapis/commit/e6b16918b98fe1a35f725b56537354f22b6cdc48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0b3917c421cbda7fcb67092e16c33f3ea46f4bc7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIzOTE3YzQyMWNiZGE3ZmNiNjcwOTJlMTZjMzNmM2VhNDZmNGJjNyJ9 -- e0cd53327bc3c360b0fcabb5d11b9b36794af78a by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 6e490f4c7efa741ac1bf6e067b6f48a75a48cb31 by Owl Bot : feat: Add routing information in Cloud Build GRPC clients PiperOrigin-RevId: 547283196 Source-Link: https://github.com/googleapis/googleapis/commit/64d54ff78cfe7cdc2f4b95717dc9afa3ef32a29a Source-Link: https://github.com/googleapis/googleapis-gen/commit/1de18221109b4a025c0b2e8c25324cb01b6df626 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWRlMTgyMjExMDliNGEwMjVjMGIyZThjMjUzMjRjYjAxYjZkZjYyNiJ9 -- 57a75ff402a4c3d19889cc85c294db7364953d2b by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 1f1e8a469dc7a220fb288a54cdb6fb4506fa17e0 by Owl Bot : feat: add data_item_count to Dataset feat: add DeleteSavedQuery to DatasetService feat: add JOB_STATE_PARTIALLY_SUCCEEDED to JobState feat: add pipeline_job to Model feat: add reserved_ip_ranges to PipelineJob PiperOrigin-RevId: 547343567 Source-Link: https://github.com/googleapis/googleapis/commit/72b20cc483d055fd061ce9857e7ade6482ec8056 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4d84e76df6f5a361eca3573a0f69221b421e7359 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGQ4NGU3NmRmNmY1YTM2MWVjYTM1NzNhMGY2OTIyMWI0MjFlNzM1OSJ9 -- 61d7cf5dead4299f0d5457450e582f7384c7825e by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md -- 330ca6bb9bead38189bec8696550c3fb6dfc300c by Owl Bot : feat: add data_item_count to Dataset feat: add DeleteSavedQuery to DatasetService feat: add ExportEndpointOperationMetadata and ExportEndpointResponse to Endpoint feat: add JOB_STATE_PARTIALLY_SUCCEEDED to JobState feat: add pipeline_job to Model feat: add persistent_resource.proto and persistent_resource_service.proto feat: add reserved_ip_ranges to PipelineJob feat: add ReadTensorboardSize to TensorboardService PiperOrigin-RevId: 547519544 Source-Link: https://github.com/googleapis/googleapis/commit/4f40e536783917770dc9b1ccd286d10c8430c50e Source-Link: https://github.com/googleapis/googleapis-gen/commit/cf937c7ecbe8ceeaa031f1389934149bdadf04be Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2Y5MzdjN2VjYmU4Y2VlYWEwMzFmMTM4OTkzNDE0OWJkYWRmMDRiZSJ9 -- acb959dc9d28c20857176aac4b7f90b8c5de91ff by Owl Bot : 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md COPYBARA_INTEGRATE_REVIEW=https://github.com/googleapis/python-aiplatform/pull/2310 from googleapis:owl-bot-copy d65fe2fa7d066dfedfb547944571ae33b63535e1 PiperOrigin-RevId: 547639767 --- .../persistent_resource_service.rst | 10 + docs/aiplatform_v1beta1/services.rst | 1 + .../v1/schema/predict/instance/__init__.py | 2 +- .../v1/schema/predict/instance_v1/__init__.py | 2 +- .../predict/instance_v1/types/__init__.py | 2 +- .../instance_v1/types/image_classification.py | 5 +- .../types/image_object_detection.py | 5 +- .../instance_v1/types/image_segmentation.py | 5 +- .../instance_v1/types/text_classification.py | 2 +- .../instance_v1/types/text_extraction.py | 2 +- .../instance_v1/types/text_sentiment.py | 2 +- .../types/video_action_recognition.py | 2 +- .../instance_v1/types/video_classification.py | 2 +- .../types/video_object_tracking.py | 2 +- .../v1/schema/predict/params/__init__.py | 2 +- .../v1/schema/predict/params_v1/__init__.py | 2 +- .../predict/params_v1/types/__init__.py | 2 +- .../params_v1/types/image_classification.py | 2 +- .../params_v1/types/image_object_detection.py | 2 +- .../params_v1/types/image_segmentation.py | 2 +- .../types/video_action_recognition.py | 2 +- .../params_v1/types/video_classification.py | 2 +- .../params_v1/types/video_object_tracking.py | 2 +- .../v1/schema/predict/prediction/__init__.py | 2 +- .../schema/predict/prediction_v1/__init__.py | 2 +- .../predict/prediction_v1/types/__init__.py | 2 +- .../prediction_v1/types/classification.py | 2 +- .../types/image_object_detection.py | 2 +- .../prediction_v1/types/image_segmentation.py | 2 +- .../types/tabular_classification.py | 2 +- .../prediction_v1/types/tabular_regression.py | 2 +- .../prediction_v1/types/text_extraction.py | 2 +- .../prediction_v1/types/text_sentiment.py | 2 +- .../types/video_action_recognition.py | 2 +- .../types/video_classification.py | 5 +- .../types/video_object_tracking.py | 2 +- .../schema/trainingjob/definition/__init__.py | 2 +- .../trainingjob/definition_v1/__init__.py | 2 +- .../definition_v1/types/__init__.py | 2 +- .../types/automl_image_classification.py | 2 +- .../types/automl_image_object_detection.py | 2 +- .../types/automl_image_segmentation.py | 2 +- .../definition_v1/types/automl_tables.py | 2 +- .../types/automl_text_classification.py | 2 +- .../types/automl_text_extraction.py | 2 +- .../types/automl_text_sentiment.py | 2 +- .../types/automl_video_action_recognition.py | 2 +- .../types/automl_video_classification.py | 2 +- .../types/automl_video_object_tracking.py | 2 +- .../export_evaluated_data_items_config.py | 2 +- .../schema/predict/instance/__init__.py | 2 +- .../predict/instance_v1beta1/__init__.py | 2 +- .../instance_v1beta1/types/__init__.py | 2 +- .../types/image_classification.py | 5 +- .../types/image_object_detection.py | 5 +- .../types/image_segmentation.py | 5 +- .../types/text_classification.py | 2 +- .../instance_v1beta1/types/text_extraction.py | 2 +- .../instance_v1beta1/types/text_sentiment.py | 2 +- .../types/video_action_recognition.py | 2 +- .../types/video_classification.py | 2 +- .../types/video_object_tracking.py | 2 +- .../v1beta1/schema/predict/params/__init__.py | 2 +- .../schema/predict/params_v1beta1/__init__.py | 2 +- .../predict/params_v1beta1/types/__init__.py | 2 +- .../types/image_classification.py | 2 +- .../types/image_object_detection.py | 2 +- .../types/image_segmentation.py | 2 +- .../types/video_action_recognition.py | 2 +- .../types/video_classification.py | 2 +- .../types/video_object_tracking.py | 2 +- .../schema/predict/prediction/__init__.py | 2 +- .../predict/prediction_v1beta1/__init__.py | 2 +- .../prediction_v1beta1/types/__init__.py | 2 +- .../types/classification.py | 2 +- .../types/image_object_detection.py | 2 +- .../types/image_segmentation.py | 2 +- .../types/tabular_classification.py | 2 +- .../types/tabular_regression.py | 2 +- .../types/text_extraction.py | 2 +- .../types/text_sentiment.py | 2 +- .../types/time_series_forecasting.py | 2 +- .../types/video_action_recognition.py | 2 +- .../types/video_classification.py | 5 +- .../types/video_object_tracking.py | 2 +- .../schema/trainingjob/definition/__init__.py | 2 +- .../definition_v1beta1/__init__.py | 2 +- .../definition_v1beta1/types/__init__.py | 2 +- .../types/automl_image_classification.py | 2 +- .../types/automl_image_object_detection.py | 2 +- .../types/automl_image_segmentation.py | 2 +- .../definition_v1beta1/types/automl_tables.py | 2 +- .../types/automl_text_classification.py | 2 +- .../types/automl_text_extraction.py | 2 +- .../types/automl_text_sentiment.py | 2 +- .../types/automl_time_series_forecasting.py | 2 +- .../types/automl_video_action_recognition.py | 2 +- .../types/automl_video_classification.py | 2 +- .../types/automl_video_object_tracking.py | 2 +- .../export_evaluated_data_items_config.py | 2 +- google/cloud/aiplatform_v1/__init__.py | 10 +- .../cloud/aiplatform_v1/gapic_metadata.json | 20 + .../cloud/aiplatform_v1/services/__init__.py | 2 +- .../services/dataset_service/__init__.py | 2 +- .../services/dataset_service/async_client.py | 133 +- .../services/dataset_service/client.py | 131 +- .../services/dataset_service/pagers.py | 2 +- .../dataset_service/transports/__init__.py | 2 +- .../dataset_service/transports/base.py | 16 +- .../dataset_service/transports/grpc.py | 32 +- .../transports/grpc_asyncio.py | 34 +- .../services/endpoint_service/__init__.py | 2 +- .../services/endpoint_service/async_client.py | 4 +- .../services/endpoint_service/client.py | 2 +- .../services/endpoint_service/pagers.py | 2 +- .../endpoint_service/transports/__init__.py | 2 +- .../endpoint_service/transports/base.py | 2 +- .../endpoint_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../__init__.py | 2 +- .../async_client.py | 4 +- .../client.py | 2 +- .../transports/__init__.py | 2 +- .../transports/base.py | 2 +- .../transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/featurestore_service/__init__.py | 2 +- .../featurestore_service/async_client.py | 17 +- .../services/featurestore_service/client.py | 15 +- .../services/featurestore_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../featurestore_service/transports/base.py | 2 +- .../featurestore_service/transports/grpc.py | 13 +- .../transports/grpc_asyncio.py | 13 +- .../index_endpoint_service/__init__.py | 2 +- .../index_endpoint_service/async_client.py | 4 +- .../services/index_endpoint_service/client.py | 2 +- .../services/index_endpoint_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../index_endpoint_service/transports/base.py | 2 +- .../index_endpoint_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/index_service/__init__.py | 2 +- .../services/index_service/async_client.py | 4 +- .../services/index_service/client.py | 2 +- .../services/index_service/pagers.py | 2 +- .../index_service/transports/__init__.py | 2 +- .../services/index_service/transports/base.py | 2 +- .../services/index_service/transports/grpc.py | 2 +- .../index_service/transports/grpc_asyncio.py | 2 +- .../services/job_service/__init__.py | 2 +- .../services/job_service/async_client.py | 6 +- .../services/job_service/client.py | 4 +- .../services/job_service/pagers.py | 2 +- .../job_service/transports/__init__.py | 2 +- .../services/job_service/transports/base.py | 2 +- .../services/job_service/transports/grpc.py | 2 +- .../job_service/transports/grpc_asyncio.py | 2 +- .../services/match_service/__init__.py | 2 +- .../services/match_service/async_client.py | 4 +- .../services/match_service/client.py | 2 +- .../match_service/transports/__init__.py | 2 +- .../services/match_service/transports/base.py | 2 +- .../services/match_service/transports/grpc.py | 2 +- .../match_service/transports/grpc_asyncio.py | 2 +- .../services/metadata_service/__init__.py | 2 +- .../services/metadata_service/async_client.py | 4 +- .../services/metadata_service/client.py | 2 +- .../services/metadata_service/pagers.py | 2 +- .../metadata_service/transports/__init__.py | 2 +- .../metadata_service/transports/base.py | 2 +- .../metadata_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/migration_service/__init__.py | 2 +- .../migration_service/async_client.py | 4 +- .../services/migration_service/client.py | 20 +- .../services/migration_service/pagers.py | 2 +- .../migration_service/transports/__init__.py | 2 +- .../migration_service/transports/base.py | 2 +- .../migration_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/model_garden_service/__init__.py | 2 +- .../model_garden_service/async_client.py | 4 +- .../services/model_garden_service/client.py | 2 +- .../transports/__init__.py | 2 +- .../model_garden_service/transports/base.py | 2 +- .../model_garden_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/model_service/__init__.py | 2 +- .../services/model_service/async_client.py | 125 +- .../services/model_service/client.py | 125 +- .../services/model_service/pagers.py | 2 +- .../model_service/transports/__init__.py | 2 +- .../services/model_service/transports/base.py | 16 +- .../services/model_service/transports/grpc.py | 31 +- .../model_service/transports/grpc_asyncio.py | 32 +- .../services/pipeline_service/__init__.py | 2 +- .../services/pipeline_service/async_client.py | 4 +- .../services/pipeline_service/client.py | 2 +- .../services/pipeline_service/pagers.py | 2 +- .../pipeline_service/transports/__init__.py | 2 +- .../pipeline_service/transports/base.py | 2 +- .../pipeline_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/prediction_service/__init__.py | 2 +- .../prediction_service/async_client.py | 4 +- .../services/prediction_service/client.py | 2 +- .../prediction_service/transports/__init__.py | 2 +- .../prediction_service/transports/base.py | 2 +- .../prediction_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../specialist_pool_service/__init__.py | 2 +- .../specialist_pool_service/async_client.py | 4 +- .../specialist_pool_service/client.py | 2 +- .../specialist_pool_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../transports/base.py | 2 +- .../transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/tensorboard_service/__init__.py | 2 +- .../tensorboard_service/async_client.py | 218 +- .../services/tensorboard_service/client.py | 216 +- .../services/tensorboard_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../tensorboard_service/transports/base.py | 36 +- .../tensorboard_service/transports/grpc.py | 62 +- .../transports/grpc_asyncio.py | 62 +- .../services/vizier_service/__init__.py | 2 +- .../services/vizier_service/async_client.py | 4 +- .../services/vizier_service/client.py | 2 +- .../services/vizier_service/pagers.py | 2 +- .../vizier_service/transports/__init__.py | 2 +- .../vizier_service/transports/base.py | 2 +- .../vizier_service/transports/grpc.py | 2 +- .../vizier_service/transports/grpc_asyncio.py | 2 +- google/cloud/aiplatform_v1/types/__init__.py | 10 +- .../aiplatform_v1/types/accelerator_type.py | 2 +- .../cloud/aiplatform_v1/types/annotation.py | 2 +- .../aiplatform_v1/types/annotation_spec.py | 2 +- google/cloud/aiplatform_v1/types/artifact.py | 2 +- .../types/batch_prediction_job.py | 6 +- .../aiplatform_v1/types/completion_stats.py | 2 +- google/cloud/aiplatform_v1/types/context.py | 2 +- .../cloud/aiplatform_v1/types/custom_job.py | 2 +- google/cloud/aiplatform_v1/types/data_item.py | 2 +- .../aiplatform_v1/types/data_labeling_job.py | 2 +- google/cloud/aiplatform_v1/types/dataset.py | 9 +- .../aiplatform_v1/types/dataset_service.py | 20 +- .../aiplatform_v1/types/deployed_index_ref.py | 2 +- .../aiplatform_v1/types/deployed_model_ref.py | 2 +- .../aiplatform_v1/types/encryption_spec.py | 2 +- google/cloud/aiplatform_v1/types/endpoint.py | 2 +- .../aiplatform_v1/types/endpoint_service.py | 2 +- .../cloud/aiplatform_v1/types/entity_type.py | 2 +- google/cloud/aiplatform_v1/types/env_var.py | 2 +- .../types/evaluated_annotation.py | 2 +- google/cloud/aiplatform_v1/types/event.py | 2 +- google/cloud/aiplatform_v1/types/execution.py | 2 +- .../cloud/aiplatform_v1/types/explanation.py | 2 +- .../types/explanation_metadata.py | 13 +- google/cloud/aiplatform_v1/types/feature.py | 2 +- .../types/feature_monitoring_stats.py | 2 +- .../aiplatform_v1/types/feature_selector.py | 2 +- .../cloud/aiplatform_v1/types/featurestore.py | 2 +- .../types/featurestore_monitoring.py | 2 +- .../types/featurestore_online_service.py | 2 +- .../types/featurestore_service.py | 4 +- .../types/hyperparameter_tuning_job.py | 2 +- google/cloud/aiplatform_v1/types/index.py | 9 +- .../aiplatform_v1/types/index_endpoint.py | 2 +- .../types/index_endpoint_service.py | 2 +- .../aiplatform_v1/types/index_service.py | 2 +- google/cloud/aiplatform_v1/types/io.py | 2 +- .../cloud/aiplatform_v1/types/job_service.py | 2 +- google/cloud/aiplatform_v1/types/job_state.py | 6 +- .../aiplatform_v1/types/lineage_subgraph.py | 2 +- .../aiplatform_v1/types/machine_resources.py | 2 +- .../types/manual_batch_tuning_parameters.py | 2 +- .../aiplatform_v1/types/match_service.py | 2 +- .../aiplatform_v1/types/metadata_schema.py | 2 +- .../aiplatform_v1/types/metadata_service.py | 2 +- .../aiplatform_v1/types/metadata_store.py | 2 +- .../types/migratable_resource.py | 2 +- .../aiplatform_v1/types/migration_service.py | 2 +- google/cloud/aiplatform_v1/types/model.py | 6 +- .../types/model_deployment_monitoring_job.py | 2 +- .../aiplatform_v1/types/model_evaluation.py | 2 +- .../types/model_evaluation_slice.py | 2 +- .../types/model_garden_service.py | 2 +- .../aiplatform_v1/types/model_monitoring.py | 2 +- .../aiplatform_v1/types/model_service.py | 54 +- google/cloud/aiplatform_v1/types/nas_job.py | 4 +- google/cloud/aiplatform_v1/types/operation.py | 2 +- .../types/pipeline_failure_policy.py | 2 +- .../cloud/aiplatform_v1/types/pipeline_job.py | 40 +- .../aiplatform_v1/types/pipeline_service.py | 2 +- .../aiplatform_v1/types/pipeline_state.py | 2 +- .../aiplatform_v1/types/prediction_service.py | 2 +- .../aiplatform_v1/types/publisher_model.py | 2 +- .../cloud/aiplatform_v1/types/saved_query.py | 2 +- .../aiplatform_v1/types/service_networking.py | 2 +- .../aiplatform_v1/types/specialist_pool.py | 2 +- .../types/specialist_pool_service.py | 2 +- google/cloud/aiplatform_v1/types/study.py | 2 +- .../cloud/aiplatform_v1/types/tensorboard.py | 2 +- .../aiplatform_v1/types/tensorboard_data.py | 2 +- .../types/tensorboard_experiment.py | 2 +- .../aiplatform_v1/types/tensorboard_run.py | 2 +- .../types/tensorboard_service.py | 145 +- .../types/tensorboard_time_series.py | 2 +- .../aiplatform_v1/types/training_pipeline.py | 2 +- google/cloud/aiplatform_v1/types/types.py | 2 +- .../types/unmanaged_container_model.py | 2 +- .../types/user_action_reference.py | 2 +- google/cloud/aiplatform_v1/types/value.py | 2 +- .../aiplatform_v1/types/vizier_service.py | 2 +- google/cloud/aiplatform_v1beta1/__init__.py | 32 +- .../aiplatform_v1beta1/gapic_metadata.json | 74 + .../aiplatform_v1beta1/services/__init__.py | 2 +- .../services/dataset_service/__init__.py | 2 +- .../services/dataset_service/async_client.py | 133 +- .../services/dataset_service/client.py | 131 +- .../services/dataset_service/pagers.py | 2 +- .../dataset_service/transports/__init__.py | 2 +- .../dataset_service/transports/base.py | 16 +- .../dataset_service/transports/grpc.py | 32 +- .../transports/grpc_asyncio.py | 34 +- .../__init__.py | 2 +- .../async_client.py | 4 +- .../client.py | 2 +- .../pagers.py | 2 +- .../transports/__init__.py | 2 +- .../transports/base.py | 2 +- .../transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/endpoint_service/__init__.py | 2 +- .../services/endpoint_service/async_client.py | 4 +- .../services/endpoint_service/client.py | 2 +- .../services/endpoint_service/pagers.py | 2 +- .../endpoint_service/transports/__init__.py | 2 +- .../endpoint_service/transports/base.py | 2 +- .../endpoint_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../__init__.py | 2 +- .../async_client.py | 4 +- .../client.py | 2 +- .../transports/__init__.py | 2 +- .../transports/base.py | 2 +- .../transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/featurestore_service/__init__.py | 2 +- .../featurestore_service/async_client.py | 17 +- .../services/featurestore_service/client.py | 15 +- .../services/featurestore_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../featurestore_service/transports/base.py | 2 +- .../featurestore_service/transports/grpc.py | 13 +- .../transports/grpc_asyncio.py | 13 +- .../index_endpoint_service/__init__.py | 2 +- .../index_endpoint_service/async_client.py | 4 +- .../services/index_endpoint_service/client.py | 2 +- .../services/index_endpoint_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../index_endpoint_service/transports/base.py | 2 +- .../index_endpoint_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/index_service/__init__.py | 2 +- .../services/index_service/async_client.py | 4 +- .../services/index_service/client.py | 2 +- .../services/index_service/pagers.py | 2 +- .../index_service/transports/__init__.py | 2 +- .../services/index_service/transports/base.py | 2 +- .../services/index_service/transports/grpc.py | 2 +- .../index_service/transports/grpc_asyncio.py | 2 +- .../services/job_service/__init__.py | 2 +- .../services/job_service/async_client.py | 10 +- .../services/job_service/client.py | 26 +- .../services/job_service/pagers.py | 2 +- .../job_service/transports/__init__.py | 2 +- .../services/job_service/transports/base.py | 2 +- .../services/job_service/transports/grpc.py | 2 +- .../job_service/transports/grpc_asyncio.py | 2 +- .../services/match_service/__init__.py | 2 +- .../services/match_service/async_client.py | 4 +- .../services/match_service/client.py | 2 +- .../match_service/transports/__init__.py | 2 +- .../services/match_service/transports/base.py | 2 +- .../services/match_service/transports/grpc.py | 2 +- .../match_service/transports/grpc_asyncio.py | 2 +- .../services/metadata_service/__init__.py | 2 +- .../services/metadata_service/async_client.py | 4 +- .../services/metadata_service/client.py | 2 +- .../services/metadata_service/pagers.py | 2 +- .../metadata_service/transports/__init__.py | 2 +- .../metadata_service/transports/base.py | 2 +- .../metadata_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/migration_service/__init__.py | 2 +- .../migration_service/async_client.py | 4 +- .../services/migration_service/client.py | 20 +- .../services/migration_service/pagers.py | 2 +- .../migration_service/transports/__init__.py | 2 +- .../migration_service/transports/base.py | 2 +- .../migration_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/model_garden_service/__init__.py | 2 +- .../model_garden_service/async_client.py | 4 +- .../services/model_garden_service/client.py | 2 +- .../transports/__init__.py | 2 +- .../model_garden_service/transports/base.py | 2 +- .../model_garden_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/model_service/__init__.py | 2 +- .../services/model_service/async_client.py | 4 +- .../services/model_service/client.py | 2 +- .../services/model_service/pagers.py | 2 +- .../model_service/transports/__init__.py | 2 +- .../services/model_service/transports/base.py | 2 +- .../services/model_service/transports/grpc.py | 2 +- .../model_service/transports/grpc_asyncio.py | 2 +- .../persistent_resource_service/__init__.py | 22 + .../async_client.py | 1448 ++++++ .../persistent_resource_service/client.py | 1706 +++++++ .../persistent_resource_service/pagers.py | 168 + .../transports/__init__.py | 35 + .../transports/base.py | 309 ++ .../transports/grpc.py | 582 +++ .../transports/grpc_asyncio.py | 583 +++ .../services/pipeline_service/__init__.py | 2 +- .../services/pipeline_service/async_client.py | 4 +- .../services/pipeline_service/client.py | 2 +- .../services/pipeline_service/pagers.py | 2 +- .../pipeline_service/transports/__init__.py | 2 +- .../pipeline_service/transports/base.py | 2 +- .../pipeline_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/prediction_service/__init__.py | 2 +- .../prediction_service/async_client.py | 4 +- .../services/prediction_service/client.py | 2 +- .../prediction_service/transports/__init__.py | 2 +- .../prediction_service/transports/base.py | 2 +- .../prediction_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/schedule_service/__init__.py | 2 +- .../services/schedule_service/async_client.py | 4 +- .../services/schedule_service/client.py | 2 +- .../services/schedule_service/pagers.py | 2 +- .../schedule_service/transports/__init__.py | 2 +- .../schedule_service/transports/base.py | 2 +- .../schedule_service/transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../specialist_pool_service/__init__.py | 2 +- .../specialist_pool_service/async_client.py | 4 +- .../specialist_pool_service/client.py | 2 +- .../specialist_pool_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../transports/base.py | 2 +- .../transports/grpc.py | 2 +- .../transports/grpc_asyncio.py | 2 +- .../services/tensorboard_service/__init__.py | 2 +- .../tensorboard_service/async_client.py | 325 +- .../services/tensorboard_service/client.py | 323 +- .../services/tensorboard_service/pagers.py | 2 +- .../transports/__init__.py | 2 +- .../tensorboard_service/transports/base.py | 53 +- .../tensorboard_service/transports/grpc.py | 92 +- .../transports/grpc_asyncio.py | 92 +- .../services/vizier_service/__init__.py | 2 +- .../services/vizier_service/async_client.py | 4 +- .../services/vizier_service/client.py | 2 +- .../services/vizier_service/pagers.py | 2 +- .../vizier_service/transports/__init__.py | 2 +- .../vizier_service/transports/base.py | 2 +- .../vizier_service/transports/grpc.py | 2 +- .../vizier_service/transports/grpc_asyncio.py | 2 +- .../aiplatform_v1beta1/types/__init__.py | 32 +- .../types/accelerator_type.py | 2 +- .../aiplatform_v1beta1/types/annotation.py | 2 +- .../types/annotation_spec.py | 2 +- .../aiplatform_v1beta1/types/artifact.py | 2 +- .../types/batch_prediction_job.py | 6 +- .../types/completion_stats.py | 2 +- .../cloud/aiplatform_v1beta1/types/context.py | 2 +- .../aiplatform_v1beta1/types/custom_job.py | 16 +- .../aiplatform_v1beta1/types/data_item.py | 2 +- .../types/data_labeling_job.py | 2 +- .../cloud/aiplatform_v1beta1/types/dataset.py | 9 +- .../types/dataset_service.py | 20 +- .../types/deployed_index_ref.py | 2 +- .../types/deployed_model_ref.py | 2 +- .../types/deployment_resource_pool.py | 2 +- .../types/deployment_resource_pool_service.py | 2 +- .../types/encryption_spec.py | 2 +- .../aiplatform_v1beta1/types/endpoint.py | 2 +- .../types/endpoint_service.py | 2 +- .../aiplatform_v1beta1/types/entity_type.py | 2 +- .../cloud/aiplatform_v1beta1/types/env_var.py | 2 +- .../types/evaluated_annotation.py | 2 +- .../cloud/aiplatform_v1beta1/types/event.py | 2 +- .../aiplatform_v1beta1/types/execution.py | 2 +- .../aiplatform_v1beta1/types/explanation.py | 2 +- .../types/explanation_metadata.py | 13 +- .../cloud/aiplatform_v1beta1/types/feature.py | 2 +- .../types/feature_monitoring_stats.py | 2 +- .../types/feature_selector.py | 2 +- .../aiplatform_v1beta1/types/featurestore.py | 2 +- .../types/featurestore_monitoring.py | 2 +- .../types/featurestore_online_service.py | 2 +- .../types/featurestore_service.py | 4 +- .../types/hyperparameter_tuning_job.py | 2 +- .../cloud/aiplatform_v1beta1/types/index.py | 9 +- .../types/index_endpoint.py | 2 +- .../types/index_endpoint_service.py | 2 +- .../aiplatform_v1beta1/types/index_service.py | 2 +- google/cloud/aiplatform_v1beta1/types/io.py | 2 +- .../aiplatform_v1beta1/types/job_service.py | 2 +- .../aiplatform_v1beta1/types/job_state.py | 6 +- .../types/lineage_subgraph.py | 2 +- .../types/machine_resources.py | 2 +- .../types/manual_batch_tuning_parameters.py | 2 +- .../aiplatform_v1beta1/types/match_service.py | 2 +- .../types/metadata_schema.py | 2 +- .../types/metadata_service.py | 2 +- .../types/metadata_store.py | 2 +- .../types/migratable_resource.py | 2 +- .../types/migration_service.py | 2 +- .../cloud/aiplatform_v1beta1/types/model.py | 2 +- .../types/model_deployment_monitoring_job.py | 2 +- .../types/model_evaluation.py | 4 +- .../types/model_evaluation_slice.py | 2 +- .../types/model_garden_service.py | 2 +- .../types/model_monitoring.py | 2 +- .../aiplatform_v1beta1/types/model_service.py | 2 +- .../cloud/aiplatform_v1beta1/types/nas_job.py | 4 +- .../aiplatform_v1beta1/types/operation.py | 2 +- .../types/persistent_resource.py | 368 ++ .../types/persistent_resource_service.py | 187 + .../types/pipeline_failure_policy.py | 2 +- .../aiplatform_v1beta1/types/pipeline_job.py | 40 +- .../types/pipeline_service.py | 2 +- .../types/pipeline_state.py | 2 +- .../types/prediction_service.py | 2 +- .../types/publisher_model.py | 2 +- .../aiplatform_v1beta1/types/saved_query.py | 2 +- .../aiplatform_v1beta1/types/schedule.py | 2 +- .../types/schedule_service.py | 2 +- .../types/service_networking.py | 2 +- .../types/specialist_pool.py | 2 +- .../types/specialist_pool_service.py | 2 +- .../cloud/aiplatform_v1beta1/types/study.py | 2 +- .../aiplatform_v1beta1/types/tensorboard.py | 2 +- .../types/tensorboard_data.py | 2 +- .../types/tensorboard_experiment.py | 2 +- .../types/tensorboard_run.py | 2 +- .../types/tensorboard_service.py | 178 +- .../types/tensorboard_time_series.py | 2 +- .../types/training_pipeline.py | 2 +- .../cloud/aiplatform_v1beta1/types/types.py | 2 +- .../types/unmanaged_container_model.py | 2 +- .../types/user_action_reference.py | 2 +- .../cloud/aiplatform_v1beta1/types/value.py | 2 +- .../types/vizier_service.py | 2 +- ...ed_dataset_service_create_dataset_async.py | 2 +- ...ted_dataset_service_create_dataset_sync.py | 2 +- ...ed_dataset_service_delete_dataset_async.py | 2 +- ...ted_dataset_service_delete_dataset_sync.py | 2 +- ...ataset_service_delete_saved_query_async.py | 56 + ...dataset_service_delete_saved_query_sync.py | 56 + ...rated_dataset_service_export_data_async.py | 2 +- ...erated_dataset_service_export_data_sync.py | 2 +- ...taset_service_get_annotation_spec_async.py | 2 +- ...ataset_service_get_annotation_spec_sync.py | 2 +- ...rated_dataset_service_get_dataset_async.py | 2 +- ...erated_dataset_service_get_dataset_sync.py | 2 +- ...rated_dataset_service_import_data_async.py | 2 +- ...erated_dataset_service_import_data_sync.py | 2 +- ..._dataset_service_list_annotations_async.py | 2 +- ...d_dataset_service_list_annotations_sync.py | 2 +- ...d_dataset_service_list_data_items_async.py | 2 +- ...ed_dataset_service_list_data_items_sync.py | 2 +- ...ted_dataset_service_list_datasets_async.py | 2 +- ...ated_dataset_service_list_datasets_sync.py | 2 +- ...ataset_service_list_saved_queries_async.py | 2 +- ...dataset_service_list_saved_queries_sync.py | 2 +- ...dataset_service_search_data_items_async.py | 2 +- ..._dataset_service_search_data_items_sync.py | 2 +- ...ed_dataset_service_update_dataset_async.py | 2 +- ...ted_dataset_service_update_dataset_sync.py | 2 +- ..._endpoint_service_create_endpoint_async.py | 2 +- ...d_endpoint_service_create_endpoint_sync.py | 2 +- ..._endpoint_service_delete_endpoint_async.py | 2 +- ...d_endpoint_service_delete_endpoint_sync.py | 2 +- ...ted_endpoint_service_deploy_model_async.py | 2 +- ...ated_endpoint_service_deploy_model_sync.py | 2 +- ...ted_endpoint_service_get_endpoint_async.py | 2 +- ...ated_endpoint_service_get_endpoint_sync.py | 2 +- ...d_endpoint_service_list_endpoints_async.py | 2 +- ...ed_endpoint_service_list_endpoints_sync.py | 2 +- ...int_service_mutate_deployed_model_async.py | 2 +- ...oint_service_mutate_deployed_model_sync.py | 2 +- ...d_endpoint_service_undeploy_model_async.py | 2 +- ...ed_endpoint_service_undeploy_model_sync.py | 2 +- ..._endpoint_service_update_endpoint_async.py | 2 +- ...d_endpoint_service_update_endpoint_sync.py | 2 +- ...rving_service_read_feature_values_async.py | 2 +- ...erving_service_read_feature_values_sync.py | 2 +- ...ice_streaming_read_feature_values_async.py | 2 +- ...vice_streaming_read_feature_values_sync.py | 2 +- ...ving_service_write_feature_values_async.py | 2 +- ...rving_service_write_feature_values_sync.py | 2 +- ...ore_service_batch_create_features_async.py | 2 +- ...tore_service_batch_create_features_sync.py | 2 +- ...service_batch_read_feature_values_async.py | 2 +- ..._service_batch_read_feature_values_sync.py | 2 +- ...estore_service_create_entity_type_async.py | 2 +- ...restore_service_create_entity_type_sync.py | 2 +- ...aturestore_service_create_feature_async.py | 2 +- ...eaturestore_service_create_feature_sync.py | 2 +- ...store_service_create_featurestore_async.py | 2 +- ...estore_service_create_featurestore_sync.py | 2 +- ...estore_service_delete_entity_type_async.py | 2 +- ...restore_service_delete_entity_type_sync.py | 2 +- ...aturestore_service_delete_feature_async.py | 2 +- ...eaturestore_service_delete_feature_sync.py | 2 +- ...ore_service_delete_feature_values_async.py | 2 +- ...tore_service_delete_feature_values_sync.py | 2 +- ...store_service_delete_featurestore_async.py | 2 +- ...estore_service_delete_featurestore_sync.py | 2 +- ...ore_service_export_feature_values_async.py | 2 +- ...tore_service_export_feature_values_sync.py | 2 +- ...turestore_service_get_entity_type_async.py | 2 +- ...aturestore_service_get_entity_type_sync.py | 2 +- ..._featurestore_service_get_feature_async.py | 2 +- ...d_featurestore_service_get_feature_sync.py | 2 +- ...urestore_service_get_featurestore_async.py | 2 +- ...turestore_service_get_featurestore_sync.py | 2 +- ...ore_service_import_feature_values_async.py | 2 +- ...tore_service_import_feature_values_sync.py | 2 +- ...restore_service_list_entity_types_async.py | 2 +- ...urestore_service_list_entity_types_sync.py | 2 +- ...eaturestore_service_list_features_async.py | 2 +- ...featurestore_service_list_features_sync.py | 2 +- ...estore_service_list_featurestores_async.py | 2 +- ...restore_service_list_featurestores_sync.py | 2 +- ...turestore_service_search_features_async.py | 2 +- ...aturestore_service_search_features_sync.py | 2 +- ...estore_service_update_entity_type_async.py | 2 +- ...restore_service_update_entity_type_sync.py | 2 +- ...aturestore_service_update_feature_async.py | 2 +- ...eaturestore_service_update_feature_sync.py | 2 +- ...store_service_update_featurestore_async.py | 2 +- ...estore_service_update_featurestore_sync.py | 2 +- ...int_service_create_index_endpoint_async.py | 2 +- ...oint_service_create_index_endpoint_sync.py | 2 +- ...int_service_delete_index_endpoint_async.py | 2 +- ...oint_service_delete_index_endpoint_sync.py | 2 +- ...dex_endpoint_service_deploy_index_async.py | 2 +- ...ndex_endpoint_service_deploy_index_sync.py | 2 +- ...dpoint_service_get_index_endpoint_async.py | 2 +- ...ndpoint_service_get_index_endpoint_sync.py | 2 +- ...oint_service_list_index_endpoints_async.py | 2 +- ...point_service_list_index_endpoints_sync.py | 2 +- ...int_service_mutate_deployed_index_async.py | 2 +- ...oint_service_mutate_deployed_index_sync.py | 2 +- ...x_endpoint_service_undeploy_index_async.py | 2 +- ...ex_endpoint_service_undeploy_index_sync.py | 2 +- ...int_service_update_index_endpoint_async.py | 2 +- ...oint_service_update_index_endpoint_sync.py | 2 +- ...erated_index_service_create_index_async.py | 2 +- ...nerated_index_service_create_index_sync.py | 2 +- ...erated_index_service_delete_index_async.py | 2 +- ...nerated_index_service_delete_index_sync.py | 2 +- ...generated_index_service_get_index_async.py | 2 +- ..._generated_index_service_get_index_sync.py | 2 +- ...erated_index_service_list_indexes_async.py | 2 +- ...nerated_index_service_list_indexes_sync.py | 2 +- ...d_index_service_remove_datapoints_async.py | 2 +- ...ed_index_service_remove_datapoints_sync.py | 2 +- ...erated_index_service_update_index_async.py | 2 +- ...nerated_index_service_update_index_sync.py | 2 +- ...d_index_service_upsert_datapoints_async.py | 2 +- ...ed_index_service_upsert_datapoints_sync.py | 2 +- ...rvice_cancel_batch_prediction_job_async.py | 2 +- ...ervice_cancel_batch_prediction_job_sync.py | 2 +- ...ted_job_service_cancel_custom_job_async.py | 2 +- ...ated_job_service_cancel_custom_job_sync.py | 2 +- ..._service_cancel_data_labeling_job_async.py | 2 +- ...b_service_cancel_data_labeling_job_sync.py | 2 +- ..._cancel_hyperparameter_tuning_job_async.py | 2 +- ...e_cancel_hyperparameter_tuning_job_sync.py | 2 +- ...erated_job_service_cancel_nas_job_async.py | 2 +- ...nerated_job_service_cancel_nas_job_sync.py | 2 +- ...rvice_create_batch_prediction_job_async.py | 2 +- ...ervice_create_batch_prediction_job_sync.py | 2 +- ...ted_job_service_create_custom_job_async.py | 2 +- ...ated_job_service_create_custom_job_sync.py | 2 +- ..._service_create_data_labeling_job_async.py | 2 +- ...b_service_create_data_labeling_job_sync.py | 2 +- ..._create_hyperparameter_tuning_job_async.py | 2 +- ...e_create_hyperparameter_tuning_job_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...te_model_deployment_monitoring_job_sync.py | 2 +- ...erated_job_service_create_nas_job_async.py | 2 +- ...nerated_job_service_create_nas_job_sync.py | 2 +- ...rvice_delete_batch_prediction_job_async.py | 2 +- ...ervice_delete_batch_prediction_job_sync.py | 2 +- ...ted_job_service_delete_custom_job_async.py | 2 +- ...ated_job_service_delete_custom_job_sync.py | 2 +- ..._service_delete_data_labeling_job_async.py | 2 +- ...b_service_delete_data_labeling_job_sync.py | 2 +- ..._delete_hyperparameter_tuning_job_async.py | 2 +- ...e_delete_hyperparameter_tuning_job_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...te_model_deployment_monitoring_job_sync.py | 2 +- ...erated_job_service_delete_nas_job_async.py | 2 +- ...nerated_job_service_delete_nas_job_sync.py | 2 +- ..._service_get_batch_prediction_job_async.py | 2 +- ...b_service_get_batch_prediction_job_sync.py | 2 +- ...erated_job_service_get_custom_job_async.py | 2 +- ...nerated_job_service_get_custom_job_sync.py | 2 +- ...job_service_get_data_labeling_job_async.py | 2 +- ..._job_service_get_data_labeling_job_sync.py | 2 +- ...ice_get_hyperparameter_tuning_job_async.py | 2 +- ...vice_get_hyperparameter_tuning_job_sync.py | 2 +- ...t_model_deployment_monitoring_job_async.py | 2 +- ...et_model_deployment_monitoring_job_sync.py | 2 +- ...generated_job_service_get_nas_job_async.py | 2 +- ..._generated_job_service_get_nas_job_sync.py | 2 +- ..._job_service_get_nas_trial_detail_async.py | 2 +- ...d_job_service_get_nas_trial_detail_sync.py | 2 +- ...ervice_list_batch_prediction_jobs_async.py | 2 +- ...service_list_batch_prediction_jobs_sync.py | 2 +- ...ated_job_service_list_custom_jobs_async.py | 2 +- ...rated_job_service_list_custom_jobs_sync.py | 2 +- ...b_service_list_data_labeling_jobs_async.py | 2 +- ...ob_service_list_data_labeling_jobs_sync.py | 2 +- ...e_list_hyperparameter_tuning_jobs_async.py | 2 +- ...ce_list_hyperparameter_tuning_jobs_sync.py | 2 +- ..._model_deployment_monitoring_jobs_async.py | 2 +- ...t_model_deployment_monitoring_jobs_sync.py | 2 +- ...nerated_job_service_list_nas_jobs_async.py | 2 +- ...enerated_job_service_list_nas_jobs_sync.py | 2 +- ...ob_service_list_nas_trial_details_async.py | 2 +- ...job_service_list_nas_trial_details_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...se_model_deployment_monitoring_job_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...me_model_deployment_monitoring_job_sync.py | 2 +- ...oyment_monitoring_stats_anomalies_async.py | 2 +- ...loyment_monitoring_stats_anomalies_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...te_model_deployment_monitoring_job_sync.py | 2 +- ...ated_match_service_find_neighbors_async.py | 2 +- ...rated_match_service_find_neighbors_sync.py | 2 +- ...tch_service_read_index_datapoints_async.py | 2 +- ...atch_service_read_index_datapoints_sync.py | 2 +- ..._context_artifacts_and_executions_async.py | 2 +- ...d_context_artifacts_and_executions_sync.py | 2 +- ...data_service_add_context_children_async.py | 2 +- ...adata_service_add_context_children_sync.py | 2 +- ...data_service_add_execution_events_async.py | 2 +- ...adata_service_add_execution_events_sync.py | 2 +- ..._metadata_service_create_artifact_async.py | 2 +- ...d_metadata_service_create_artifact_sync.py | 2 +- ...d_metadata_service_create_context_async.py | 2 +- ...ed_metadata_service_create_context_sync.py | 2 +- ...metadata_service_create_execution_async.py | 2 +- ..._metadata_service_create_execution_sync.py | 2 +- ...ta_service_create_metadata_schema_async.py | 2 +- ...ata_service_create_metadata_schema_sync.py | 2 +- ...ata_service_create_metadata_store_async.py | 2 +- ...data_service_create_metadata_store_sync.py | 2 +- ..._metadata_service_delete_artifact_async.py | 2 +- ...d_metadata_service_delete_artifact_sync.py | 2 +- ...d_metadata_service_delete_context_async.py | 2 +- ...ed_metadata_service_delete_context_sync.py | 2 +- ...metadata_service_delete_execution_async.py | 2 +- ..._metadata_service_delete_execution_sync.py | 2 +- ...ata_service_delete_metadata_store_async.py | 2 +- ...data_service_delete_metadata_store_sync.py | 2 +- ...ted_metadata_service_get_artifact_async.py | 2 +- ...ated_metadata_service_get_artifact_sync.py | 2 +- ...ated_metadata_service_get_context_async.py | 2 +- ...rated_metadata_service_get_context_sync.py | 2 +- ...ed_metadata_service_get_execution_async.py | 2 +- ...ted_metadata_service_get_execution_sync.py | 2 +- ...adata_service_get_metadata_schema_async.py | 2 +- ...tadata_service_get_metadata_schema_sync.py | 2 +- ...tadata_service_get_metadata_store_async.py | 2 +- ...etadata_service_get_metadata_store_sync.py | 2 +- ...d_metadata_service_list_artifacts_async.py | 2 +- ...ed_metadata_service_list_artifacts_sync.py | 2 +- ...ed_metadata_service_list_contexts_async.py | 2 +- ...ted_metadata_service_list_contexts_sync.py | 2 +- ..._metadata_service_list_executions_async.py | 2 +- ...d_metadata_service_list_executions_sync.py | 2 +- ...ata_service_list_metadata_schemas_async.py | 2 +- ...data_service_list_metadata_schemas_sync.py | 2 +- ...data_service_list_metadata_stores_async.py | 2 +- ...adata_service_list_metadata_stores_sync.py | 2 +- ..._metadata_service_purge_artifacts_async.py | 2 +- ...d_metadata_service_purge_artifacts_sync.py | 2 +- ...d_metadata_service_purge_contexts_async.py | 2 +- ...ed_metadata_service_purge_contexts_sync.py | 2 +- ...metadata_service_purge_executions_async.py | 2 +- ..._metadata_service_purge_executions_sync.py | 2 +- ...e_query_artifact_lineage_subgraph_async.py | 2 +- ...ce_query_artifact_lineage_subgraph_sync.py | 2 +- ...ce_query_context_lineage_subgraph_async.py | 2 +- ...ice_query_context_lineage_subgraph_sync.py | 2 +- ...uery_execution_inputs_and_outputs_async.py | 2 +- ...query_execution_inputs_and_outputs_sync.py | 2 +- ...a_service_remove_context_children_async.py | 2 +- ...ta_service_remove_context_children_sync.py | 2 +- ..._metadata_service_update_artifact_async.py | 2 +- ...d_metadata_service_update_artifact_sync.py | 2 +- ...d_metadata_service_update_context_async.py | 2 +- ...ed_metadata_service_update_context_sync.py | 2 +- ...metadata_service_update_execution_async.py | 2 +- ..._metadata_service_update_execution_sync.py | 2 +- ...n_service_batch_migrate_resources_async.py | 2 +- ...on_service_batch_migrate_resources_sync.py | 2 +- ...rvice_search_migratable_resources_async.py | 2 +- ...ervice_search_migratable_resources_sync.py | 2 +- ...arden_service_get_publisher_model_async.py | 2 +- ...garden_service_get_publisher_model_sync.py | 2 +- ...atch_import_evaluated_annotations_async.py | 2 +- ...batch_import_evaluated_annotations_sync.py | 2 +- ...ch_import_model_evaluation_slices_async.py | 2 +- ...tch_import_model_evaluation_slices_sync.py | 2 +- ...enerated_model_service_copy_model_async.py | 2 +- ...generated_model_service_copy_model_sync.py | 2 +- ...erated_model_service_delete_model_async.py | 2 +- ...nerated_model_service_delete_model_sync.py | 2 +- ...odel_service_delete_model_version_async.py | 2 +- ...model_service_delete_model_version_sync.py | 2 +- ...erated_model_service_export_model_async.py | 2 +- ...nerated_model_service_export_model_sync.py | 2 +- ...generated_model_service_get_model_async.py | 2 +- ...odel_service_get_model_evaluation_async.py | 2 +- ...ervice_get_model_evaluation_slice_async.py | 2 +- ...service_get_model_evaluation_slice_sync.py | 2 +- ...model_service_get_model_evaluation_sync.py | 2 +- ..._generated_model_service_get_model_sync.py | 2 +- ...l_service_import_model_evaluation_async.py | 2 +- ...el_service_import_model_evaluation_sync.py | 2 +- ...vice_list_model_evaluation_slices_async.py | 2 +- ...rvice_list_model_evaluation_slices_sync.py | 2 +- ...el_service_list_model_evaluations_async.py | 2 +- ...del_service_list_model_evaluations_sync.py | 2 +- ...model_service_list_model_versions_async.py | 2 +- ..._model_service_list_model_versions_sync.py | 2 +- ...nerated_model_service_list_models_async.py | 2 +- ...enerated_model_service_list_models_sync.py | 2 +- ...del_service_merge_version_aliases_async.py | 2 +- ...odel_service_merge_version_aliases_sync.py | 2 +- ...ervice_update_explanation_dataset_async.py | 56 + ...service_update_explanation_dataset_sync.py | 56 + ...erated_model_service_update_model_async.py | 2 +- ...nerated_model_service_update_model_sync.py | 2 +- ...erated_model_service_upload_model_async.py | 2 +- ...nerated_model_service_upload_model_sync.py | 2 +- ...eline_service_cancel_pipeline_job_async.py | 2 +- ...peline_service_cancel_pipeline_job_sync.py | 2 +- ..._service_cancel_training_pipeline_async.py | 2 +- ...e_service_cancel_training_pipeline_sync.py | 2 +- ...eline_service_create_pipeline_job_async.py | 2 +- ...peline_service_create_pipeline_job_sync.py | 2 +- ..._service_create_training_pipeline_async.py | 2 +- ...e_service_create_training_pipeline_sync.py | 2 +- ...eline_service_delete_pipeline_job_async.py | 2 +- ...peline_service_delete_pipeline_job_sync.py | 2 +- ..._service_delete_training_pipeline_async.py | 2 +- ...e_service_delete_training_pipeline_sync.py | 2 +- ...pipeline_service_get_pipeline_job_async.py | 2 +- ..._pipeline_service_get_pipeline_job_sync.py | 2 +- ...ine_service_get_training_pipeline_async.py | 2 +- ...line_service_get_training_pipeline_sync.py | 2 +- ...peline_service_list_pipeline_jobs_async.py | 2 +- ...ipeline_service_list_pipeline_jobs_sync.py | 2 +- ...e_service_list_training_pipelines_async.py | 2 +- ...ne_service_list_training_pipelines_sync.py | 2 +- ...erated_prediction_service_explain_async.py | 2 +- ...nerated_prediction_service_explain_sync.py | 2 +- ...erated_prediction_service_predict_async.py | 2 +- ...nerated_prediction_service_predict_sync.py | 2 +- ...ed_prediction_service_raw_predict_async.py | 2 +- ...ted_prediction_service_raw_predict_sync.py | 2 +- ...ol_service_create_specialist_pool_async.py | 2 +- ...ool_service_create_specialist_pool_sync.py | 2 +- ...ol_service_delete_specialist_pool_async.py | 2 +- ...ool_service_delete_specialist_pool_sync.py | 2 +- ..._pool_service_get_specialist_pool_async.py | 2 +- ...t_pool_service_get_specialist_pool_sync.py | 2 +- ...ool_service_list_specialist_pools_async.py | 2 +- ...pool_service_list_specialist_pools_sync.py | 2 +- ...ol_service_update_specialist_pool_async.py | 2 +- ...ool_service_update_specialist_pool_sync.py | 2 +- ...ice_batch_create_tensorboard_runs_async.py | 2 +- ...vice_batch_create_tensorboard_runs_sync.py | 2 +- ...ch_create_tensorboard_time_series_async.py | 2 +- ...tch_create_tensorboard_time_series_sync.py | 2 +- ...read_tensorboard_time_series_data_async.py | 2 +- ..._read_tensorboard_time_series_data_sync.py | 2 +- ...rboard_service_create_tensorboard_async.py | 2 +- ...ice_create_tensorboard_experiment_async.py | 2 +- ...vice_create_tensorboard_experiment_sync.py | 2 +- ...rd_service_create_tensorboard_run_async.py | 2 +- ...ard_service_create_tensorboard_run_sync.py | 2 +- ...orboard_service_create_tensorboard_sync.py | 2 +- ...ce_create_tensorboard_time_series_async.py | 2 +- ...ice_create_tensorboard_time_series_sync.py | 2 +- ...rboard_service_delete_tensorboard_async.py | 2 +- ...ice_delete_tensorboard_experiment_async.py | 2 +- ...vice_delete_tensorboard_experiment_sync.py | 2 +- ...rd_service_delete_tensorboard_run_async.py | 2 +- ...ard_service_delete_tensorboard_run_sync.py | 2 +- ...orboard_service_delete_tensorboard_sync.py | 2 +- ...ce_delete_tensorboard_time_series_async.py | 2 +- ...ice_delete_tensorboard_time_series_sync.py | 2 +- ...port_tensorboard_time_series_data_async.py | 2 +- ...xport_tensorboard_time_series_data_sync.py | 2 +- ...nsorboard_service_get_tensorboard_async.py | 2 +- ...ervice_get_tensorboard_experiment_async.py | 2 +- ...service_get_tensorboard_experiment_sync.py | 2 +- ...board_service_get_tensorboard_run_async.py | 2 +- ...rboard_service_get_tensorboard_run_sync.py | 2 +- ...ensorboard_service_get_tensorboard_sync.py | 2 +- ...rvice_get_tensorboard_time_series_async.py | 2 +- ...ervice_get_tensorboard_time_series_sync.py | 2 +- ...vice_list_tensorboard_experiments_async.py | 2 +- ...rvice_list_tensorboard_experiments_sync.py | 2 +- ...ard_service_list_tensorboard_runs_async.py | 2 +- ...oard_service_list_tensorboard_runs_sync.py | 2 +- ...vice_list_tensorboard_time_series_async.py | 2 +- ...rvice_list_tensorboard_time_series_sync.py | 2 +- ...orboard_service_list_tensorboards_async.py | 2 +- ...sorboard_service_list_tensorboards_sync.py | 2 +- ...ervice_read_tensorboard_blob_data_async.py | 2 +- ...service_read_tensorboard_blob_data_sync.py | 2 +- ...read_tensorboard_time_series_data_async.py | 2 +- ..._read_tensorboard_time_series_data_sync.py | 2 +- ...rd_service_read_tensorboard_usage_async.py | 2 +- ...ard_service_read_tensorboard_usage_sync.py | 2 +- ...rboard_service_update_tensorboard_async.py | 2 +- ...ice_update_tensorboard_experiment_async.py | 2 +- ...vice_update_tensorboard_experiment_sync.py | 2 +- ...rd_service_update_tensorboard_run_async.py | 2 +- ...ard_service_update_tensorboard_run_sync.py | 2 +- ...orboard_service_update_tensorboard_sync.py | 2 +- ...ce_update_tensorboard_time_series_async.py | 2 +- ...ice_update_tensorboard_time_series_sync.py | 2 +- ...write_tensorboard_experiment_data_async.py | 2 +- ..._write_tensorboard_experiment_data_sync.py | 2 +- ...ervice_write_tensorboard_run_data_async.py | 2 +- ...service_write_tensorboard_run_data_sync.py | 2 +- ...ier_service_add_trial_measurement_async.py | 2 +- ...zier_service_add_trial_measurement_sync.py | 2 +- ..._check_trial_early_stopping_state_async.py | 2 +- ...e_check_trial_early_stopping_state_sync.py | 2 +- ...ted_vizier_service_complete_trial_async.py | 2 +- ...ated_vizier_service_complete_trial_sync.py | 2 +- ...rated_vizier_service_create_study_async.py | 2 +- ...erated_vizier_service_create_study_sync.py | 2 +- ...rated_vizier_service_create_trial_async.py | 2 +- ...erated_vizier_service_create_trial_sync.py | 2 +- ...rated_vizier_service_delete_study_async.py | 2 +- ...erated_vizier_service_delete_study_sync.py | 2 +- ...rated_vizier_service_delete_trial_async.py | 2 +- ...erated_vizier_service_delete_trial_sync.py | 2 +- ...enerated_vizier_service_get_study_async.py | 2 +- ...generated_vizier_service_get_study_sync.py | 2 +- ...enerated_vizier_service_get_trial_async.py | 2 +- ...generated_vizier_service_get_trial_sync.py | 2 +- ...izier_service_list_optimal_trials_async.py | 2 +- ...vizier_service_list_optimal_trials_sync.py | 2 +- ...rated_vizier_service_list_studies_async.py | 2 +- ...erated_vizier_service_list_studies_sync.py | 2 +- ...erated_vizier_service_list_trials_async.py | 2 +- ...nerated_vizier_service_list_trials_sync.py | 2 +- ...rated_vizier_service_lookup_study_async.py | 2 +- ...erated_vizier_service_lookup_study_sync.py | 2 +- ...nerated_vizier_service_stop_trial_async.py | 2 +- ...enerated_vizier_service_stop_trial_sync.py | 2 +- ...ted_vizier_service_suggest_trials_async.py | 2 +- ...ated_vizier_service_suggest_trials_sync.py | 2 +- ...ed_dataset_service_create_dataset_async.py | 2 +- ...ted_dataset_service_create_dataset_sync.py | 2 +- ...ed_dataset_service_delete_dataset_async.py | 2 +- ...ted_dataset_service_delete_dataset_sync.py | 2 +- ...ataset_service_delete_saved_query_async.py | 56 + ...dataset_service_delete_saved_query_sync.py | 56 + ...rated_dataset_service_export_data_async.py | 2 +- ...erated_dataset_service_export_data_sync.py | 2 +- ...taset_service_get_annotation_spec_async.py | 2 +- ...ataset_service_get_annotation_spec_sync.py | 2 +- ...rated_dataset_service_get_dataset_async.py | 2 +- ...erated_dataset_service_get_dataset_sync.py | 2 +- ...rated_dataset_service_import_data_async.py | 2 +- ...erated_dataset_service_import_data_sync.py | 2 +- ..._dataset_service_list_annotations_async.py | 2 +- ...d_dataset_service_list_annotations_sync.py | 2 +- ...d_dataset_service_list_data_items_async.py | 2 +- ...ed_dataset_service_list_data_items_sync.py | 2 +- ...ted_dataset_service_list_datasets_async.py | 2 +- ...ated_dataset_service_list_datasets_sync.py | 2 +- ...ataset_service_list_saved_queries_async.py | 2 +- ...dataset_service_list_saved_queries_sync.py | 2 +- ...dataset_service_search_data_items_async.py | 2 +- ..._dataset_service_search_data_items_sync.py | 2 +- ...ed_dataset_service_update_dataset_async.py | 2 +- ...ted_dataset_service_update_dataset_sync.py | 2 +- ...e_create_deployment_resource_pool_async.py | 2 +- ...ce_create_deployment_resource_pool_sync.py | 2 +- ...e_delete_deployment_resource_pool_async.py | 2 +- ...ce_delete_deployment_resource_pool_sync.py | 2 +- ...vice_get_deployment_resource_pool_async.py | 2 +- ...rvice_get_deployment_resource_pool_sync.py | 2 +- ...ce_list_deployment_resource_pools_async.py | 2 +- ...ice_list_deployment_resource_pools_sync.py | 2 +- ...ool_service_query_deployed_models_async.py | 2 +- ...pool_service_query_deployed_models_sync.py | 2 +- ..._endpoint_service_create_endpoint_async.py | 2 +- ...d_endpoint_service_create_endpoint_sync.py | 2 +- ..._endpoint_service_delete_endpoint_async.py | 2 +- ...d_endpoint_service_delete_endpoint_sync.py | 2 +- ...ted_endpoint_service_deploy_model_async.py | 2 +- ...ated_endpoint_service_deploy_model_sync.py | 2 +- ...ted_endpoint_service_get_endpoint_async.py | 2 +- ...ated_endpoint_service_get_endpoint_sync.py | 2 +- ...d_endpoint_service_list_endpoints_async.py | 2 +- ...ed_endpoint_service_list_endpoints_sync.py | 2 +- ...int_service_mutate_deployed_model_async.py | 2 +- ...oint_service_mutate_deployed_model_sync.py | 2 +- ...d_endpoint_service_undeploy_model_async.py | 2 +- ...ed_endpoint_service_undeploy_model_sync.py | 2 +- ..._endpoint_service_update_endpoint_async.py | 2 +- ...d_endpoint_service_update_endpoint_sync.py | 2 +- ...rving_service_read_feature_values_async.py | 2 +- ...erving_service_read_feature_values_sync.py | 2 +- ...ice_streaming_read_feature_values_async.py | 2 +- ...vice_streaming_read_feature_values_sync.py | 2 +- ...ving_service_write_feature_values_async.py | 2 +- ...rving_service_write_feature_values_sync.py | 2 +- ...ore_service_batch_create_features_async.py | 2 +- ...tore_service_batch_create_features_sync.py | 2 +- ...service_batch_read_feature_values_async.py | 2 +- ..._service_batch_read_feature_values_sync.py | 2 +- ...estore_service_create_entity_type_async.py | 2 +- ...restore_service_create_entity_type_sync.py | 2 +- ...aturestore_service_create_feature_async.py | 2 +- ...eaturestore_service_create_feature_sync.py | 2 +- ...store_service_create_featurestore_async.py | 2 +- ...estore_service_create_featurestore_sync.py | 2 +- ...estore_service_delete_entity_type_async.py | 2 +- ...restore_service_delete_entity_type_sync.py | 2 +- ...aturestore_service_delete_feature_async.py | 2 +- ...eaturestore_service_delete_feature_sync.py | 2 +- ...ore_service_delete_feature_values_async.py | 2 +- ...tore_service_delete_feature_values_sync.py | 2 +- ...store_service_delete_featurestore_async.py | 2 +- ...estore_service_delete_featurestore_sync.py | 2 +- ...ore_service_export_feature_values_async.py | 2 +- ...tore_service_export_feature_values_sync.py | 2 +- ...turestore_service_get_entity_type_async.py | 2 +- ...aturestore_service_get_entity_type_sync.py | 2 +- ..._featurestore_service_get_feature_async.py | 2 +- ...d_featurestore_service_get_feature_sync.py | 2 +- ...urestore_service_get_featurestore_async.py | 2 +- ...turestore_service_get_featurestore_sync.py | 2 +- ...ore_service_import_feature_values_async.py | 2 +- ...tore_service_import_feature_values_sync.py | 2 +- ...restore_service_list_entity_types_async.py | 2 +- ...urestore_service_list_entity_types_sync.py | 2 +- ...eaturestore_service_list_features_async.py | 2 +- ...featurestore_service_list_features_sync.py | 2 +- ...estore_service_list_featurestores_async.py | 2 +- ...restore_service_list_featurestores_sync.py | 2 +- ...turestore_service_search_features_async.py | 2 +- ...aturestore_service_search_features_sync.py | 2 +- ...estore_service_update_entity_type_async.py | 2 +- ...restore_service_update_entity_type_sync.py | 2 +- ...aturestore_service_update_feature_async.py | 2 +- ...eaturestore_service_update_feature_sync.py | 2 +- ...store_service_update_featurestore_async.py | 2 +- ...estore_service_update_featurestore_sync.py | 2 +- ...int_service_create_index_endpoint_async.py | 2 +- ...oint_service_create_index_endpoint_sync.py | 2 +- ...int_service_delete_index_endpoint_async.py | 2 +- ...oint_service_delete_index_endpoint_sync.py | 2 +- ...dex_endpoint_service_deploy_index_async.py | 2 +- ...ndex_endpoint_service_deploy_index_sync.py | 2 +- ...dpoint_service_get_index_endpoint_async.py | 2 +- ...ndpoint_service_get_index_endpoint_sync.py | 2 +- ...oint_service_list_index_endpoints_async.py | 2 +- ...point_service_list_index_endpoints_sync.py | 2 +- ...int_service_mutate_deployed_index_async.py | 2 +- ...oint_service_mutate_deployed_index_sync.py | 2 +- ...x_endpoint_service_undeploy_index_async.py | 2 +- ...ex_endpoint_service_undeploy_index_sync.py | 2 +- ...int_service_update_index_endpoint_async.py | 2 +- ...oint_service_update_index_endpoint_sync.py | 2 +- ...erated_index_service_create_index_async.py | 2 +- ...nerated_index_service_create_index_sync.py | 2 +- ...erated_index_service_delete_index_async.py | 2 +- ...nerated_index_service_delete_index_sync.py | 2 +- ...generated_index_service_get_index_async.py | 2 +- ..._generated_index_service_get_index_sync.py | 2 +- ...erated_index_service_list_indexes_async.py | 2 +- ...nerated_index_service_list_indexes_sync.py | 2 +- ...d_index_service_remove_datapoints_async.py | 2 +- ...ed_index_service_remove_datapoints_sync.py | 2 +- ...erated_index_service_update_index_async.py | 2 +- ...nerated_index_service_update_index_sync.py | 2 +- ...d_index_service_upsert_datapoints_async.py | 2 +- ...ed_index_service_upsert_datapoints_sync.py | 2 +- ...rvice_cancel_batch_prediction_job_async.py | 2 +- ...ervice_cancel_batch_prediction_job_sync.py | 2 +- ...ted_job_service_cancel_custom_job_async.py | 2 +- ...ated_job_service_cancel_custom_job_sync.py | 2 +- ..._service_cancel_data_labeling_job_async.py | 2 +- ...b_service_cancel_data_labeling_job_sync.py | 2 +- ..._cancel_hyperparameter_tuning_job_async.py | 2 +- ...e_cancel_hyperparameter_tuning_job_sync.py | 2 +- ...erated_job_service_cancel_nas_job_async.py | 2 +- ...nerated_job_service_cancel_nas_job_sync.py | 2 +- ...rvice_create_batch_prediction_job_async.py | 2 +- ...ervice_create_batch_prediction_job_sync.py | 2 +- ...ted_job_service_create_custom_job_async.py | 2 +- ...ated_job_service_create_custom_job_sync.py | 2 +- ..._service_create_data_labeling_job_async.py | 2 +- ...b_service_create_data_labeling_job_sync.py | 2 +- ..._create_hyperparameter_tuning_job_async.py | 2 +- ...e_create_hyperparameter_tuning_job_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...te_model_deployment_monitoring_job_sync.py | 2 +- ...erated_job_service_create_nas_job_async.py | 2 +- ...nerated_job_service_create_nas_job_sync.py | 2 +- ...rvice_delete_batch_prediction_job_async.py | 2 +- ...ervice_delete_batch_prediction_job_sync.py | 2 +- ...ted_job_service_delete_custom_job_async.py | 2 +- ...ated_job_service_delete_custom_job_sync.py | 2 +- ..._service_delete_data_labeling_job_async.py | 2 +- ...b_service_delete_data_labeling_job_sync.py | 2 +- ..._delete_hyperparameter_tuning_job_async.py | 2 +- ...e_delete_hyperparameter_tuning_job_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...te_model_deployment_monitoring_job_sync.py | 2 +- ...erated_job_service_delete_nas_job_async.py | 2 +- ...nerated_job_service_delete_nas_job_sync.py | 2 +- ..._service_get_batch_prediction_job_async.py | 2 +- ...b_service_get_batch_prediction_job_sync.py | 2 +- ...erated_job_service_get_custom_job_async.py | 2 +- ...nerated_job_service_get_custom_job_sync.py | 2 +- ...job_service_get_data_labeling_job_async.py | 2 +- ..._job_service_get_data_labeling_job_sync.py | 2 +- ...ice_get_hyperparameter_tuning_job_async.py | 2 +- ...vice_get_hyperparameter_tuning_job_sync.py | 2 +- ...t_model_deployment_monitoring_job_async.py | 2 +- ...et_model_deployment_monitoring_job_sync.py | 2 +- ...generated_job_service_get_nas_job_async.py | 2 +- ..._generated_job_service_get_nas_job_sync.py | 2 +- ..._job_service_get_nas_trial_detail_async.py | 2 +- ...d_job_service_get_nas_trial_detail_sync.py | 2 +- ...ervice_list_batch_prediction_jobs_async.py | 2 +- ...service_list_batch_prediction_jobs_sync.py | 2 +- ...ated_job_service_list_custom_jobs_async.py | 2 +- ...rated_job_service_list_custom_jobs_sync.py | 2 +- ...b_service_list_data_labeling_jobs_async.py | 2 +- ...ob_service_list_data_labeling_jobs_sync.py | 2 +- ...e_list_hyperparameter_tuning_jobs_async.py | 2 +- ...ce_list_hyperparameter_tuning_jobs_sync.py | 2 +- ..._model_deployment_monitoring_jobs_async.py | 2 +- ...t_model_deployment_monitoring_jobs_sync.py | 2 +- ...nerated_job_service_list_nas_jobs_async.py | 2 +- ...enerated_job_service_list_nas_jobs_sync.py | 2 +- ...ob_service_list_nas_trial_details_async.py | 2 +- ...job_service_list_nas_trial_details_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...se_model_deployment_monitoring_job_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...me_model_deployment_monitoring_job_sync.py | 2 +- ...oyment_monitoring_stats_anomalies_async.py | 2 +- ...loyment_monitoring_stats_anomalies_sync.py | 2 +- ...e_model_deployment_monitoring_job_async.py | 2 +- ...te_model_deployment_monitoring_job_sync.py | 2 +- ...ated_match_service_find_neighbors_async.py | 2 +- ...rated_match_service_find_neighbors_sync.py | 2 +- ...tch_service_read_index_datapoints_async.py | 2 +- ...atch_service_read_index_datapoints_sync.py | 2 +- ..._context_artifacts_and_executions_async.py | 2 +- ...d_context_artifacts_and_executions_sync.py | 2 +- ...data_service_add_context_children_async.py | 2 +- ...adata_service_add_context_children_sync.py | 2 +- ...data_service_add_execution_events_async.py | 2 +- ...adata_service_add_execution_events_sync.py | 2 +- ..._metadata_service_create_artifact_async.py | 2 +- ...d_metadata_service_create_artifact_sync.py | 2 +- ...d_metadata_service_create_context_async.py | 2 +- ...ed_metadata_service_create_context_sync.py | 2 +- ...metadata_service_create_execution_async.py | 2 +- ..._metadata_service_create_execution_sync.py | 2 +- ...ta_service_create_metadata_schema_async.py | 2 +- ...ata_service_create_metadata_schema_sync.py | 2 +- ...ata_service_create_metadata_store_async.py | 2 +- ...data_service_create_metadata_store_sync.py | 2 +- ..._metadata_service_delete_artifact_async.py | 2 +- ...d_metadata_service_delete_artifact_sync.py | 2 +- ...d_metadata_service_delete_context_async.py | 2 +- ...ed_metadata_service_delete_context_sync.py | 2 +- ...metadata_service_delete_execution_async.py | 2 +- ..._metadata_service_delete_execution_sync.py | 2 +- ...ata_service_delete_metadata_store_async.py | 2 +- ...data_service_delete_metadata_store_sync.py | 2 +- ...ted_metadata_service_get_artifact_async.py | 2 +- ...ated_metadata_service_get_artifact_sync.py | 2 +- ...ated_metadata_service_get_context_async.py | 2 +- ...rated_metadata_service_get_context_sync.py | 2 +- ...ed_metadata_service_get_execution_async.py | 2 +- ...ted_metadata_service_get_execution_sync.py | 2 +- ...adata_service_get_metadata_schema_async.py | 2 +- ...tadata_service_get_metadata_schema_sync.py | 2 +- ...tadata_service_get_metadata_store_async.py | 2 +- ...etadata_service_get_metadata_store_sync.py | 2 +- ...d_metadata_service_list_artifacts_async.py | 2 +- ...ed_metadata_service_list_artifacts_sync.py | 2 +- ...ed_metadata_service_list_contexts_async.py | 2 +- ...ted_metadata_service_list_contexts_sync.py | 2 +- ..._metadata_service_list_executions_async.py | 2 +- ...d_metadata_service_list_executions_sync.py | 2 +- ...ata_service_list_metadata_schemas_async.py | 2 +- ...data_service_list_metadata_schemas_sync.py | 2 +- ...data_service_list_metadata_stores_async.py | 2 +- ...adata_service_list_metadata_stores_sync.py | 2 +- ..._metadata_service_purge_artifacts_async.py | 2 +- ...d_metadata_service_purge_artifacts_sync.py | 2 +- ...d_metadata_service_purge_contexts_async.py | 2 +- ...ed_metadata_service_purge_contexts_sync.py | 2 +- ...metadata_service_purge_executions_async.py | 2 +- ..._metadata_service_purge_executions_sync.py | 2 +- ...e_query_artifact_lineage_subgraph_async.py | 2 +- ...ce_query_artifact_lineage_subgraph_sync.py | 2 +- ...ce_query_context_lineage_subgraph_async.py | 2 +- ...ice_query_context_lineage_subgraph_sync.py | 2 +- ...uery_execution_inputs_and_outputs_async.py | 2 +- ...query_execution_inputs_and_outputs_sync.py | 2 +- ...a_service_remove_context_children_async.py | 2 +- ...ta_service_remove_context_children_sync.py | 2 +- ..._metadata_service_update_artifact_async.py | 2 +- ...d_metadata_service_update_artifact_sync.py | 2 +- ...d_metadata_service_update_context_async.py | 2 +- ...ed_metadata_service_update_context_sync.py | 2 +- ...metadata_service_update_execution_async.py | 2 +- ..._metadata_service_update_execution_sync.py | 2 +- ...n_service_batch_migrate_resources_async.py | 2 +- ...on_service_batch_migrate_resources_sync.py | 2 +- ...rvice_search_migratable_resources_async.py | 2 +- ...ervice_search_migratable_resources_sync.py | 2 +- ...arden_service_get_publisher_model_async.py | 2 +- ...garden_service_get_publisher_model_sync.py | 2 +- ...atch_import_evaluated_annotations_async.py | 2 +- ...batch_import_evaluated_annotations_sync.py | 2 +- ...ch_import_model_evaluation_slices_async.py | 2 +- ...tch_import_model_evaluation_slices_sync.py | 2 +- ...enerated_model_service_copy_model_async.py | 2 +- ...generated_model_service_copy_model_sync.py | 2 +- ...erated_model_service_delete_model_async.py | 2 +- ...nerated_model_service_delete_model_sync.py | 2 +- ...odel_service_delete_model_version_async.py | 2 +- ...model_service_delete_model_version_sync.py | 2 +- ...erated_model_service_export_model_async.py | 2 +- ...nerated_model_service_export_model_sync.py | 2 +- ...generated_model_service_get_model_async.py | 2 +- ...odel_service_get_model_evaluation_async.py | 2 +- ...ervice_get_model_evaluation_slice_async.py | 2 +- ...service_get_model_evaluation_slice_sync.py | 2 +- ...model_service_get_model_evaluation_sync.py | 2 +- ..._generated_model_service_get_model_sync.py | 2 +- ...l_service_import_model_evaluation_async.py | 2 +- ...el_service_import_model_evaluation_sync.py | 2 +- ...vice_list_model_evaluation_slices_async.py | 2 +- ...rvice_list_model_evaluation_slices_sync.py | 2 +- ...el_service_list_model_evaluations_async.py | 2 +- ...del_service_list_model_evaluations_sync.py | 2 +- ...model_service_list_model_versions_async.py | 2 +- ..._model_service_list_model_versions_sync.py | 2 +- ...nerated_model_service_list_models_async.py | 2 +- ...enerated_model_service_list_models_sync.py | 2 +- ...del_service_merge_version_aliases_async.py | 2 +- ...odel_service_merge_version_aliases_sync.py | 2 +- ...ervice_update_explanation_dataset_async.py | 2 +- ...service_update_explanation_dataset_sync.py | 2 +- ...erated_model_service_update_model_async.py | 2 +- ...nerated_model_service_update_model_sync.py | 2 +- ...erated_model_service_upload_model_async.py | 2 +- ...nerated_model_service_upload_model_sync.py | 2 +- ...ervice_create_persistent_resource_async.py | 57 + ...service_create_persistent_resource_sync.py | 57 + ...ervice_delete_persistent_resource_async.py | 56 + ...service_delete_persistent_resource_sync.py | 56 + ...e_service_get_persistent_resource_async.py | 52 + ...ce_service_get_persistent_resource_sync.py | 52 + ...service_list_persistent_resources_async.py | 53 + ..._service_list_persistent_resources_sync.py | 53 + ...eline_service_cancel_pipeline_job_async.py | 2 +- ...peline_service_cancel_pipeline_job_sync.py | 2 +- ..._service_cancel_training_pipeline_async.py | 2 +- ...e_service_cancel_training_pipeline_sync.py | 2 +- ...eline_service_create_pipeline_job_async.py | 2 +- ...peline_service_create_pipeline_job_sync.py | 2 +- ..._service_create_training_pipeline_async.py | 2 +- ...e_service_create_training_pipeline_sync.py | 2 +- ...eline_service_delete_pipeline_job_async.py | 2 +- ...peline_service_delete_pipeline_job_sync.py | 2 +- ..._service_delete_training_pipeline_async.py | 2 +- ...e_service_delete_training_pipeline_sync.py | 2 +- ...pipeline_service_get_pipeline_job_async.py | 2 +- ..._pipeline_service_get_pipeline_job_sync.py | 2 +- ...ine_service_get_training_pipeline_async.py | 2 +- ...line_service_get_training_pipeline_sync.py | 2 +- ...peline_service_list_pipeline_jobs_async.py | 2 +- ...ipeline_service_list_pipeline_jobs_sync.py | 2 +- ...e_service_list_training_pipelines_async.py | 2 +- ...ne_service_list_training_pipelines_sync.py | 2 +- ...erated_prediction_service_explain_async.py | 2 +- ...nerated_prediction_service_explain_sync.py | 2 +- ...erated_prediction_service_predict_async.py | 2 +- ...nerated_prediction_service_predict_sync.py | 2 +- ...ed_prediction_service_raw_predict_async.py | 2 +- ...ted_prediction_service_raw_predict_sync.py | 2 +- ..._schedule_service_create_schedule_async.py | 2 +- ...d_schedule_service_create_schedule_sync.py | 2 +- ..._schedule_service_delete_schedule_async.py | 2 +- ...d_schedule_service_delete_schedule_sync.py | 2 +- ...ted_schedule_service_get_schedule_async.py | 2 +- ...ated_schedule_service_get_schedule_sync.py | 2 +- ...d_schedule_service_list_schedules_async.py | 2 +- ...ed_schedule_service_list_schedules_sync.py | 2 +- ...d_schedule_service_pause_schedule_async.py | 2 +- ...ed_schedule_service_pause_schedule_sync.py | 2 +- ..._schedule_service_resume_schedule_async.py | 2 +- ...d_schedule_service_resume_schedule_sync.py | 2 +- ..._schedule_service_update_schedule_async.py | 2 +- ...d_schedule_service_update_schedule_sync.py | 2 +- ...ol_service_create_specialist_pool_async.py | 2 +- ...ool_service_create_specialist_pool_sync.py | 2 +- ...ol_service_delete_specialist_pool_async.py | 2 +- ...ool_service_delete_specialist_pool_sync.py | 2 +- ..._pool_service_get_specialist_pool_async.py | 2 +- ...t_pool_service_get_specialist_pool_sync.py | 2 +- ...ool_service_list_specialist_pools_async.py | 2 +- ...pool_service_list_specialist_pools_sync.py | 2 +- ...ol_service_update_specialist_pool_async.py | 2 +- ...ool_service_update_specialist_pool_sync.py | 2 +- ...ice_batch_create_tensorboard_runs_async.py | 2 +- ...vice_batch_create_tensorboard_runs_sync.py | 2 +- ...ch_create_tensorboard_time_series_async.py | 2 +- ...tch_create_tensorboard_time_series_sync.py | 2 +- ...read_tensorboard_time_series_data_async.py | 2 +- ..._read_tensorboard_time_series_data_sync.py | 2 +- ...rboard_service_create_tensorboard_async.py | 2 +- ...ice_create_tensorboard_experiment_async.py | 2 +- ...vice_create_tensorboard_experiment_sync.py | 2 +- ...rd_service_create_tensorboard_run_async.py | 2 +- ...ard_service_create_tensorboard_run_sync.py | 2 +- ...orboard_service_create_tensorboard_sync.py | 2 +- ...ce_create_tensorboard_time_series_async.py | 2 +- ...ice_create_tensorboard_time_series_sync.py | 2 +- ...rboard_service_delete_tensorboard_async.py | 2 +- ...ice_delete_tensorboard_experiment_async.py | 2 +- ...vice_delete_tensorboard_experiment_sync.py | 2 +- ...rd_service_delete_tensorboard_run_async.py | 2 +- ...ard_service_delete_tensorboard_run_sync.py | 2 +- ...orboard_service_delete_tensorboard_sync.py | 2 +- ...ce_delete_tensorboard_time_series_async.py | 2 +- ...ice_delete_tensorboard_time_series_sync.py | 2 +- ...port_tensorboard_time_series_data_async.py | 2 +- ...xport_tensorboard_time_series_data_sync.py | 2 +- ...nsorboard_service_get_tensorboard_async.py | 2 +- ...ervice_get_tensorboard_experiment_async.py | 2 +- ...service_get_tensorboard_experiment_sync.py | 2 +- ...board_service_get_tensorboard_run_async.py | 2 +- ...rboard_service_get_tensorboard_run_sync.py | 2 +- ...ensorboard_service_get_tensorboard_sync.py | 2 +- ...rvice_get_tensorboard_time_series_async.py | 2 +- ...ervice_get_tensorboard_time_series_sync.py | 2 +- ...vice_list_tensorboard_experiments_async.py | 2 +- ...rvice_list_tensorboard_experiments_sync.py | 2 +- ...ard_service_list_tensorboard_runs_async.py | 2 +- ...oard_service_list_tensorboard_runs_sync.py | 2 +- ...vice_list_tensorboard_time_series_async.py | 2 +- ...rvice_list_tensorboard_time_series_sync.py | 2 +- ...orboard_service_list_tensorboards_async.py | 2 +- ...sorboard_service_list_tensorboards_sync.py | 2 +- ...ervice_read_tensorboard_blob_data_async.py | 2 +- ...service_read_tensorboard_blob_data_sync.py | 2 +- ...ard_service_read_tensorboard_size_async.py | 52 + ...oard_service_read_tensorboard_size_sync.py | 52 + ...read_tensorboard_time_series_data_async.py | 2 +- ..._read_tensorboard_time_series_data_sync.py | 2 +- ...rd_service_read_tensorboard_usage_async.py | 2 +- ...ard_service_read_tensorboard_usage_sync.py | 2 +- ...rboard_service_update_tensorboard_async.py | 2 +- ...ice_update_tensorboard_experiment_async.py | 2 +- ...vice_update_tensorboard_experiment_sync.py | 2 +- ...rd_service_update_tensorboard_run_async.py | 2 +- ...ard_service_update_tensorboard_run_sync.py | 2 +- ...orboard_service_update_tensorboard_sync.py | 2 +- ...ce_update_tensorboard_time_series_async.py | 2 +- ...ice_update_tensorboard_time_series_sync.py | 2 +- ...write_tensorboard_experiment_data_async.py | 2 +- ..._write_tensorboard_experiment_data_sync.py | 2 +- ...ervice_write_tensorboard_run_data_async.py | 2 +- ...service_write_tensorboard_run_data_sync.py | 2 +- ...ier_service_add_trial_measurement_async.py | 2 +- ...zier_service_add_trial_measurement_sync.py | 2 +- ..._check_trial_early_stopping_state_async.py | 2 +- ...e_check_trial_early_stopping_state_sync.py | 2 +- ...ted_vizier_service_complete_trial_async.py | 2 +- ...ated_vizier_service_complete_trial_sync.py | 2 +- ...rated_vizier_service_create_study_async.py | 2 +- ...erated_vizier_service_create_study_sync.py | 2 +- ...rated_vizier_service_create_trial_async.py | 2 +- ...erated_vizier_service_create_trial_sync.py | 2 +- ...rated_vizier_service_delete_study_async.py | 2 +- ...erated_vizier_service_delete_study_sync.py | 2 +- ...rated_vizier_service_delete_trial_async.py | 2 +- ...erated_vizier_service_delete_trial_sync.py | 2 +- ...enerated_vizier_service_get_study_async.py | 2 +- ...generated_vizier_service_get_study_sync.py | 2 +- ...enerated_vizier_service_get_trial_async.py | 2 +- ...generated_vizier_service_get_trial_sync.py | 2 +- ...izier_service_list_optimal_trials_async.py | 2 +- ...vizier_service_list_optimal_trials_sync.py | 2 +- ...rated_vizier_service_list_studies_async.py | 2 +- ...erated_vizier_service_list_studies_sync.py | 2 +- ...erated_vizier_service_list_trials_async.py | 2 +- ...nerated_vizier_service_list_trials_sync.py | 2 +- ...rated_vizier_service_lookup_study_async.py | 2 +- ...erated_vizier_service_lookup_study_sync.py | 2 +- ...nerated_vizier_service_stop_trial_async.py | 2 +- ...enerated_vizier_service_stop_trial_sync.py | 2 +- ...ted_vizier_service_suggest_trials_async.py | 2 +- ...ated_vizier_service_suggest_trials_sync.py | 2 +- ...t_metadata_google.cloud.aiplatform.v1.json | 322 ++ ...adata_google.cloud.aiplatform.v1beta1.json | 2686 +++++++---- tests/__init__.py | 2 +- tests/unit/__init__.py | 2 +- tests/unit/gapic/__init__.py | 2 +- tests/unit/gapic/aiplatform_v1/__init__.py | 2 +- .../aiplatform_v1/test_dataset_service.py | 282 +- .../aiplatform_v1/test_endpoint_service.py | 8 +- ...est_featurestore_online_serving_service.py | 2 +- .../test_featurestore_service.py | 26 +- .../test_index_endpoint_service.py | 8 +- .../gapic/aiplatform_v1/test_index_service.py | 8 +- .../gapic/aiplatform_v1/test_job_service.py | 50 +- .../gapic/aiplatform_v1/test_match_service.py | 2 +- .../aiplatform_v1/test_metadata_service.py | 32 +- .../aiplatform_v1/test_migration_service.py | 34 +- .../test_model_garden_service.py | 2 +- .../gapic/aiplatform_v1/test_model_service.py | 268 +- .../aiplatform_v1/test_pipeline_service.py | 22 +- .../aiplatform_v1/test_prediction_service.py | 2 +- .../test_specialist_pool_service.py | 8 +- .../aiplatform_v1/test_tensorboard_service.py | 516 +- .../aiplatform_v1/test_vizier_service.py | 14 +- .../unit/gapic/aiplatform_v1beta1/__init__.py | 2 +- .../test_dataset_service.py | 282 +- .../test_deployment_resource_pool_service.py | 14 +- .../test_endpoint_service.py | 8 +- ...est_featurestore_online_serving_service.py | 2 +- .../test_featurestore_service.py | 26 +- .../test_index_endpoint_service.py | 8 +- .../aiplatform_v1beta1/test_index_service.py | 8 +- .../aiplatform_v1beta1/test_job_service.py | 128 +- .../aiplatform_v1beta1/test_match_service.py | 2 +- .../test_metadata_service.py | 32 +- .../test_migration_service.py | 46 +- .../test_model_garden_service.py | 2 +- .../aiplatform_v1beta1/test_model_service.py | 26 +- .../test_persistent_resource_service.py | 4280 +++++++++++++++++ .../test_pipeline_service.py | 22 +- .../test_prediction_service.py | 2 +- .../test_schedule_service.py | 17 +- .../test_specialist_pool_service.py | 8 +- .../test_tensorboard_service.py | 1112 +++-- .../aiplatform_v1beta1/test_vizier_service.py | 14 +- tests/unit/gapic/definition_v1/__init__.py | 2 +- .../unit/gapic/definition_v1beta1/__init__.py | 2 +- tests/unit/gapic/instance_v1/__init__.py | 2 +- tests/unit/gapic/instance_v1beta1/__init__.py | 2 +- tests/unit/gapic/params_v1/__init__.py | 2 +- tests/unit/gapic/params_v1beta1/__init__.py | 2 +- tests/unit/gapic/prediction_v1/__init__.py | 2 +- .../unit/gapic/prediction_v1beta1/__init__.py | 2 +- 1496 files changed, 18833 insertions(+), 4096 deletions(-) create mode 100644 docs/aiplatform_v1beta1/persistent_resource_service.rst create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/__init__.py create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/async_client.py create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/client.py create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/pagers.py create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/__init__.py create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/base.py create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc.py create mode 100644 google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc_asyncio.py create mode 100644 google/cloud/aiplatform_v1beta1/types/persistent_resource.py create mode 100644 google/cloud/aiplatform_v1beta1/types/persistent_resource_service.py create mode 100644 samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_async.py create mode 100644 samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_sync.py create mode 100644 samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_async.py create mode 100644 samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_sync.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_async.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_sync.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_async.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_sync.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_async.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_sync.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_async.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_sync.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_async.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_sync.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_async.py create mode 100644 samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_sync.py create mode 100644 tests/unit/gapic/aiplatform_v1beta1/test_persistent_resource_service.py diff --git a/docs/aiplatform_v1beta1/persistent_resource_service.rst b/docs/aiplatform_v1beta1/persistent_resource_service.rst new file mode 100644 index 0000000000..afd493dd87 --- /dev/null +++ b/docs/aiplatform_v1beta1/persistent_resource_service.rst @@ -0,0 +1,10 @@ +PersistentResourceService +------------------------------------------- + +.. automodule:: google.cloud.aiplatform_v1beta1.services.persistent_resource_service + :members: + :inherited-members: + +.. automodule:: google.cloud.aiplatform_v1beta1.services.persistent_resource_service.pagers + :members: + :inherited-members: diff --git a/docs/aiplatform_v1beta1/services.rst b/docs/aiplatform_v1beta1/services.rst index 1d546a84ee..f0ccff00ea 100644 --- a/docs/aiplatform_v1beta1/services.rst +++ b/docs/aiplatform_v1beta1/services.rst @@ -16,6 +16,7 @@ Services for Google Cloud Aiplatform v1beta1 API migration_service model_garden_service model_service + persistent_resource_service pipeline_service prediction_service schedule_service diff --git a/google/cloud/aiplatform/v1/schema/predict/instance/__init__.py b/google/cloud/aiplatform/v1/schema/predict/instance/__init__.py index b462c723ce..2502498358 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/__init__.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/__init__.py index f99bb26797..54e06d01ca 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/__init__.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/__init__.py index c36f147d50..3313857d83 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_classification.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_classification.py index 011dc846cc..5c0338cd98 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -38,7 +38,8 @@ class ImageClassificationPredictionInstance(proto.Message): mime_type (str): The MIME type of the content of the image. Only the images in below listed MIME types are - supported. - image/jpeg + supported. + - image/jpeg - image/gif - image/png - image/webp diff --git a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_object_detection.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_object_detection.py index 36413beee0..209a859e38 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_object_detection.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -38,7 +38,8 @@ class ImageObjectDetectionPredictionInstance(proto.Message): mime_type (str): The MIME type of the content of the image. Only the images in below listed MIME types are - supported. - image/jpeg + supported. + - image/jpeg - image/gif - image/png - image/webp diff --git a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_segmentation.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_segmentation.py index 8d27de92dd..c11a7a41b7 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_segmentation.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -37,7 +37,8 @@ class ImageSegmentationPredictionInstance(proto.Message): mime_type (str): The MIME type of the content of the image. Only the images in below listed MIME types are - supported. - image/jpeg + supported. + - image/jpeg - image/png """ diff --git a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_classification.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_classification.py index 4a27d3da77..61965ae4a9 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_extraction.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_extraction.py index 238dec1bb3..36be232b03 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_extraction.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_extraction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_sentiment.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_sentiment.py index 377688fe12..3598d73044 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_sentiment.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/text_sentiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_action_recognition.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_action_recognition.py index 6019e68288..6e43863739 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_action_recognition.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_classification.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_classification.py index 985fc4a1b9..3c9cbecf5b 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_object_tracking.py b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_object_tracking.py index 860862d48c..2457f6edc0 100644 --- a/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_object_tracking.py +++ b/google/cloud/aiplatform/v1/schema/predict/instance_v1/types/video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params/__init__.py b/google/cloud/aiplatform/v1/schema/predict/params/__init__.py index d7c37b0404..649cef5299 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/params/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/__init__.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/__init__.py index 48502a17c3..d0d74d3fb4 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/types/__init__.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/__init__.py index 135f3bff54..fea9fc9ec1 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/types/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_classification.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_classification.py index 4c27b36b3c..43b9fdc8b4 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_object_detection.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_object_detection.py index 5d35aee92a..baafbc3be8 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_object_detection.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_segmentation.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_segmentation.py index cfacf7315c..afb08c9350 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_segmentation.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_action_recognition.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_action_recognition.py index 37d9782b30..69ce887fba 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_action_recognition.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_classification.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_classification.py index 4841e1f81d..ed07985dda 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_object_tracking.py b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_object_tracking.py index aeb143a64e..cb1e70f1c9 100644 --- a/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_object_tracking.py +++ b/google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction/__init__.py b/google/cloud/aiplatform/v1/schema/predict/prediction/__init__.py index 93c509f469..ba2b1afd43 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/__init__.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/__init__.py index c700d5f708..6adc5397a6 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/__init__.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/__init__.py index 12fc5b9a2f..1c235a9791 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/__init__.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/classification.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/classification.py index 8e51a20c24..2343fb5b69 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_object_detection.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_object_detection.py index ff8ec1c228..99c9ad02ee 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_object_detection.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_segmentation.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_segmentation.py index 4d95784633..27a047ac92 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_segmentation.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_classification.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_classification.py index 24f271ea63..6f73643ad6 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_regression.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_regression.py index 98ce422a16..7db1370f37 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_regression.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/tabular_regression.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_extraction.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_extraction.py index f946b132d3..2603b87ca0 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_extraction.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_extraction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_sentiment.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_sentiment.py index a67bee5840..88e6f319fd 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_sentiment.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/text_sentiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_action_recognition.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_action_recognition.py index 09801490d6..c352e9dd01 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_action_recognition.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_classification.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_classification.py index e2911a90b4..5c00118afe 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_classification.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,7 +44,8 @@ class VideoClassificationPredictionResult(proto.Message): type_ (str): The type of the prediction. The requested types can be configured via parameters. This - will be one of - segment-classification + will be one of + - segment-classification - shot-classification - one-sec-interval-classification time_segment_start (google.protobuf.duration_pb2.Duration): diff --git a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_object_tracking.py b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_object_tracking.py index fe3ce14c74..d50af622ad 100644 --- a/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_object_tracking.py +++ b/google/cloud/aiplatform/v1/schema/predict/prediction_v1/types/video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py index e570b927b0..6d7431e4b7 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/__init__.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/__init__.py index e775c2800e..318f13fcec 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/__init__.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/__init__.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/__init__.py index f85b4686a6..5f68e5ee63 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/__init__.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_classification.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_classification.py index 1bfc6289ca..491395219c 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_classification.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_object_detection.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_object_detection.py index bf33b0d3c8..d867825973 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_object_detection.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_segmentation.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_segmentation.py index bc43b93706..d4b5b419c7 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_segmentation.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py index 85217184ef..76971673d2 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_tables.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_classification.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_classification.py index 0c7bb88d44..e73bde7b9c 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_classification.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_extraction.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_extraction.py index c0ea675bdc..f31c7451d3 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_extraction.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_extraction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_sentiment.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_sentiment.py index b35c74bd54..ddce77bf17 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_sentiment.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_text_sentiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_action_recognition.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_action_recognition.py index 05ea6d1fef..fe56774e4a 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_action_recognition.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_classification.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_classification.py index 761bbba297..44995d5b3d 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_classification.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_object_tracking.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_object_tracking.py index dbd68ffbf3..2a1c3b17a4 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_object_tracking.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/automl_video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/export_evaluated_data_items_config.py b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/export_evaluated_data_items_config.py index 6e28f920bb..2c5a17734f 100644 --- a/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/export_evaluated_data_items_config.py +++ b/google/cloud/aiplatform/v1/schema/trainingjob/definition_v1/types/export_evaluated_data_items_config.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance/__init__.py index d5bb4797c0..b3f34b95b8 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/__init__.py index 61466e5b75..fbfbf95396 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/__init__.py index c36f147d50..3313857d83 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_classification.py index 2229caa8a4..2f2d0aef53 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -38,7 +38,8 @@ class ImageClassificationPredictionInstance(proto.Message): mime_type (str): The MIME type of the content of the image. Only the images in below listed MIME types are - supported. - image/jpeg + supported. + - image/jpeg - image/gif - image/png - image/webp diff --git a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_object_detection.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_object_detection.py index 0abbca887c..13fce448f5 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_object_detection.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -38,7 +38,8 @@ class ImageObjectDetectionPredictionInstance(proto.Message): mime_type (str): The MIME type of the content of the image. Only the images in below listed MIME types are - supported. - image/jpeg + supported. + - image/jpeg - image/gif - image/png - image/webp diff --git a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_segmentation.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_segmentation.py index 86d35b0eea..d3447c01b3 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_segmentation.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -37,7 +37,8 @@ class ImageSegmentationPredictionInstance(proto.Message): mime_type (str): The MIME type of the content of the image. Only the images in below listed MIME types are - supported. - image/jpeg + supported. + - image/jpeg - image/png """ diff --git a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_classification.py index ee5b7d76a9..6d381840e6 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_extraction.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_extraction.py index 691f749b6f..71419583cc 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_extraction.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_extraction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_sentiment.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_sentiment.py index 3d99b91c54..d7c90d3867 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_sentiment.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/text_sentiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_action_recognition.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_action_recognition.py index dc83f0f98b..2c69a838ee 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_action_recognition.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_classification.py index be49b7cc88..247fda46c6 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_object_tracking.py b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_object_tracking.py index e00baec081..f7b79924a1 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_object_tracking.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/instance_v1beta1/types/video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/params/__init__.py index fa3719443f..e9b61dab63 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/__init__.py index f7f083bcd7..5a2e2e9597 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/__init__.py index 135f3bff54..fea9fc9ec1 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_classification.py index 5e91886944..5b621cc7ba 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_object_detection.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_object_detection.py index 554b0024a4..5bba7909cd 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_object_detection.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_segmentation.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_segmentation.py index 847c72e50f..9e8180d57b 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_segmentation.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_action_recognition.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_action_recognition.py index 7fff2f4ee1..3894acba0a 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_action_recognition.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_classification.py index 8e1a50137f..684a0d65d2 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_object_tracking.py b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_object_tracking.py index 71e663f37f..db68575934 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_object_tracking.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/params_v1beta1/types/video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction/__init__.py index 0e17bf2af9..c058645700 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/__init__.py index 8b086ba9e4..34a463f69e 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/__init__.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/__init__.py index 582c0bbe12..da1c306408 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/classification.py index 4cfccb8c08..ac51cf187f 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_object_detection.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_object_detection.py index ca97b6f60a..5cff76cc45 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_object_detection.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_segmentation.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_segmentation.py index 0745195821..31118a76e9 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_segmentation.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_classification.py index fd5277b776..a6cf1500ce 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_regression.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_regression.py index 2a76180f74..226b3cf7d1 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_regression.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/tabular_regression.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_extraction.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_extraction.py index 70a6062dc4..7fe23be6c3 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_extraction.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_extraction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_sentiment.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_sentiment.py index 9f0c9fc6a0..7d621087e2 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_sentiment.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/text_sentiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/time_series_forecasting.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/time_series_forecasting.py index 6a398ee934..c1898491c8 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/time_series_forecasting.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/time_series_forecasting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_action_recognition.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_action_recognition.py index 7bb1891f9e..32ac06eb14 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_action_recognition.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_classification.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_classification.py index 73402db169..15ca5e6565 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -44,7 +44,8 @@ class VideoClassificationPredictionResult(proto.Message): type_ (str): The type of the prediction. The requested types can be configured via parameters. This - will be one of - segment-classification + will be one of + - segment-classification - shot-classification - one-sec-interval-classification time_segment_start (google.protobuf.duration_pb2.Duration): diff --git a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_object_tracking.py b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_object_tracking.py index 1b974b83d6..788946d9f4 100644 --- a/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_object_tracking.py +++ b/google/cloud/aiplatform/v1beta1/schema/predict/prediction_v1beta1/types/video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/__init__.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/__init__.py index 7463dffd09..a7f5fe2205 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/__init__.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/__init__.py index 5a71b1a03e..d72c851a6d 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/__init__.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/__init__.py index 7de288bc76..a464d5b32a 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/__init__.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_classification.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_classification.py index 61ac2252d5..b6e60ed2ff 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_object_detection.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_object_detection.py index 95842713f1..373cdc466e 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_object_detection.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_object_detection.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_segmentation.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_segmentation.py index afe32194dc..6c76651f1f 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_segmentation.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_image_segmentation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_tables.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_tables.py index 98c5fa96c1..e69ff10b82 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_tables.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_tables.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_classification.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_classification.py index 71683423db..a2f33241f4 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_extraction.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_extraction.py index d6649d9d90..6e833508c0 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_extraction.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_extraction.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_sentiment.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_sentiment.py index d42f8d3915..fe7c24bd40 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_sentiment.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_sentiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_time_series_forecasting.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_time_series_forecasting.py index 5592b711bb..bcc5291e96 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_time_series_forecasting.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_time_series_forecasting.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_action_recognition.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_action_recognition.py index 03116e4d61..585d9d82be 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_action_recognition.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_action_recognition.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_classification.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_classification.py index 991938de7c..8f7aaf1edd 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_classification.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_classification.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_object_tracking.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_object_tracking.py index f0e666d8f7..dcbf57aa93 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_object_tracking.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_video_object_tracking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/export_evaluated_data_items_config.py b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/export_evaluated_data_items_config.py index 02c960c135..0e60971875 100644 --- a/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/export_evaluated_data_items_config.py +++ b/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/export_evaluated_data_items_config.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/__init__.py b/google/cloud/aiplatform_v1/__init__.py index bc4fbd7c9c..172af5272c 100644 --- a/google/cloud/aiplatform_v1/__init__.py +++ b/google/cloud/aiplatform_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -83,6 +83,7 @@ from .types.dataset_service import CreateDatasetRequest from .types.dataset_service import DataItemView from .types.dataset_service import DeleteDatasetRequest +from .types.dataset_service import DeleteSavedQueryRequest from .types.dataset_service import ExportDataOperationMetadata from .types.dataset_service import ExportDataRequest from .types.dataset_service import ExportDataResponse @@ -424,6 +425,9 @@ from .types.model_service import ListModelVersionsRequest from .types.model_service import ListModelVersionsResponse from .types.model_service import MergeVersionAliasesRequest +from .types.model_service import UpdateExplanationDatasetOperationMetadata +from .types.model_service import UpdateExplanationDatasetRequest +from .types.model_service import UpdateExplanationDatasetResponse from .types.model_service import UpdateModelRequest from .types.model_service import UploadModelOperationMetadata from .types.model_service import UploadModelRequest @@ -715,6 +719,7 @@ "DeleteNasJobRequest", "DeleteOperationMetadata", "DeletePipelineJobRequest", + "DeleteSavedQueryRequest", "DeleteSpecialistPoolRequest", "DeleteStudyRequest", "DeleteTensorboardExperimentRequest", @@ -1068,6 +1073,9 @@ "UpdateEndpointRequest", "UpdateEntityTypeRequest", "UpdateExecutionRequest", + "UpdateExplanationDatasetOperationMetadata", + "UpdateExplanationDatasetRequest", + "UpdateExplanationDatasetResponse", "UpdateFeatureRequest", "UpdateFeaturestoreOperationMetadata", "UpdateFeaturestoreRequest", diff --git a/google/cloud/aiplatform_v1/gapic_metadata.json b/google/cloud/aiplatform_v1/gapic_metadata.json index 3aad6a466d..550f4836a6 100644 --- a/google/cloud/aiplatform_v1/gapic_metadata.json +++ b/google/cloud/aiplatform_v1/gapic_metadata.json @@ -20,6 +20,11 @@ "delete_dataset" ] }, + "DeleteSavedQuery": { + "methods": [ + "delete_saved_query" + ] + }, "ExportData": { "methods": [ "export_data" @@ -85,6 +90,11 @@ "delete_dataset" ] }, + "DeleteSavedQuery": { + "methods": [ + "delete_saved_query" + ] + }, "ExportData": { "methods": [ "export_data" @@ -1549,6 +1559,11 @@ "merge_version_aliases" ] }, + "UpdateExplanationDataset": { + "methods": [ + "update_explanation_dataset" + ] + }, "UpdateModel": { "methods": [ "update_model" @@ -1639,6 +1654,11 @@ "merge_version_aliases" ] }, + "UpdateExplanationDataset": { + "methods": [ + "update_explanation_dataset" + ] + }, "UpdateModel": { "methods": [ "update_model" diff --git a/google/cloud/aiplatform_v1/services/__init__.py b/google/cloud/aiplatform_v1/services/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/google/cloud/aiplatform_v1/services/__init__.py +++ b/google/cloud/aiplatform_v1/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/dataset_service/__init__.py b/google/cloud/aiplatform_v1/services/dataset_service/__init__.py index 163172b9a0..3b5da01084 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/dataset_service/async_client.py b/google/cloud/aiplatform_v1/services/dataset_service/async_client.py index fbb1ef01a6..3851d572ea 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,8 +68,8 @@ class DatasetServiceAsyncClient: - """The service that handles the CRUD of Vertex AI Dataset and - its child resources. + """The service that manages Vertex AI Dataset and its child + resources. """ _client: DatasetServiceClient @@ -1430,6 +1430,131 @@ async def sample_list_saved_queries(): # Done; return the response. return response + async def delete_saved_query( + self, + request: Optional[Union[dataset_service.DeleteSavedQueryRequest, dict]] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operation_async.AsyncOperation: + r"""Deletes a SavedQuery. + + .. code-block:: python + + # 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 aiplatform_v1 + + async def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1.DatasetServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1.types.DeleteSavedQueryRequest, dict]]): + The request object. Request message for + [DatasetService.DeleteSavedQuery][google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery]. + name (:class:`str`): + Required. The resource name of the SavedQuery to delete. + Format: + ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation_async.AsyncOperation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated + empty messages in your APIs. A typical example is to + use it as the request or the response type of an API + method. For instance: + + service Foo { + rpc Bar(google.protobuf.Empty) returns + (google.protobuf.Empty); + + } + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = dataset_service.DeleteSavedQueryRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.delete_saved_query, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = operation_async.from_gapic( + response, + self._client._transport.operations_client, + empty_pb2.Empty, + metadata_type=gca_operation.DeleteOperationMetadata, + ) + + # Done; return the response. + return response + async def get_annotation_spec( self, request: Optional[Union[dataset_service.GetAnnotationSpecRequest, dict]] = None, @@ -2334,7 +2459,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "DatasetServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/dataset_service/client.py b/google/cloud/aiplatform_v1/services/dataset_service/client.py index c96781ea00..425421e878 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/client.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -108,8 +108,8 @@ def get_transport_class( class DatasetServiceClient(metaclass=DatasetServiceClientMeta): - """The service that handles the CRUD of Vertex AI Dataset and - its child resources. + """The service that manages Vertex AI Dataset and its child + resources. """ @staticmethod @@ -1746,6 +1746,131 @@ def sample_list_saved_queries(): # Done; return the response. return response + def delete_saved_query( + self, + request: Optional[Union[dataset_service.DeleteSavedQueryRequest, dict]] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> gac_operation.Operation: + r"""Deletes a SavedQuery. + + .. code-block:: python + + # 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 aiplatform_v1 + + def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1.DatasetServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1.types.DeleteSavedQueryRequest, dict]): + The request object. Request message for + [DatasetService.DeleteSavedQuery][google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery]. + name (str): + Required. The resource name of the SavedQuery to delete. + Format: + ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation.Operation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated + empty messages in your APIs. A typical example is to + use it as the request or the response type of an API + method. For instance: + + service Foo { + rpc Bar(google.protobuf.Empty) returns + (google.protobuf.Empty); + + } + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a dataset_service.DeleteSavedQueryRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, dataset_service.DeleteSavedQueryRequest): + request = dataset_service.DeleteSavedQueryRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.delete_saved_query] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = gac_operation.from_gapic( + response, + self._transport.operations_client, + empty_pb2.Empty, + metadata_type=gca_operation.DeleteOperationMetadata, + ) + + # Done; return the response. + return response + def get_annotation_spec( self, request: Optional[Union[dataset_service.GetAnnotationSpecRequest, dict]] = None, diff --git a/google/cloud/aiplatform_v1/services/dataset_service/pagers.py b/google/cloud/aiplatform_v1/services/dataset_service/pagers.py index 2fb490c477..8ef699b7f0 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/dataset_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/dataset_service/transports/__init__.py index 07bc11c0c8..9b9eb92f49 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/dataset_service/transports/base.py b/google/cloud/aiplatform_v1/services/dataset_service/transports/base.py index e6c820bc3a..bc7e38a3f1 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -182,6 +182,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.delete_saved_query: gapic_v1.method.wrap_method( + self.delete_saved_query, + default_timeout=None, + client_info=client_info, + ), self.get_annotation_spec: gapic_v1.method.wrap_method( self.get_annotation_spec, default_timeout=None, @@ -310,6 +315,15 @@ def list_saved_queries( ]: raise NotImplementedError() + @property + def delete_saved_query( + self, + ) -> Callable[ + [dataset_service.DeleteSavedQueryRequest], + Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + ]: + raise NotImplementedError() + @property def get_annotation_spec( self, diff --git a/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc.py index 82fc38f021..2050b28ce2 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -40,8 +40,8 @@ class DatasetServiceGrpcTransport(DatasetServiceTransport): """gRPC backend transport for DatasetService. - The service that handles the CRUD of Vertex AI Dataset and - its child resources. + The service that manages Vertex AI Dataset and its child + resources. This class defines the same methods as the primary client, so the primary client can load the underlying transport implementation @@ -524,6 +524,32 @@ def list_saved_queries( ) return self._stubs["list_saved_queries"] + @property + def delete_saved_query( + self, + ) -> Callable[[dataset_service.DeleteSavedQueryRequest], operations_pb2.Operation]: + r"""Return a callable for the delete saved query method over gRPC. + + Deletes a SavedQuery. + + Returns: + Callable[[~.DeleteSavedQueryRequest], + ~.Operation]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_saved_query" not in self._stubs: + self._stubs["delete_saved_query"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1.DatasetService/DeleteSavedQuery", + request_serializer=dataset_service.DeleteSavedQueryRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["delete_saved_query"] + @property def get_annotation_spec( self, diff --git a/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc_asyncio.py index 2f1c28f92e..15d9c21c88 100644 --- a/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/dataset_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -41,8 +41,8 @@ class DatasetServiceGrpcAsyncIOTransport(DatasetServiceTransport): """gRPC AsyncIO backend transport for DatasetService. - The service that handles the CRUD of Vertex AI Dataset and - its child resources. + The service that manages Vertex AI Dataset and its child + resources. This class defines the same methods as the primary client, so the primary client can load the underlying transport implementation @@ -541,6 +541,34 @@ def list_saved_queries( ) return self._stubs["list_saved_queries"] + @property + def delete_saved_query( + self, + ) -> Callable[ + [dataset_service.DeleteSavedQueryRequest], Awaitable[operations_pb2.Operation] + ]: + r"""Return a callable for the delete saved query method over gRPC. + + Deletes a SavedQuery. + + Returns: + Callable[[~.DeleteSavedQueryRequest], + Awaitable[~.Operation]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_saved_query" not in self._stubs: + self._stubs["delete_saved_query"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1.DatasetService/DeleteSavedQuery", + request_serializer=dataset_service.DeleteSavedQueryRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["delete_saved_query"] + @property def get_annotation_spec( self, diff --git a/google/cloud/aiplatform_v1/services/endpoint_service/__init__.py b/google/cloud/aiplatform_v1/services/endpoint_service/__init__.py index 3c37159f9d..c9ed25a83e 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/endpoint_service/async_client.py b/google/cloud/aiplatform_v1/services/endpoint_service/async_client.py index 62d11f5cca..5dab342fb6 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -2006,7 +2006,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "EndpointServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/endpoint_service/client.py b/google/cloud/aiplatform_v1/services/endpoint_service/client.py index 0794fa7938..c2522568b9 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/client.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/endpoint_service/pagers.py b/google/cloud/aiplatform_v1/services/endpoint_service/pagers.py index 4b65110ad5..6585d1a934 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/endpoint_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/endpoint_service/transports/__init__.py index 92f3485150..ee0dfda4a1 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/endpoint_service/transports/base.py b/google/cloud/aiplatform_v1/services/endpoint_service/transports/base.py index c7551e0d9e..1227f94206 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc.py index 4f479c5b75..139b80377b 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc_asyncio.py index 3c54d71126..4d1c46371b 100644 --- a/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/endpoint_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/__init__.py b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/__init__.py index a2f6b5fa66..b718e8a675 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/async_client.py b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/async_client.py index 35c1f029f5..1ac0a69570 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1289,7 +1289,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "FeaturestoreOnlineServingServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/client.py b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/client.py index 2151bb70f3..298f99d9df 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/client.py +++ b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/__init__.py index c929d350e6..c3aaef3f54 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/base.py b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/base.py index 8f68d6465d..5fd0a87b9d 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc.py index 684ce612ca..1faf2ba6cf 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc_asyncio.py index b03c127ae8..2c0e87df1b 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/featurestore_online_serving_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_service/__init__.py b/google/cloud/aiplatform_v1/services/featurestore_service/__init__.py index 3f53c57568..1d93da973a 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_service/async_client.py b/google/cloud/aiplatform_v1/services/featurestore_service/async_client.py index f9213d30ae..4b6e9b336b 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -296,7 +296,7 @@ async def sample_create_featurestore(): parent (:class:`str`): Required. The resource name of the Location to create Featurestores. Format: - ``projects/{project}/locations/{location}'`` + ``projects/{project}/locations/{location}`` This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this @@ -2355,12 +2355,13 @@ async def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. .. code-block:: python @@ -3768,7 +3769,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "FeaturestoreServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/featurestore_service/client.py b/google/cloud/aiplatform_v1/services/featurestore_service/client.py index 211dfc8353..4d8016ea76 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/client.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -564,7 +564,7 @@ def sample_create_featurestore(): parent (str): Required. The resource name of the Location to create Featurestores. Format: - ``projects/{project}/locations/{location}'`` + ``projects/{project}/locations/{location}`` This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this @@ -2623,12 +2623,13 @@ def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. .. code-block:: python diff --git a/google/cloud/aiplatform_v1/services/featurestore_service/pagers.py b/google/cloud/aiplatform_v1/services/featurestore_service/pagers.py index 304d244edf..038d4d45d7 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/featurestore_service/transports/__init__.py index 640a209314..86a54230df 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_service/transports/base.py b/google/cloud/aiplatform_v1/services/featurestore_service/transports/base.py index b7338a5150..4f32626c41 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc.py index b33cf3627a..e932397f50 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -728,12 +728,13 @@ def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. Returns: diff --git a/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc_asyncio.py index 9119a41568..6eba970ffa 100644 --- a/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/featurestore_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -746,12 +746,13 @@ def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. Returns: diff --git a/google/cloud/aiplatform_v1/services/index_endpoint_service/__init__.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/__init__.py index 7cde1c0f69..dafe70ea6e 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_endpoint_service/async_client.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/async_client.py index d65a4d959c..54c351af63 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1931,7 +1931,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "IndexEndpointServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/index_endpoint_service/client.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/client.py index 99fd156b7f..080fba7cac 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/client.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_endpoint_service/pagers.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/pagers.py index eab1c5f503..38f49d0dea 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/__init__.py index d41c1630fb..a571d9b1ae 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/base.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/base.py index 4f036dc501..4fa21e64e0 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc.py index 07b5aafeda..3d7b0b2aaf 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc_asyncio.py index 68462a6115..ab92461a27 100644 --- a/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/index_endpoint_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_service/__init__.py b/google/cloud/aiplatform_v1/services/index_service/__init__.py index a8323caaf7..4006f5bb31 100644 --- a/google/cloud/aiplatform_v1/services/index_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/index_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_service/async_client.py b/google/cloud/aiplatform_v1/services/index_service/async_client.py index bdfae2708c..6a241fc533 100644 --- a/google/cloud/aiplatform_v1/services/index_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/index_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1684,7 +1684,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "IndexServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/index_service/client.py b/google/cloud/aiplatform_v1/services/index_service/client.py index 460d46454e..44004dda47 100644 --- a/google/cloud/aiplatform_v1/services/index_service/client.py +++ b/google/cloud/aiplatform_v1/services/index_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_service/pagers.py b/google/cloud/aiplatform_v1/services/index_service/pagers.py index c0690d0e3f..19ddbd0227 100644 --- a/google/cloud/aiplatform_v1/services/index_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/index_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/index_service/transports/__init__.py index c8bcfc04bf..33e728529e 100644 --- a/google/cloud/aiplatform_v1/services/index_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/index_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_service/transports/base.py b/google/cloud/aiplatform_v1/services/index_service/transports/base.py index 049ea341e4..4531986e52 100644 --- a/google/cloud/aiplatform_v1/services/index_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/index_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/index_service/transports/grpc.py index 59ff338e3d..a0d4e364b0 100644 --- a/google/cloud/aiplatform_v1/services/index_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/index_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/index_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/index_service/transports/grpc_asyncio.py index 5a387ed085..221039e56c 100644 --- a/google/cloud/aiplatform_v1/services/index_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/index_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/job_service/__init__.py b/google/cloud/aiplatform_v1/services/job_service/__init__.py index 3d88580841..5088fe0a62 100644 --- a/google/cloud/aiplatform_v1/services/job_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/job_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/job_service/async_client.py b/google/cloud/aiplatform_v1/services/job_service/async_client.py index d6dca7db2f..ebad42b14f 100644 --- a/google/cloud/aiplatform_v1/services/job_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/job_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -2629,7 +2629,7 @@ async def sample_get_nas_trial_detail(): Returns: google.cloud.aiplatform_v1.types.NasTrialDetail: Represents a NasTrial details along - with it's parameters. If there is a + with its parameters. If there is a corresponding train NasTrial, the train NasTrial is also returned. @@ -5045,7 +5045,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "JobServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/job_service/client.py b/google/cloud/aiplatform_v1/services/job_service/client.py index 33939bc4f8..9e102f7a3f 100644 --- a/google/cloud/aiplatform_v1/services/job_service/client.py +++ b/google/cloud/aiplatform_v1/services/job_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -3121,7 +3121,7 @@ def sample_get_nas_trial_detail(): Returns: google.cloud.aiplatform_v1.types.NasTrialDetail: Represents a NasTrial details along - with it's parameters. If there is a + with its parameters. If there is a corresponding train NasTrial, the train NasTrial is also returned. diff --git a/google/cloud/aiplatform_v1/services/job_service/pagers.py b/google/cloud/aiplatform_v1/services/job_service/pagers.py index 2131f7f7a3..ea308b1ac3 100644 --- a/google/cloud/aiplatform_v1/services/job_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/job_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/job_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/job_service/transports/__init__.py index bb641d64c6..773b3bdc51 100644 --- a/google/cloud/aiplatform_v1/services/job_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/job_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/job_service/transports/base.py b/google/cloud/aiplatform_v1/services/job_service/transports/base.py index 9436fbd309..46a0112045 100644 --- a/google/cloud/aiplatform_v1/services/job_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/job_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/job_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/job_service/transports/grpc.py index bfecf8328a..6a004e24d9 100644 --- a/google/cloud/aiplatform_v1/services/job_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/job_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/job_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/job_service/transports/grpc_asyncio.py index 4df87d820e..56753c8167 100644 --- a/google/cloud/aiplatform_v1/services/job_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/job_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/match_service/__init__.py b/google/cloud/aiplatform_v1/services/match_service/__init__.py index 1ec438ec3e..2a2e0dfe28 100644 --- a/google/cloud/aiplatform_v1/services/match_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/match_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/match_service/async_client.py b/google/cloud/aiplatform_v1/services/match_service/async_client.py index d3a7d7469a..2987f285af 100644 --- a/google/cloud/aiplatform_v1/services/match_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/match_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1069,7 +1069,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "MatchServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/match_service/client.py b/google/cloud/aiplatform_v1/services/match_service/client.py index 52ae2b6a4d..c5c2c15604 100644 --- a/google/cloud/aiplatform_v1/services/match_service/client.py +++ b/google/cloud/aiplatform_v1/services/match_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/match_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/match_service/transports/__init__.py index 78cb8f5d68..f21f8ca4aa 100644 --- a/google/cloud/aiplatform_v1/services/match_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/match_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/match_service/transports/base.py b/google/cloud/aiplatform_v1/services/match_service/transports/base.py index 726ff79c92..e87ab69d98 100644 --- a/google/cloud/aiplatform_v1/services/match_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/match_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/match_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/match_service/transports/grpc.py index a10de9df11..c513f40808 100644 --- a/google/cloud/aiplatform_v1/services/match_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/match_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/match_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/match_service/transports/grpc_asyncio.py index e58e0e5e0e..f80a20fcbf 100644 --- a/google/cloud/aiplatform_v1/services/match_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/match_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/metadata_service/__init__.py b/google/cloud/aiplatform_v1/services/metadata_service/__init__.py index 090778e891..364dc2d0fa 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/metadata_service/async_client.py b/google/cloud/aiplatform_v1/services/metadata_service/async_client.py index 0cca0012d2..710076569a 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -4722,7 +4722,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "MetadataServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/metadata_service/client.py b/google/cloud/aiplatform_v1/services/metadata_service/client.py index 7fbfe7e821..41ee73f214 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/client.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/metadata_service/pagers.py b/google/cloud/aiplatform_v1/services/metadata_service/pagers.py index 54c841db98..95f220bdcb 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/metadata_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/metadata_service/transports/__init__.py index afbd5b2f2c..0845e54a6c 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/metadata_service/transports/base.py b/google/cloud/aiplatform_v1/services/metadata_service/transports/base.py index 57a651af46..b4e06ad71e 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc.py index 207e54e2da..874f9f75f5 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc_asyncio.py index ce4dd07dcf..e32ae1d5d9 100644 --- a/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/metadata_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/migration_service/__init__.py b/google/cloud/aiplatform_v1/services/migration_service/__init__.py index 36329bb27d..36100cb63d 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/migration_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/migration_service/async_client.py b/google/cloud/aiplatform_v1/services/migration_service/async_client.py index 453b67607f..cb40e9e846 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/migration_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1186,7 +1186,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "MigrationServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/migration_service/client.py b/google/cloud/aiplatform_v1/services/migration_service/client.py index b43dcee16e..f98026660f 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/client.py +++ b/google/cloud/aiplatform_v1/services/migration_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -230,40 +230,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]: @staticmethod def dataset_path( project: str, - location: str, dataset: str, ) -> str: """Returns a fully-qualified dataset string.""" - return "projects/{project}/locations/{location}/datasets/{dataset}".format( + return "projects/{project}/datasets/{dataset}".format( project=project, - location=location, dataset=dataset, ) @staticmethod def parse_dataset_path(path: str) -> Dict[str, str]: """Parses a dataset path into its component segments.""" - m = re.match( - r"^projects/(?P.+?)/locations/(?P.+?)/datasets/(?P.+?)$", - path, - ) + m = re.match(r"^projects/(?P.+?)/datasets/(?P.+?)$", path) return m.groupdict() if m else {} @staticmethod def dataset_path( project: str, + location: str, dataset: str, ) -> str: """Returns a fully-qualified dataset string.""" - return "projects/{project}/datasets/{dataset}".format( + return "projects/{project}/locations/{location}/datasets/{dataset}".format( project=project, + location=location, dataset=dataset, ) @staticmethod def parse_dataset_path(path: str) -> Dict[str, str]: """Parses a dataset path into its component segments.""" - m = re.match(r"^projects/(?P.+?)/datasets/(?P.+?)$", path) + m = re.match( + r"^projects/(?P.+?)/locations/(?P.+?)/datasets/(?P.+?)$", + path, + ) return m.groupdict() if m else {} @staticmethod diff --git a/google/cloud/aiplatform_v1/services/migration_service/pagers.py b/google/cloud/aiplatform_v1/services/migration_service/pagers.py index 241b457eba..567e3aa85d 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/migration_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/migration_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/migration_service/transports/__init__.py index 10ee1426af..af03939f0d 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/migration_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/migration_service/transports/base.py b/google/cloud/aiplatform_v1/services/migration_service/transports/base.py index 10029dff9f..75c234eac3 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/migration_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/migration_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/migration_service/transports/grpc.py index 81c36d16ba..bc13074e42 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/migration_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/migration_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/migration_service/transports/grpc_asyncio.py index 7fb5a58371..8972a7fd82 100644 --- a/google/cloud/aiplatform_v1/services/migration_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/migration_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_garden_service/__init__.py b/google/cloud/aiplatform_v1/services/model_garden_service/__init__.py index bf7ee03b38..b1a2f30ada 100644 --- a/google/cloud/aiplatform_v1/services/model_garden_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/model_garden_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_garden_service/async_client.py b/google/cloud/aiplatform_v1/services/model_garden_service/async_client.py index 5955fb7090..ab644d0bbc 100644 --- a/google/cloud/aiplatform_v1/services/model_garden_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/model_garden_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1009,7 +1009,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "ModelGardenServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/model_garden_service/client.py b/google/cloud/aiplatform_v1/services/model_garden_service/client.py index cd673e2210..1767b5736d 100644 --- a/google/cloud/aiplatform_v1/services/model_garden_service/client.py +++ b/google/cloud/aiplatform_v1/services/model_garden_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_garden_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/model_garden_service/transports/__init__.py index eb492f9a27..b6993013a1 100644 --- a/google/cloud/aiplatform_v1/services/model_garden_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/model_garden_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_garden_service/transports/base.py b/google/cloud/aiplatform_v1/services/model_garden_service/transports/base.py index 4a9fd7986f..681b1b6934 100644 --- a/google/cloud/aiplatform_v1/services/model_garden_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/model_garden_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc.py index a3a88b3401..55ad0e9b6f 100644 --- a/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc_asyncio.py index 0a53e211ca..15bb09c865 100644 --- a/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/model_garden_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_service/__init__.py b/google/cloud/aiplatform_v1/services/model_service/__init__.py index d5781359f4..7a7785a0c5 100644 --- a/google/cloud/aiplatform_v1/services/model_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/model_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_service/async_client.py b/google/cloud/aiplatform_v1/services/model_service/async_client.py index c8cfbc860d..5d9f5b9373 100644 --- a/google/cloud/aiplatform_v1/services/model_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/model_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -856,6 +856,127 @@ async def sample_update_model(): # Done; return the response. return response + async def update_explanation_dataset( + self, + request: Optional[ + Union[model_service.UpdateExplanationDatasetRequest, dict] + ] = None, + *, + model: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operation_async.AsyncOperation: + r"""Incrementally update the dataset used for an examples + model. + + .. code-block:: python + + # 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 aiplatform_v1 + + async def sample_update_explanation_dataset(): + # Create a client + client = aiplatform_v1.ModelServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1.UpdateExplanationDatasetRequest( + model="model_value", + ) + + # Make the request + operation = client.update_explanation_dataset(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1.types.UpdateExplanationDatasetRequest, dict]]): + The request object. Request message for + [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset]. + model (:class:`str`): + Required. The resource name of the Model to update. + Format: + ``projects/{project}/locations/{location}/models/{model}`` + + This corresponds to the ``model`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation_async.AsyncOperation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.cloud.aiplatform_v1.types.UpdateExplanationDatasetResponse` Response message of + [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset] + operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([model]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = model_service.UpdateExplanationDatasetRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if model is not None: + request.model = model + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.update_explanation_dataset, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("model", request.model),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = operation_async.from_gapic( + response, + self._client._transport.operations_client, + model_service.UpdateExplanationDatasetResponse, + metadata_type=model_service.UpdateExplanationDatasetOperationMetadata, + ) + + # Done; return the response. + return response + async def delete_model( self, request: Optional[Union[model_service.DeleteModelRequest, dict]] = None, @@ -3004,7 +3125,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "ModelServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/model_service/client.py b/google/cloud/aiplatform_v1/services/model_service/client.py index 55fefcc279..722b60ec5b 100644 --- a/google/cloud/aiplatform_v1/services/model_service/client.py +++ b/google/cloud/aiplatform_v1/services/model_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1183,6 +1183,129 @@ def sample_update_model(): # Done; return the response. return response + def update_explanation_dataset( + self, + request: Optional[ + Union[model_service.UpdateExplanationDatasetRequest, dict] + ] = None, + *, + model: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> gac_operation.Operation: + r"""Incrementally update the dataset used for an examples + model. + + .. code-block:: python + + # 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 aiplatform_v1 + + def sample_update_explanation_dataset(): + # Create a client + client = aiplatform_v1.ModelServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1.UpdateExplanationDatasetRequest( + model="model_value", + ) + + # Make the request + operation = client.update_explanation_dataset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1.types.UpdateExplanationDatasetRequest, dict]): + The request object. Request message for + [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset]. + model (str): + Required. The resource name of the Model to update. + Format: + ``projects/{project}/locations/{location}/models/{model}`` + + This corresponds to the ``model`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation.Operation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.cloud.aiplatform_v1.types.UpdateExplanationDatasetResponse` Response message of + [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset] + operation. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([model]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a model_service.UpdateExplanationDatasetRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, model_service.UpdateExplanationDatasetRequest): + request = model_service.UpdateExplanationDatasetRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if model is not None: + request.model = model + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[ + self._transport.update_explanation_dataset + ] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("model", request.model),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = gac_operation.from_gapic( + response, + self._transport.operations_client, + model_service.UpdateExplanationDatasetResponse, + metadata_type=model_service.UpdateExplanationDatasetOperationMetadata, + ) + + # Done; return the response. + return response + def delete_model( self, request: Optional[Union[model_service.DeleteModelRequest, dict]] = None, diff --git a/google/cloud/aiplatform_v1/services/model_service/pagers.py b/google/cloud/aiplatform_v1/services/model_service/pagers.py index 5a4abf8b07..4378bc0796 100644 --- a/google/cloud/aiplatform_v1/services/model_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/model_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/model_service/transports/__init__.py index ab55f592b6..5ade1092ca 100644 --- a/google/cloud/aiplatform_v1/services/model_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/model_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/model_service/transports/base.py b/google/cloud/aiplatform_v1/services/model_service/transports/base.py index 5271839a10..e1b22a5a03 100644 --- a/google/cloud/aiplatform_v1/services/model_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/model_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -159,6 +159,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.update_explanation_dataset: gapic_v1.method.wrap_method( + self.update_explanation_dataset, + default_timeout=None, + client_info=client_info, + ), self.delete_model: gapic_v1.method.wrap_method( self.delete_model, default_timeout=None, @@ -285,6 +290,15 @@ def update_model( ]: raise NotImplementedError() + @property + def update_explanation_dataset( + self, + ) -> Callable[ + [model_service.UpdateExplanationDatasetRequest], + Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + ]: + raise NotImplementedError() + @property def delete_model( self, diff --git a/google/cloud/aiplatform_v1/services/model_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/model_service/transports/grpc.py index fb3a90e1d5..459e14b1e8 100644 --- a/google/cloud/aiplatform_v1/services/model_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/model_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -386,6 +386,35 @@ def update_model( ) return self._stubs["update_model"] + @property + def update_explanation_dataset( + self, + ) -> Callable[ + [model_service.UpdateExplanationDatasetRequest], operations_pb2.Operation + ]: + r"""Return a callable for the update explanation dataset method over gRPC. + + Incrementally update the dataset used for an examples + model. + + Returns: + Callable[[~.UpdateExplanationDatasetRequest], + ~.Operation]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "update_explanation_dataset" not in self._stubs: + self._stubs["update_explanation_dataset"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1.ModelService/UpdateExplanationDataset", + request_serializer=model_service.UpdateExplanationDatasetRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["update_explanation_dataset"] + @property def delete_model( self, diff --git a/google/cloud/aiplatform_v1/services/model_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/model_service/transports/grpc_asyncio.py index 97e31df113..5cbbda9bd8 100644 --- a/google/cloud/aiplatform_v1/services/model_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/model_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -397,6 +397,36 @@ def update_model( ) return self._stubs["update_model"] + @property + def update_explanation_dataset( + self, + ) -> Callable[ + [model_service.UpdateExplanationDatasetRequest], + Awaitable[operations_pb2.Operation], + ]: + r"""Return a callable for the update explanation dataset method over gRPC. + + Incrementally update the dataset used for an examples + model. + + Returns: + Callable[[~.UpdateExplanationDatasetRequest], + Awaitable[~.Operation]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "update_explanation_dataset" not in self._stubs: + self._stubs["update_explanation_dataset"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1.ModelService/UpdateExplanationDataset", + request_serializer=model_service.UpdateExplanationDatasetRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["update_explanation_dataset"] + @property def delete_model( self, diff --git a/google/cloud/aiplatform_v1/services/pipeline_service/__init__.py b/google/cloud/aiplatform_v1/services/pipeline_service/__init__.py index 5eea4316a6..716fff3072 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/pipeline_service/async_client.py b/google/cloud/aiplatform_v1/services/pipeline_service/async_client.py index b72c7ea37a..0319bed399 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -2102,7 +2102,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "PipelineServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/pipeline_service/client.py b/google/cloud/aiplatform_v1/services/pipeline_service/client.py index e981acec4d..4aa1f71689 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/client.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/pipeline_service/pagers.py b/google/cloud/aiplatform_v1/services/pipeline_service/pagers.py index 2b7715b545..21ae63f8f9 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/pipeline_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/pipeline_service/transports/__init__.py index 7cf231f6c5..d97c1b4af5 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/pipeline_service/transports/base.py b/google/cloud/aiplatform_v1/services/pipeline_service/transports/base.py index 02b5da620d..09610719a6 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc.py index 1e5804aeb8..bdee7c57f7 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc_asyncio.py index edb852f1ed..b78e1328b7 100644 --- a/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/pipeline_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/prediction_service/__init__.py b/google/cloud/aiplatform_v1/services/prediction_service/__init__.py index d5ecd0dd03..3a0131f7e4 100644 --- a/google/cloud/aiplatform_v1/services/prediction_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/prediction_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/prediction_service/async_client.py b/google/cloud/aiplatform_v1/services/prediction_service/async_client.py index f47def3fe0..271505cf2c 100644 --- a/google/cloud/aiplatform_v1/services/prediction_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/prediction_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1394,7 +1394,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "PredictionServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/prediction_service/client.py b/google/cloud/aiplatform_v1/services/prediction_service/client.py index ce8a1b97e6..a61f34785e 100644 --- a/google/cloud/aiplatform_v1/services/prediction_service/client.py +++ b/google/cloud/aiplatform_v1/services/prediction_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/prediction_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/prediction_service/transports/__init__.py index 3b81984dc0..d9647454f6 100644 --- a/google/cloud/aiplatform_v1/services/prediction_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/prediction_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/prediction_service/transports/base.py b/google/cloud/aiplatform_v1/services/prediction_service/transports/base.py index 7c8bc0db30..8de37beab6 100644 --- a/google/cloud/aiplatform_v1/services/prediction_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/prediction_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc.py index a5f7cbe784..31fcac6fad 100644 --- a/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc_asyncio.py index 5d4e760535..964652dd98 100644 --- a/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/prediction_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/specialist_pool_service/__init__.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/__init__.py index 0f61e0cadc..fb212dc162 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/specialist_pool_service/async_client.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/async_client.py index 75ad6519f6..f7eb690394 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1563,7 +1563,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "SpecialistPoolServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/specialist_pool_service/client.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/client.py index 5b41f1464a..f419c2abaf 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/client.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/specialist_pool_service/pagers.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/pagers.py index c18eb507c8..e0005aa707 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/__init__.py index c8f1c13419..92437c18b5 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/base.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/base.py index 25179678e7..88df2158a0 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc.py index 66b2422e90..fb9f36056c 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc_asyncio.py index 72b3e129b1..c507a00c2c 100644 --- a/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/specialist_pool_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/tensorboard_service/__init__.py b/google/cloud/aiplatform_v1/services/tensorboard_service/__init__.py index 91397832d2..66b01e1438 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/tensorboard_service/async_client.py b/google/cloud/aiplatform_v1/services/tensorboard_service/async_client.py index 4486a7e69a..94408634d7 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -499,113 +499,6 @@ async def sample_get_tensorboard(): # Done; return the response. return response - async def read_tensorboard_usage( - self, - request: Optional[ - Union[tensorboard_service.ReadTensorboardUsageRequest, dict] - ] = None, - *, - tensorboard: Optional[str] = None, - retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: Union[float, object] = gapic_v1.method.DEFAULT, - metadata: Sequence[Tuple[str, str]] = (), - ) -> tensorboard_service.ReadTensorboardUsageResponse: - r"""Returns a list of monthly active users for a given - TensorBoard instance. - - .. code-block:: python - - # 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 aiplatform_v1 - - async def sample_read_tensorboard_usage(): - # Create a client - client = aiplatform_v1.TensorboardServiceAsyncClient() - - # Initialize request argument(s) - request = aiplatform_v1.ReadTensorboardUsageRequest( - tensorboard="tensorboard_value", - ) - - # Make the request - response = await client.read_tensorboard_usage(request=request) - - # Handle the response - print(response) - - Args: - request (Optional[Union[google.cloud.aiplatform_v1.types.ReadTensorboardUsageRequest, dict]]): - The request object. Request message for - [TensorboardService.GetTensorboardUsage][]. - tensorboard (:class:`str`): - Required. The name of the Tensorboard resource. Format: - ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` - - This corresponds to the ``tensorboard`` field - on the ``request`` instance; if ``request`` is provided, this - should not be set. - retry (google.api_core.retry.Retry): Designation of what errors, if any, - should be retried. - timeout (float): The timeout for this request. - metadata (Sequence[Tuple[str, str]]): Strings which should be - sent along with the request as metadata. - - Returns: - google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse: - Response message for - [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. - - """ - # Create or coerce a protobuf request object. - # Quick check: If we got a request object, we should *not* have - # gotten any keyword arguments that map to the request. - has_flattened_params = any([tensorboard]) - if request is not None and has_flattened_params: - raise ValueError( - "If the `request` argument is set, then none of " - "the individual field arguments should be set." - ) - - request = tensorboard_service.ReadTensorboardUsageRequest(request) - - # If we have keyword arguments corresponding to fields on the - # request, apply these. - if tensorboard is not None: - request.tensorboard = tensorboard - - # Wrap the RPC method; this adds retry and timeout information, - # and friendly error handling. - rpc = gapic_v1.method_async.wrap_method( - self._client._transport.read_tensorboard_usage, - default_timeout=None, - client_info=DEFAULT_CLIENT_INFO, - ) - - # Certain fields should be provided within the metadata header; - # add these here. - metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata( - (("tensorboard", request.tensorboard),) - ), - ) - - # Send the request. - response = await rpc( - request, - retry=retry, - timeout=timeout, - metadata=metadata, - ) - - # Done; return the response. - return response - async def update_tensorboard( self, request: Optional[ @@ -992,6 +885,113 @@ async def sample_delete_tensorboard(): # Done; return the response. return response + async def read_tensorboard_usage( + self, + request: Optional[ + Union[tensorboard_service.ReadTensorboardUsageRequest, dict] + ] = None, + *, + tensorboard: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> tensorboard_service.ReadTensorboardUsageResponse: + r"""Returns a list of monthly active users for a given + TensorBoard instance. + + .. code-block:: python + + # 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 aiplatform_v1 + + async def sample_read_tensorboard_usage(): + # Create a client + client = aiplatform_v1.TensorboardServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1.ReadTensorboardUsageRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = await client.read_tensorboard_usage(request=request) + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1.types.ReadTensorboardUsageRequest, dict]]): + The request object. Request message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. + tensorboard (:class:`str`): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + + This corresponds to the ``tensorboard`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse: + Response message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([tensorboard]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = tensorboard_service.ReadTensorboardUsageRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if tensorboard is not None: + request.tensorboard = tensorboard + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.read_tensorboard_usage, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + (("tensorboard", request.tensorboard),) + ), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + async def create_tensorboard_experiment( self, request: Optional[ @@ -4487,7 +4487,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "TensorboardServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/tensorboard_service/client.py b/google/cloud/aiplatform_v1/services/tensorboard_service/client.py index 31e7c55fe4..2a9ce909c4 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/client.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -786,113 +786,6 @@ def sample_get_tensorboard(): # Done; return the response. return response - def read_tensorboard_usage( - self, - request: Optional[ - Union[tensorboard_service.ReadTensorboardUsageRequest, dict] - ] = None, - *, - tensorboard: Optional[str] = None, - retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: Union[float, object] = gapic_v1.method.DEFAULT, - metadata: Sequence[Tuple[str, str]] = (), - ) -> tensorboard_service.ReadTensorboardUsageResponse: - r"""Returns a list of monthly active users for a given - TensorBoard instance. - - .. code-block:: python - - # 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 aiplatform_v1 - - def sample_read_tensorboard_usage(): - # Create a client - client = aiplatform_v1.TensorboardServiceClient() - - # Initialize request argument(s) - request = aiplatform_v1.ReadTensorboardUsageRequest( - tensorboard="tensorboard_value", - ) - - # Make the request - response = client.read_tensorboard_usage(request=request) - - # Handle the response - print(response) - - Args: - request (Union[google.cloud.aiplatform_v1.types.ReadTensorboardUsageRequest, dict]): - The request object. Request message for - [TensorboardService.GetTensorboardUsage][]. - tensorboard (str): - Required. The name of the Tensorboard resource. Format: - ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` - - This corresponds to the ``tensorboard`` field - on the ``request`` instance; if ``request`` is provided, this - should not be set. - retry (google.api_core.retry.Retry): Designation of what errors, if any, - should be retried. - timeout (float): The timeout for this request. - metadata (Sequence[Tuple[str, str]]): Strings which should be - sent along with the request as metadata. - - Returns: - google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse: - Response message for - [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. - - """ - # Create or coerce a protobuf request object. - # Quick check: If we got a request object, we should *not* have - # gotten any keyword arguments that map to the request. - has_flattened_params = any([tensorboard]) - if request is not None and has_flattened_params: - raise ValueError( - "If the `request` argument is set, then none of " - "the individual field arguments should be set." - ) - - # Minor optimization to avoid making a copy if the user passes - # in a tensorboard_service.ReadTensorboardUsageRequest. - # There's no risk of modifying the input as we've already verified - # there are no flattened fields. - if not isinstance(request, tensorboard_service.ReadTensorboardUsageRequest): - request = tensorboard_service.ReadTensorboardUsageRequest(request) - # If we have keyword arguments corresponding to fields on the - # request, apply these. - if tensorboard is not None: - request.tensorboard = tensorboard - - # Wrap the RPC method; this adds retry and timeout information, - # and friendly error handling. - rpc = self._transport._wrapped_methods[self._transport.read_tensorboard_usage] - - # Certain fields should be provided within the metadata header; - # add these here. - metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata( - (("tensorboard", request.tensorboard),) - ), - ) - - # Send the request. - response = rpc( - request, - retry=retry, - timeout=timeout, - metadata=metadata, - ) - - # Done; return the response. - return response - def update_tensorboard( self, request: Optional[ @@ -1279,6 +1172,113 @@ def sample_delete_tensorboard(): # Done; return the response. return response + def read_tensorboard_usage( + self, + request: Optional[ + Union[tensorboard_service.ReadTensorboardUsageRequest, dict] + ] = None, + *, + tensorboard: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> tensorboard_service.ReadTensorboardUsageResponse: + r"""Returns a list of monthly active users for a given + TensorBoard instance. + + .. code-block:: python + + # 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 aiplatform_v1 + + def sample_read_tensorboard_usage(): + # Create a client + client = aiplatform_v1.TensorboardServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1.ReadTensorboardUsageRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = client.read_tensorboard_usage(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1.types.ReadTensorboardUsageRequest, dict]): + The request object. Request message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. + tensorboard (str): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + + This corresponds to the ``tensorboard`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse: + Response message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([tensorboard]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a tensorboard_service.ReadTensorboardUsageRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, tensorboard_service.ReadTensorboardUsageRequest): + request = tensorboard_service.ReadTensorboardUsageRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if tensorboard is not None: + request.tensorboard = tensorboard + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.read_tensorboard_usage] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + (("tensorboard", request.tensorboard),) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + def create_tensorboard_experiment( self, request: Optional[ diff --git a/google/cloud/aiplatform_v1/services/tensorboard_service/pagers.py b/google/cloud/aiplatform_v1/services/tensorboard_service/pagers.py index 950be52fe4..ab615196c4 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/tensorboard_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/__init__.py index 645295a44f..f9943c851c 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/tensorboard_service/transports/base.py b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/base.py index 546df5d327..37f4db9472 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -153,11 +153,6 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), - self.read_tensorboard_usage: gapic_v1.method.wrap_method( - self.read_tensorboard_usage, - default_timeout=None, - client_info=client_info, - ), self.update_tensorboard: gapic_v1.method.wrap_method( self.update_tensorboard, default_timeout=None, @@ -173,6 +168,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.read_tensorboard_usage: gapic_v1.method.wrap_method( + self.read_tensorboard_usage, + default_timeout=None, + client_info=client_info, + ), self.create_tensorboard_experiment: gapic_v1.method.wrap_method( self.create_tensorboard_experiment, default_timeout=None, @@ -322,18 +322,6 @@ def get_tensorboard( ]: raise NotImplementedError() - @property - def read_tensorboard_usage( - self, - ) -> Callable[ - [tensorboard_service.ReadTensorboardUsageRequest], - Union[ - tensorboard_service.ReadTensorboardUsageResponse, - Awaitable[tensorboard_service.ReadTensorboardUsageResponse], - ], - ]: - raise NotImplementedError() - @property def update_tensorboard( self, @@ -364,6 +352,18 @@ def delete_tensorboard( ]: raise NotImplementedError() + @property + def read_tensorboard_usage( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardUsageRequest], + Union[ + tensorboard_service.ReadTensorboardUsageResponse, + Awaitable[tensorboard_service.ReadTensorboardUsageResponse], + ], + ]: + raise NotImplementedError() + @property def create_tensorboard_experiment( self, diff --git a/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc.py index c6b6ed8cbe..e7ad57fce9 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -315,36 +315,6 @@ def get_tensorboard( ) return self._stubs["get_tensorboard"] - @property - def read_tensorboard_usage( - self, - ) -> Callable[ - [tensorboard_service.ReadTensorboardUsageRequest], - tensorboard_service.ReadTensorboardUsageResponse, - ]: - r"""Return a callable for the read tensorboard usage method over gRPC. - - Returns a list of monthly active users for a given - TensorBoard instance. - - Returns: - Callable[[~.ReadTensorboardUsageRequest], - ~.ReadTensorboardUsageResponse]: - A function that, when called, will call the underlying RPC - on the server. - """ - # Generate a "stub function" on-the-fly which will actually make - # the request. - # gRPC handles serialization and deserialization, so we just need - # to pass in the functions for each. - if "read_tensorboard_usage" not in self._stubs: - self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( - "/google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardUsage", - request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, - response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, - ) - return self._stubs["read_tensorboard_usage"] - @property def update_tensorboard( self, @@ -430,6 +400,36 @@ def delete_tensorboard( ) return self._stubs["delete_tensorboard"] + @property + def read_tensorboard_usage( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardUsageRequest], + tensorboard_service.ReadTensorboardUsageResponse, + ]: + r"""Return a callable for the read tensorboard usage method over gRPC. + + Returns a list of monthly active users for a given + TensorBoard instance. + + Returns: + Callable[[~.ReadTensorboardUsageRequest], + ~.ReadTensorboardUsageResponse]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "read_tensorboard_usage" not in self._stubs: + self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardUsage", + request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, + response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, + ) + return self._stubs["read_tensorboard_usage"] + @property def create_tensorboard_experiment( self, diff --git a/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc_asyncio.py index 38ef556506..86438e49a7 100644 --- a/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/tensorboard_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -323,36 +323,6 @@ def get_tensorboard( ) return self._stubs["get_tensorboard"] - @property - def read_tensorboard_usage( - self, - ) -> Callable[ - [tensorboard_service.ReadTensorboardUsageRequest], - Awaitable[tensorboard_service.ReadTensorboardUsageResponse], - ]: - r"""Return a callable for the read tensorboard usage method over gRPC. - - Returns a list of monthly active users for a given - TensorBoard instance. - - Returns: - Callable[[~.ReadTensorboardUsageRequest], - Awaitable[~.ReadTensorboardUsageResponse]]: - A function that, when called, will call the underlying RPC - on the server. - """ - # Generate a "stub function" on-the-fly which will actually make - # the request. - # gRPC handles serialization and deserialization, so we just need - # to pass in the functions for each. - if "read_tensorboard_usage" not in self._stubs: - self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( - "/google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardUsage", - request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, - response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, - ) - return self._stubs["read_tensorboard_usage"] - @property def update_tensorboard( self, @@ -440,6 +410,36 @@ def delete_tensorboard( ) return self._stubs["delete_tensorboard"] + @property + def read_tensorboard_usage( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardUsageRequest], + Awaitable[tensorboard_service.ReadTensorboardUsageResponse], + ]: + r"""Return a callable for the read tensorboard usage method over gRPC. + + Returns a list of monthly active users for a given + TensorBoard instance. + + Returns: + Callable[[~.ReadTensorboardUsageRequest], + Awaitable[~.ReadTensorboardUsageResponse]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "read_tensorboard_usage" not in self._stubs: + self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1.TensorboardService/ReadTensorboardUsage", + request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, + response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, + ) + return self._stubs["read_tensorboard_usage"] + @property def create_tensorboard_experiment( self, diff --git a/google/cloud/aiplatform_v1/services/vizier_service/__init__.py b/google/cloud/aiplatform_v1/services/vizier_service/__init__.py index b91bd3c525..dcc57105f8 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/__init__.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/vizier_service/async_client.py b/google/cloud/aiplatform_v1/services/vizier_service/async_client.py index 49b9a04647..a6b8992de8 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/async_client.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -2433,7 +2433,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "VizierServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1/services/vizier_service/client.py b/google/cloud/aiplatform_v1/services/vizier_service/client.py index 63518041ec..f4853bdbad 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/client.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/vizier_service/pagers.py b/google/cloud/aiplatform_v1/services/vizier_service/pagers.py index b17d3e2759..573b8da0be 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/pagers.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/vizier_service/transports/__init__.py b/google/cloud/aiplatform_v1/services/vizier_service/transports/__init__.py index a4efbdf8d6..43baa1a728 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/vizier_service/transports/base.py b/google/cloud/aiplatform_v1/services/vizier_service/transports/base.py index b676040bfb..120d990dd7 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/transports/base.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc.py b/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc.py index 50ea0f8651..ed0fec1d0c 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc_asyncio.py index 6f1c4794f6..1d88db532d 100644 --- a/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1/services/vizier_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/__init__.py b/google/cloud/aiplatform_v1/types/__init__.py index 10da34ae27..5826e69920 100644 --- a/google/cloud/aiplatform_v1/types/__init__.py +++ b/google/cloud/aiplatform_v1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,6 +59,7 @@ CreateDatasetRequest, DataItemView, DeleteDatasetRequest, + DeleteSavedQueryRequest, ExportDataOperationMetadata, ExportDataRequest, ExportDataResponse, @@ -475,6 +476,9 @@ ListModelVersionsRequest, ListModelVersionsResponse, MergeVersionAliasesRequest, + UpdateExplanationDatasetOperationMetadata, + UpdateExplanationDatasetRequest, + UpdateExplanationDatasetResponse, UpdateModelRequest, UploadModelOperationMetadata, UploadModelRequest, @@ -689,6 +693,7 @@ "CreateDatasetRequest", "DataItemView", "DeleteDatasetRequest", + "DeleteSavedQueryRequest", "ExportDataOperationMetadata", "ExportDataRequest", "ExportDataResponse", @@ -1022,6 +1027,9 @@ "ListModelVersionsRequest", "ListModelVersionsResponse", "MergeVersionAliasesRequest", + "UpdateExplanationDatasetOperationMetadata", + "UpdateExplanationDatasetRequest", + "UpdateExplanationDatasetResponse", "UpdateModelRequest", "UploadModelOperationMetadata", "UploadModelRequest", diff --git a/google/cloud/aiplatform_v1/types/accelerator_type.py b/google/cloud/aiplatform_v1/types/accelerator_type.py index 564a759f11..be01f2fc42 100644 --- a/google/cloud/aiplatform_v1/types/accelerator_type.py +++ b/google/cloud/aiplatform_v1/types/accelerator_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/annotation.py b/google/cloud/aiplatform_v1/types/annotation.py index ef17e859fe..1484bcd220 100644 --- a/google/cloud/aiplatform_v1/types/annotation.py +++ b/google/cloud/aiplatform_v1/types/annotation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/annotation_spec.py b/google/cloud/aiplatform_v1/types/annotation_spec.py index 5e885a9f95..e07788f8d9 100644 --- a/google/cloud/aiplatform_v1/types/annotation_spec.py +++ b/google/cloud/aiplatform_v1/types/annotation_spec.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/artifact.py b/google/cloud/aiplatform_v1/types/artifact.py index 25bcf4a001..b8bf6394ae 100644 --- a/google/cloud/aiplatform_v1/types/artifact.py +++ b/google/cloud/aiplatform_v1/types/artifact.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/batch_prediction_job.py b/google/cloud/aiplatform_v1/types/batch_prediction_job.py index 803e3f4c04..c0fff83f52 100644 --- a/google/cloud/aiplatform_v1/types/batch_prediction_job.py +++ b/google/cloud/aiplatform_v1/types/batch_prediction_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -74,6 +74,10 @@ class BatchPredictionJob(proto.Message): ``projects/{project}/locations/{location}/models/{model}@golden`` if no version is specified, the default version will be deployed. + + The model resource could also be a publisher model. Example: + ``publishers/{publisher}/models/{model}`` or + ``projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`` model_version_id (str): Output only. The version ID of the Model that produces the predictions via this job. diff --git a/google/cloud/aiplatform_v1/types/completion_stats.py b/google/cloud/aiplatform_v1/types/completion_stats.py index 329f5748ae..9879b60921 100644 --- a/google/cloud/aiplatform_v1/types/completion_stats.py +++ b/google/cloud/aiplatform_v1/types/completion_stats.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/context.py b/google/cloud/aiplatform_v1/types/context.py index aa986f8232..ee378e9bb9 100644 --- a/google/cloud/aiplatform_v1/types/context.py +++ b/google/cloud/aiplatform_v1/types/context.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/custom_job.py b/google/cloud/aiplatform_v1/types/custom_job.py index 62619846ea..27a3035ece 100644 --- a/google/cloud/aiplatform_v1/types/custom_job.py +++ b/google/cloud/aiplatform_v1/types/custom_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/data_item.py b/google/cloud/aiplatform_v1/types/data_item.py index 1248e29c7f..738306de67 100644 --- a/google/cloud/aiplatform_v1/types/data_item.py +++ b/google/cloud/aiplatform_v1/types/data_item.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/data_labeling_job.py b/google/cloud/aiplatform_v1/types/data_labeling_job.py index dc6f9e59ea..21270d6c99 100644 --- a/google/cloud/aiplatform_v1/types/data_labeling_job.py +++ b/google/cloud/aiplatform_v1/types/data_labeling_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/dataset.py b/google/cloud/aiplatform_v1/types/dataset.py index f30cbe582c..0e916dc27b 100644 --- a/google/cloud/aiplatform_v1/types/dataset.py +++ b/google/cloud/aiplatform_v1/types/dataset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,6 +60,9 @@ class Dataset(proto.Message): metadata (google.protobuf.struct_pb2.Value): Required. Additional information about the Dataset. + data_item_count (int): + Output only. The number of DataItems in this + Dataset. Only apply for non-structured Dataset. create_time (google.protobuf.timestamp_pb2.Timestamp): Output only. Timestamp when this Dataset was created. @@ -131,6 +134,10 @@ class Dataset(proto.Message): number=8, message=struct_pb2.Value, ) + data_item_count: int = proto.Field( + proto.INT64, + number=10, + ) create_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=4, diff --git a/google/cloud/aiplatform_v1/types/dataset_service.py b/google/cloud/aiplatform_v1/types/dataset_service.py index 72f8b35d69..7b99f0bdcb 100644 --- a/google/cloud/aiplatform_v1/types/dataset_service.py +++ b/google/cloud/aiplatform_v1/types/dataset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ "DataItemView", "ListSavedQueriesRequest", "ListSavedQueriesResponse", + "DeleteSavedQueryRequest", "GetAnnotationSpecRequest", "ListAnnotationsRequest", "ListAnnotationsResponse", @@ -766,6 +767,23 @@ def raw_page(self): ) +class DeleteSavedQueryRequest(proto.Message): + r"""Request message for + [DatasetService.DeleteSavedQuery][google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery]. + + Attributes: + name (str): + Required. The resource name of the SavedQuery to delete. + Format: + ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`` + """ + + name: str = proto.Field( + proto.STRING, + number=1, + ) + + class GetAnnotationSpecRequest(proto.Message): r"""Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec]. diff --git a/google/cloud/aiplatform_v1/types/deployed_index_ref.py b/google/cloud/aiplatform_v1/types/deployed_index_ref.py index bebe37550b..50544e9655 100644 --- a/google/cloud/aiplatform_v1/types/deployed_index_ref.py +++ b/google/cloud/aiplatform_v1/types/deployed_index_ref.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/deployed_model_ref.py b/google/cloud/aiplatform_v1/types/deployed_model_ref.py index 9ae31fe04a..18b776fe5b 100644 --- a/google/cloud/aiplatform_v1/types/deployed_model_ref.py +++ b/google/cloud/aiplatform_v1/types/deployed_model_ref.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/encryption_spec.py b/google/cloud/aiplatform_v1/types/encryption_spec.py index 8c9fbadff6..736f71b44c 100644 --- a/google/cloud/aiplatform_v1/types/encryption_spec.py +++ b/google/cloud/aiplatform_v1/types/encryption_spec.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/endpoint.py b/google/cloud/aiplatform_v1/types/endpoint.py index 6eacc2d3dd..e55481fd03 100644 --- a/google/cloud/aiplatform_v1/types/endpoint.py +++ b/google/cloud/aiplatform_v1/types/endpoint.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/endpoint_service.py b/google/cloud/aiplatform_v1/types/endpoint_service.py index 128ee99ce8..af0f750e0d 100644 --- a/google/cloud/aiplatform_v1/types/endpoint_service.py +++ b/google/cloud/aiplatform_v1/types/endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/entity_type.py b/google/cloud/aiplatform_v1/types/entity_type.py index 7c9394543e..cac5e7e99d 100644 --- a/google/cloud/aiplatform_v1/types/entity_type.py +++ b/google/cloud/aiplatform_v1/types/entity_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/env_var.py b/google/cloud/aiplatform_v1/types/env_var.py index 5dea45e5f9..7533071946 100644 --- a/google/cloud/aiplatform_v1/types/env_var.py +++ b/google/cloud/aiplatform_v1/types/env_var.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/evaluated_annotation.py b/google/cloud/aiplatform_v1/types/evaluated_annotation.py index 58707978c5..a10a5d7161 100644 --- a/google/cloud/aiplatform_v1/types/evaluated_annotation.py +++ b/google/cloud/aiplatform_v1/types/evaluated_annotation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/event.py b/google/cloud/aiplatform_v1/types/event.py index 80b1ef0162..7e6aefe5bb 100644 --- a/google/cloud/aiplatform_v1/types/event.py +++ b/google/cloud/aiplatform_v1/types/event.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/execution.py b/google/cloud/aiplatform_v1/types/execution.py index 4701e1990d..59ba2e308d 100644 --- a/google/cloud/aiplatform_v1/types/execution.py +++ b/google/cloud/aiplatform_v1/types/execution.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/explanation.py b/google/cloud/aiplatform_v1/types/explanation.py index 1a3e393c4b..fdfd276f32 100644 --- a/google/cloud/aiplatform_v1/types/explanation.py +++ b/google/cloud/aiplatform_v1/types/explanation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/explanation_metadata.py b/google/cloud/aiplatform_v1/types/explanation_metadata.py index 1a8d31bca1..c2747bbb3b 100644 --- a/google/cloud/aiplatform_v1/types/explanation_metadata.py +++ b/google/cloud/aiplatform_v1/types/explanation_metadata.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -117,7 +117,8 @@ class InputMetadata(proto.Message): input tensor. Defaults to IDENTITY. modality (str): Modality of the feature. Valid values are: - numeric, image. Defaults to numeric. + numeric, image. Defaults to + numeric. feature_value_domain (google.cloud.aiplatform_v1.types.ExplanationMetadata.InputMetadata.FeatureValueDomain): The domain details of the input feature value. Like min/max, original mean or standard @@ -381,10 +382,10 @@ class ColorMap(proto.Enum): Positive: green. Negative: pink. VIRIDIS (2): Viridis color map: A perceptually uniform - color mapping which is easier to see by those - with colorblindness and progresses from yellow - to green to blue. Positive: yellow. Negative: - blue. + color mapping which is + easier to see by those with colorblindness and + progresses from yellow to green to blue. + Positive: yellow. Negative: blue. RED (3): Positive: red. Negative: red. GREEN (4): diff --git a/google/cloud/aiplatform_v1/types/feature.py b/google/cloud/aiplatform_v1/types/feature.py index 4bfb54cc53..2cf8355fc3 100644 --- a/google/cloud/aiplatform_v1/types/feature.py +++ b/google/cloud/aiplatform_v1/types/feature.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/feature_monitoring_stats.py b/google/cloud/aiplatform_v1/types/feature_monitoring_stats.py index 2edeee70f0..ebfd6905c7 100644 --- a/google/cloud/aiplatform_v1/types/feature_monitoring_stats.py +++ b/google/cloud/aiplatform_v1/types/feature_monitoring_stats.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/feature_selector.py b/google/cloud/aiplatform_v1/types/feature_selector.py index fee45e7e65..5460297a00 100644 --- a/google/cloud/aiplatform_v1/types/feature_selector.py +++ b/google/cloud/aiplatform_v1/types/feature_selector.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/featurestore.py b/google/cloud/aiplatform_v1/types/featurestore.py index 1bae61b56b..c27ebb051f 100644 --- a/google/cloud/aiplatform_v1/types/featurestore.py +++ b/google/cloud/aiplatform_v1/types/featurestore.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/featurestore_monitoring.py b/google/cloud/aiplatform_v1/types/featurestore_monitoring.py index f34b81724d..8c59a57daa 100644 --- a/google/cloud/aiplatform_v1/types/featurestore_monitoring.py +++ b/google/cloud/aiplatform_v1/types/featurestore_monitoring.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/featurestore_online_service.py b/google/cloud/aiplatform_v1/types/featurestore_online_service.py index 0905551fff..593d748d44 100644 --- a/google/cloud/aiplatform_v1/types/featurestore_online_service.py +++ b/google/cloud/aiplatform_v1/types/featurestore_online_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/featurestore_service.py b/google/cloud/aiplatform_v1/types/featurestore_service.py index 25947db092..89a311c00d 100644 --- a/google/cloud/aiplatform_v1/types/featurestore_service.py +++ b/google/cloud/aiplatform_v1/types/featurestore_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -87,7 +87,7 @@ class CreateFeaturestoreRequest(proto.Message): parent (str): Required. The resource name of the Location to create Featurestores. Format: - ``projects/{project}/locations/{location}'`` + ``projects/{project}/locations/{location}`` featurestore (google.cloud.aiplatform_v1.types.Featurestore): Required. The Featurestore to create. featurestore_id (str): diff --git a/google/cloud/aiplatform_v1/types/hyperparameter_tuning_job.py b/google/cloud/aiplatform_v1/types/hyperparameter_tuning_job.py index 2d75d0754b..ced73fbab9 100644 --- a/google/cloud/aiplatform_v1/types/hyperparameter_tuning_job.py +++ b/google/cloud/aiplatform_v1/types/hyperparameter_tuning_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/index.py b/google/cloud/aiplatform_v1/types/index.py index adc54c4863..a2e23aaeda 100644 --- a/google/cloud/aiplatform_v1/types/index.py +++ b/google/cloud/aiplatform_v1/types/index.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -111,11 +111,12 @@ class IndexUpdateMethod(proto.Enum): Should not be used. BATCH_UPDATE (1): BatchUpdate: user can call UpdateIndex with - files on Cloud Storage of datapoints to update. + files on Cloud Storage of + datapoints to update. STREAM_UPDATE (2): StreamUpdate: user can call - UpsertDatapoints/DeleteDatapoints to update the - Index and the updates will be applied in + UpsertDatapoints/DeleteDatapoints to update + the Index and the updates will be applied in corresponding DeployedIndexes in nearly real-time. """ diff --git a/google/cloud/aiplatform_v1/types/index_endpoint.py b/google/cloud/aiplatform_v1/types/index_endpoint.py index fe29754537..20f94f0319 100644 --- a/google/cloud/aiplatform_v1/types/index_endpoint.py +++ b/google/cloud/aiplatform_v1/types/index_endpoint.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/index_endpoint_service.py b/google/cloud/aiplatform_v1/types/index_endpoint_service.py index 6066b8d372..a04264ab27 100644 --- a/google/cloud/aiplatform_v1/types/index_endpoint_service.py +++ b/google/cloud/aiplatform_v1/types/index_endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/index_service.py b/google/cloud/aiplatform_v1/types/index_service.py index 96d8e2873d..c9f0815799 100644 --- a/google/cloud/aiplatform_v1/types/index_service.py +++ b/google/cloud/aiplatform_v1/types/index_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/io.py b/google/cloud/aiplatform_v1/types/io.py index fa63f02e66..0133953a66 100644 --- a/google/cloud/aiplatform_v1/types/io.py +++ b/google/cloud/aiplatform_v1/types/io.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/job_service.py b/google/cloud/aiplatform_v1/types/job_service.py index 73d751b1d4..cde6bb2572 100644 --- a/google/cloud/aiplatform_v1/types/job_service.py +++ b/google/cloud/aiplatform_v1/types/job_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/job_state.py b/google/cloud/aiplatform_v1/types/job_state.py index 094ad7ef48..f459046329 100644 --- a/google/cloud/aiplatform_v1/types/job_state.py +++ b/google/cloud/aiplatform_v1/types/job_state.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,6 +59,9 @@ class JobState(proto.Enum): The job is being updated. Only jobs in the ``RUNNING`` state can be updated. After updating, the job goes back to the ``RUNNING`` state. + JOB_STATE_PARTIALLY_SUCCEEDED (11): + The job is partially succeeded, some results + may be missing due to errors. """ JOB_STATE_UNSPECIFIED = 0 JOB_STATE_QUEUED = 1 @@ -71,6 +74,7 @@ class JobState(proto.Enum): JOB_STATE_PAUSED = 8 JOB_STATE_EXPIRED = 9 JOB_STATE_UPDATING = 10 + JOB_STATE_PARTIALLY_SUCCEEDED = 11 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/aiplatform_v1/types/lineage_subgraph.py b/google/cloud/aiplatform_v1/types/lineage_subgraph.py index 0bdb293b80..605f917022 100644 --- a/google/cloud/aiplatform_v1/types/lineage_subgraph.py +++ b/google/cloud/aiplatform_v1/types/lineage_subgraph.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/machine_resources.py b/google/cloud/aiplatform_v1/types/machine_resources.py index d5531444c9..6670bf1854 100644 --- a/google/cloud/aiplatform_v1/types/machine_resources.py +++ b/google/cloud/aiplatform_v1/types/machine_resources.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/manual_batch_tuning_parameters.py b/google/cloud/aiplatform_v1/types/manual_batch_tuning_parameters.py index 04e29cd1de..aeee562759 100644 --- a/google/cloud/aiplatform_v1/types/manual_batch_tuning_parameters.py +++ b/google/cloud/aiplatform_v1/types/manual_batch_tuning_parameters.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/match_service.py b/google/cloud/aiplatform_v1/types/match_service.py index 24ec470384..d93491f4db 100644 --- a/google/cloud/aiplatform_v1/types/match_service.py +++ b/google/cloud/aiplatform_v1/types/match_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/metadata_schema.py b/google/cloud/aiplatform_v1/types/metadata_schema.py index 8f484ed827..b041c4ea09 100644 --- a/google/cloud/aiplatform_v1/types/metadata_schema.py +++ b/google/cloud/aiplatform_v1/types/metadata_schema.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/metadata_service.py b/google/cloud/aiplatform_v1/types/metadata_service.py index 1bd68690a9..d80268181e 100644 --- a/google/cloud/aiplatform_v1/types/metadata_service.py +++ b/google/cloud/aiplatform_v1/types/metadata_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/metadata_store.py b/google/cloud/aiplatform_v1/types/metadata_store.py index 0436b60bc6..5b2b3c314f 100644 --- a/google/cloud/aiplatform_v1/types/metadata_store.py +++ b/google/cloud/aiplatform_v1/types/metadata_store.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/migratable_resource.py b/google/cloud/aiplatform_v1/types/migratable_resource.py index 30335b68af..d5ab153e8e 100644 --- a/google/cloud/aiplatform_v1/types/migratable_resource.py +++ b/google/cloud/aiplatform_v1/types/migratable_resource.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/migration_service.py b/google/cloud/aiplatform_v1/types/migration_service.py index fd4d7bee76..d89dad5db4 100644 --- a/google/cloud/aiplatform_v1/types/migration_service.py +++ b/google/cloud/aiplatform_v1/types/migration_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/model.py b/google/cloud/aiplatform_v1/types/model.py index 8c6c836031..2f06bdeef8 100644 --- a/google/cloud/aiplatform_v1/types/model.py +++ b/google/cloud/aiplatform_v1/types/model.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -109,8 +109,8 @@ class Model(proto.Message): TrainingPipeline that uploaded this Model, if any. pipeline_job (str): - This field is populated if the model is - produced by a pipeline job. + Optional. This field is populated if the + model is produced by a pipeline job. container_spec (google.cloud.aiplatform_v1.types.ModelContainerSpec): Input only. The specification of the container that is to be used when deploying this Model. The specification is diff --git a/google/cloud/aiplatform_v1/types/model_deployment_monitoring_job.py b/google/cloud/aiplatform_v1/types/model_deployment_monitoring_job.py index 14083a168c..f1819b0857 100644 --- a/google/cloud/aiplatform_v1/types/model_deployment_monitoring_job.py +++ b/google/cloud/aiplatform_v1/types/model_deployment_monitoring_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/model_evaluation.py b/google/cloud/aiplatform_v1/types/model_evaluation.py index 1b45159fd4..9533d67f58 100644 --- a/google/cloud/aiplatform_v1/types/model_evaluation.py +++ b/google/cloud/aiplatform_v1/types/model_evaluation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/model_evaluation_slice.py b/google/cloud/aiplatform_v1/types/model_evaluation_slice.py index 88776fa3be..1fe6455df9 100644 --- a/google/cloud/aiplatform_v1/types/model_evaluation_slice.py +++ b/google/cloud/aiplatform_v1/types/model_evaluation_slice.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/model_garden_service.py b/google/cloud/aiplatform_v1/types/model_garden_service.py index 8ec6d79256..7eca994c99 100644 --- a/google/cloud/aiplatform_v1/types/model_garden_service.py +++ b/google/cloud/aiplatform_v1/types/model_garden_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/model_monitoring.py b/google/cloud/aiplatform_v1/types/model_monitoring.py index 49dcff0f55..89e4196a1f 100644 --- a/google/cloud/aiplatform_v1/types/model_monitoring.py +++ b/google/cloud/aiplatform_v1/types/model_monitoring.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/model_service.py b/google/cloud/aiplatform_v1/types/model_service.py index 580eab5d29..8cec4f5c33 100644 --- a/google/cloud/aiplatform_v1/types/model_service.py +++ b/google/cloud/aiplatform_v1/types/model_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ from google.cloud.aiplatform_v1.types import encryption_spec as gca_encryption_spec from google.cloud.aiplatform_v1.types import evaluated_annotation +from google.cloud.aiplatform_v1.types import explanation from google.cloud.aiplatform_v1.types import io from google.cloud.aiplatform_v1.types import model as gca_model from google.cloud.aiplatform_v1.types import model_evaluation as gca_model_evaluation @@ -41,11 +42,14 @@ "ListModelVersionsRequest", "ListModelVersionsResponse", "UpdateModelRequest", + "UpdateExplanationDatasetRequest", + "UpdateExplanationDatasetOperationMetadata", "DeleteModelRequest", "DeleteModelVersionRequest", "MergeVersionAliasesRequest", "ExportModelRequest", "ExportModelOperationMetadata", + "UpdateExplanationDatasetResponse", "ExportModelResponse", "CopyModelRequest", "CopyModelOperationMetadata", @@ -441,6 +445,46 @@ class UpdateModelRequest(proto.Message): ) +class UpdateExplanationDatasetRequest(proto.Message): + r"""Request message for + [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset]. + + Attributes: + model (str): + Required. The resource name of the Model to update. Format: + ``projects/{project}/locations/{location}/models/{model}`` + examples (google.cloud.aiplatform_v1.types.Examples): + The example config containing the location of + the dataset. + """ + + model: str = proto.Field( + proto.STRING, + number=1, + ) + examples: explanation.Examples = proto.Field( + proto.MESSAGE, + number=2, + message=explanation.Examples, + ) + + +class UpdateExplanationDatasetOperationMetadata(proto.Message): + r"""Runtime operation information for + [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset]. + + Attributes: + generic_metadata (google.cloud.aiplatform_v1.types.GenericOperationMetadata): + The common part of the operation metadata. + """ + + generic_metadata: operation.GenericOperationMetadata = proto.Field( + proto.MESSAGE, + number=1, + message=operation.GenericOperationMetadata, + ) + + class DeleteModelRequest(proto.Message): r"""Request message for [ModelService.DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel]. @@ -637,6 +681,14 @@ class OutputInfo(proto.Message): ) +class UpdateExplanationDatasetResponse(proto.Message): + r"""Response message of + [ModelService.UpdateExplanationDataset][google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset] + operation. + + """ + + class ExportModelResponse(proto.Message): r"""Response message of [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel] diff --git a/google/cloud/aiplatform_v1/types/nas_job.py b/google/cloud/aiplatform_v1/types/nas_job.py index 1cefd742f2..befeab58a1 100644 --- a/google/cloud/aiplatform_v1/types/nas_job.py +++ b/google/cloud/aiplatform_v1/types/nas_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -157,7 +157,7 @@ class NasJob(proto.Message): class NasTrialDetail(proto.Message): - r"""Represents a NasTrial details along with it's parameters. If + r"""Represents a NasTrial details along with its parameters. If there is a corresponding train NasTrial, the train NasTrial is also returned. diff --git a/google/cloud/aiplatform_v1/types/operation.py b/google/cloud/aiplatform_v1/types/operation.py index 78fab63c3b..74c0701bef 100644 --- a/google/cloud/aiplatform_v1/types/operation.py +++ b/google/cloud/aiplatform_v1/types/operation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/pipeline_failure_policy.py b/google/cloud/aiplatform_v1/types/pipeline_failure_policy.py index 3181e2a899..e7985a5124 100644 --- a/google/cloud/aiplatform_v1/types/pipeline_failure_policy.py +++ b/google/cloud/aiplatform_v1/types/pipeline_failure_policy.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/pipeline_job.py b/google/cloud/aiplatform_v1/types/pipeline_job.py index 0daea846e0..d60e7cbede 100644 --- a/google/cloud/aiplatform_v1/types/pipeline_job.py +++ b/google/cloud/aiplatform_v1/types/pipeline_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -75,15 +75,22 @@ class PipelineJob(proto.Message): pipeline execution. Only populated when the pipeline's state is FAILED or CANCELLED. labels (MutableMapping[str, str]): - The labels with user-defined metadata to - organize PipelineJob. - Label keys and values can be no longer than 64 - characters (Unicode codepoints), can only - contain lowercase letters, numeric characters, - underscores and dashes. International characters - are allowed. - See https://goo.gl/xmQnxf for more information - and examples of labels. + The labels with user-defined metadata to organize + PipelineJob. + + Label keys and values can be no longer than 64 characters + (Unicode codepoints), can only contain lowercase letters, + numeric characters, underscores and dashes. International + characters are allowed. + + See https://goo.gl/xmQnxf for more information and examples + of labels. + + Note there is some reserved label key for Vertex AI + Pipelines. + + - ``vertex-ai-pipelines-run-billing-id``, user set value + will get overrided. runtime_config (google.cloud.aiplatform_v1.types.PipelineJob.RuntimeConfig): Runtime config of the pipeline. encryption_spec (google.cloud.aiplatform_v1.types.EncryptionSpec): @@ -115,6 +122,15 @@ class PipelineJob(proto.Message): to the Google Cloud resources being launched, if applied, such as Vertex AI Training or Dataflow job. If left unspecified, the workload is not peered with any network. + reserved_ip_ranges (MutableSequence[str]): + A list of names for the reserved ip ranges under the VPC + network that can be used for this Pipeline Job's workload. + + If set, we will deploy the Pipeline Job's workload within + the provided ip ranges. Otherwise, the job will be deployed + to any ip ranges under the provided VPC network. + + Example: ['vertex-ai-ip-range']. template_uri (str): A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1.PipelineJob.pipeline_spec], @@ -296,6 +312,10 @@ class InputArtifact(proto.Message): proto.STRING, number=18, ) + reserved_ip_ranges: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=25, + ) template_uri: str = proto.Field( proto.STRING, number=19, diff --git a/google/cloud/aiplatform_v1/types/pipeline_service.py b/google/cloud/aiplatform_v1/types/pipeline_service.py index 8ba8a1b2ef..155a61bd64 100644 --- a/google/cloud/aiplatform_v1/types/pipeline_service.py +++ b/google/cloud/aiplatform_v1/types/pipeline_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/pipeline_state.py b/google/cloud/aiplatform_v1/types/pipeline_state.py index 75e5950825..0440dabd30 100644 --- a/google/cloud/aiplatform_v1/types/pipeline_state.py +++ b/google/cloud/aiplatform_v1/types/pipeline_state.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/prediction_service.py b/google/cloud/aiplatform_v1/types/prediction_service.py index 24e6501dbd..c30669cdc0 100644 --- a/google/cloud/aiplatform_v1/types/prediction_service.py +++ b/google/cloud/aiplatform_v1/types/prediction_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/publisher_model.py b/google/cloud/aiplatform_v1/types/publisher_model.py index aa467c8db3..c9f60ceb9c 100644 --- a/google/cloud/aiplatform_v1/types/publisher_model.py +++ b/google/cloud/aiplatform_v1/types/publisher_model.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/saved_query.py b/google/cloud/aiplatform_v1/types/saved_query.py index d0f0c036e7..a20fb11f2c 100644 --- a/google/cloud/aiplatform_v1/types/saved_query.py +++ b/google/cloud/aiplatform_v1/types/saved_query.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/service_networking.py b/google/cloud/aiplatform_v1/types/service_networking.py index f6d484bccb..44c86c386f 100644 --- a/google/cloud/aiplatform_v1/types/service_networking.py +++ b/google/cloud/aiplatform_v1/types/service_networking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/specialist_pool.py b/google/cloud/aiplatform_v1/types/specialist_pool.py index ed371fe56b..c4c172e663 100644 --- a/google/cloud/aiplatform_v1/types/specialist_pool.py +++ b/google/cloud/aiplatform_v1/types/specialist_pool.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/specialist_pool_service.py b/google/cloud/aiplatform_v1/types/specialist_pool_service.py index 3bf16abee7..8165ab5588 100644 --- a/google/cloud/aiplatform_v1/types/specialist_pool_service.py +++ b/google/cloud/aiplatform_v1/types/specialist_pool_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/study.py b/google/cloud/aiplatform_v1/types/study.py index f038d52130..e889b23c0c 100644 --- a/google/cloud/aiplatform_v1/types/study.py +++ b/google/cloud/aiplatform_v1/types/study.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/tensorboard.py b/google/cloud/aiplatform_v1/types/tensorboard.py index f979b0b39b..88dd75a7db 100644 --- a/google/cloud/aiplatform_v1/types/tensorboard.py +++ b/google/cloud/aiplatform_v1/types/tensorboard.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/tensorboard_data.py b/google/cloud/aiplatform_v1/types/tensorboard_data.py index cad82c4128..745d92f48e 100644 --- a/google/cloud/aiplatform_v1/types/tensorboard_data.py +++ b/google/cloud/aiplatform_v1/types/tensorboard_data.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/tensorboard_experiment.py b/google/cloud/aiplatform_v1/types/tensorboard_experiment.py index 3749214093..081b17afb8 100644 --- a/google/cloud/aiplatform_v1/types/tensorboard_experiment.py +++ b/google/cloud/aiplatform_v1/types/tensorboard_experiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/tensorboard_run.py b/google/cloud/aiplatform_v1/types/tensorboard_run.py index f2ad4331b5..17307d24ba 100644 --- a/google/cloud/aiplatform_v1/types/tensorboard_run.py +++ b/google/cloud/aiplatform_v1/types/tensorboard_run.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/tensorboard_service.py b/google/cloud/aiplatform_v1/types/tensorboard_service.py index 2eb77544de..f89f56238c 100644 --- a/google/cloud/aiplatform_v1/types/tensorboard_service.py +++ b/google/cloud/aiplatform_v1/types/tensorboard_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -37,12 +37,12 @@ manifest={ "CreateTensorboardRequest", "GetTensorboardRequest", - "ReadTensorboardUsageRequest", - "ReadTensorboardUsageResponse", "ListTensorboardsRequest", "ListTensorboardsResponse", "UpdateTensorboardRequest", "DeleteTensorboardRequest", + "ReadTensorboardUsageRequest", + "ReadTensorboardUsageResponse", "CreateTensorboardExperimentRequest", "GetTensorboardExperimentRequest", "ListTensorboardExperimentsRequest", @@ -123,75 +123,6 @@ class GetTensorboardRequest(proto.Message): ) -class ReadTensorboardUsageRequest(proto.Message): - r"""Request message for [TensorboardService.GetTensorboardUsage][]. - - Attributes: - tensorboard (str): - Required. The name of the Tensorboard resource. Format: - ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` - """ - - tensorboard: str = proto.Field( - proto.STRING, - number=1, - ) - - -class ReadTensorboardUsageResponse(proto.Message): - r"""Response message for - [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. - - Attributes: - monthly_usage_data (MutableMapping[str, google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse.PerMonthUsageData]): - Maps year-month (YYYYMM) string to per month - usage data. - """ - - class PerUserUsageData(proto.Message): - r"""Per user usage data. - - Attributes: - username (str): - User's username - view_count (int): - Number of times the user has read data within - the Tensorboard. - """ - - username: str = proto.Field( - proto.STRING, - number=1, - ) - view_count: int = proto.Field( - proto.INT64, - number=2, - ) - - class PerMonthUsageData(proto.Message): - r"""Per month usage data - - Attributes: - user_usage_data (MutableSequence[google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse.PerUserUsageData]): - Usage data for each user in the given month. - """ - - user_usage_data: MutableSequence[ - "ReadTensorboardUsageResponse.PerUserUsageData" - ] = proto.RepeatedField( - proto.MESSAGE, - number=1, - message="ReadTensorboardUsageResponse.PerUserUsageData", - ) - - monthly_usage_data: MutableMapping[str, PerMonthUsageData] = proto.MapField( - proto.STRING, - proto.MESSAGE, - number=1, - message=PerMonthUsageData, - ) - - class ListTensorboardsRequest(proto.Message): r"""Request message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1.TensorboardService.ListTensorboards]. @@ -326,6 +257,76 @@ class DeleteTensorboardRequest(proto.Message): ) +class ReadTensorboardUsageRequest(proto.Message): + r"""Request message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. + + Attributes: + tensorboard (str): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + """ + + tensorboard: str = proto.Field( + proto.STRING, + number=1, + ) + + +class ReadTensorboardUsageResponse(proto.Message): + r"""Response message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage]. + + Attributes: + monthly_usage_data (MutableMapping[str, google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse.PerMonthUsageData]): + Maps year-month (YYYYMM) string to per month + usage data. + """ + + class PerUserUsageData(proto.Message): + r"""Per user usage data. + + Attributes: + username (str): + User's username + view_count (int): + Number of times the user has read data within + the Tensorboard. + """ + + username: str = proto.Field( + proto.STRING, + number=1, + ) + view_count: int = proto.Field( + proto.INT64, + number=2, + ) + + class PerMonthUsageData(proto.Message): + r"""Per month usage data + + Attributes: + user_usage_data (MutableSequence[google.cloud.aiplatform_v1.types.ReadTensorboardUsageResponse.PerUserUsageData]): + Usage data for each user in the given month. + """ + + user_usage_data: MutableSequence[ + "ReadTensorboardUsageResponse.PerUserUsageData" + ] = proto.RepeatedField( + proto.MESSAGE, + number=1, + message="ReadTensorboardUsageResponse.PerUserUsageData", + ) + + monthly_usage_data: MutableMapping[str, PerMonthUsageData] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=1, + message=PerMonthUsageData, + ) + + class CreateTensorboardExperimentRequest(proto.Message): r"""Request message for [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment]. diff --git a/google/cloud/aiplatform_v1/types/tensorboard_time_series.py b/google/cloud/aiplatform_v1/types/tensorboard_time_series.py index ae83a3b7fd..6166d402d9 100644 --- a/google/cloud/aiplatform_v1/types/tensorboard_time_series.py +++ b/google/cloud/aiplatform_v1/types/tensorboard_time_series.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/training_pipeline.py b/google/cloud/aiplatform_v1/types/training_pipeline.py index 9e8451ed3a..b0c68c496f 100644 --- a/google/cloud/aiplatform_v1/types/training_pipeline.py +++ b/google/cloud/aiplatform_v1/types/training_pipeline.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/types.py b/google/cloud/aiplatform_v1/types/types.py index 38d2bd6534..43fe4225de 100644 --- a/google/cloud/aiplatform_v1/types/types.py +++ b/google/cloud/aiplatform_v1/types/types.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/unmanaged_container_model.py b/google/cloud/aiplatform_v1/types/unmanaged_container_model.py index 3ca22d4283..dd14f6c388 100644 --- a/google/cloud/aiplatform_v1/types/unmanaged_container_model.py +++ b/google/cloud/aiplatform_v1/types/unmanaged_container_model.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/user_action_reference.py b/google/cloud/aiplatform_v1/types/user_action_reference.py index 3402c1e234..c945405d6d 100644 --- a/google/cloud/aiplatform_v1/types/user_action_reference.py +++ b/google/cloud/aiplatform_v1/types/user_action_reference.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/value.py b/google/cloud/aiplatform_v1/types/value.py index 8b0c8a9d77..dff1089c25 100644 --- a/google/cloud/aiplatform_v1/types/value.py +++ b/google/cloud/aiplatform_v1/types/value.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1/types/vizier_service.py b/google/cloud/aiplatform_v1/types/vizier_service.py index d49ac6edbb..1aab958d31 100644 --- a/google/cloud/aiplatform_v1/types/vizier_service.py +++ b/google/cloud/aiplatform_v1/types/vizier_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/__init__.py b/google/cloud/aiplatform_v1beta1/__init__.py index c61f1443f2..ba9958bb7d 100644 --- a/google/cloud/aiplatform_v1beta1/__init__.py +++ b/google/cloud/aiplatform_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -52,6 +52,8 @@ from .services.model_garden_service import ModelGardenServiceAsyncClient from .services.model_service import ModelServiceClient from .services.model_service import ModelServiceAsyncClient +from .services.persistent_resource_service import PersistentResourceServiceClient +from .services.persistent_resource_service import PersistentResourceServiceAsyncClient from .services.pipeline_service import PipelineServiceClient from .services.pipeline_service import PipelineServiceAsyncClient from .services.prediction_service import PredictionServiceClient @@ -91,6 +93,7 @@ from .types.dataset_service import CreateDatasetRequest from .types.dataset_service import DataItemView from .types.dataset_service import DeleteDatasetRequest +from .types.dataset_service import DeleteSavedQueryRequest from .types.dataset_service import ExportDataOperationMetadata from .types.dataset_service import ExportDataRequest from .types.dataset_service import ExportDataResponse @@ -461,6 +464,16 @@ from .types.nas_job import NasTrialDetail from .types.operation import DeleteOperationMetadata from .types.operation import GenericOperationMetadata +from .types.persistent_resource import PersistentResource +from .types.persistent_resource import ResourcePool +from .types.persistent_resource import ResourceRuntimeSpec +from .types.persistent_resource import ServiceAccountSpec +from .types.persistent_resource_service import CreatePersistentResourceOperationMetadata +from .types.persistent_resource_service import CreatePersistentResourceRequest +from .types.persistent_resource_service import DeletePersistentResourceRequest +from .types.persistent_resource_service import GetPersistentResourceRequest +from .types.persistent_resource_service import ListPersistentResourcesRequest +from .types.persistent_resource_service import ListPersistentResourcesResponse from .types.pipeline_failure_policy import PipelineFailurePolicy from .types.pipeline_job import PipelineJob from .types.pipeline_job import PipelineJobDetail @@ -550,6 +563,8 @@ from .types.tensorboard_service import ListTensorboardTimeSeriesResponse from .types.tensorboard_service import ReadTensorboardBlobDataRequest from .types.tensorboard_service import ReadTensorboardBlobDataResponse +from .types.tensorboard_service import ReadTensorboardSizeRequest +from .types.tensorboard_service import ReadTensorboardSizeResponse from .types.tensorboard_service import ReadTensorboardTimeSeriesDataRequest from .types.tensorboard_service import ReadTensorboardTimeSeriesDataResponse from .types.tensorboard_service import ReadTensorboardUsageRequest @@ -615,6 +630,7 @@ "MigrationServiceAsyncClient", "ModelGardenServiceAsyncClient", "ModelServiceAsyncClient", + "PersistentResourceServiceAsyncClient", "PipelineServiceAsyncClient", "PredictionServiceAsyncClient", "ScheduleServiceAsyncClient", @@ -708,6 +724,8 @@ "CreateMetadataStoreRequest", "CreateModelDeploymentMonitoringJobRequest", "CreateNasJobRequest", + "CreatePersistentResourceOperationMetadata", + "CreatePersistentResourceRequest", "CreatePipelineJobRequest", "CreateScheduleRequest", "CreateSpecialistPoolOperationMetadata", @@ -755,7 +773,9 @@ "DeleteModelVersionRequest", "DeleteNasJobRequest", "DeleteOperationMetadata", + "DeletePersistentResourceRequest", "DeletePipelineJobRequest", + "DeleteSavedQueryRequest", "DeleteScheduleRequest", "DeleteSpecialistPoolRequest", "DeleteStudyRequest", @@ -858,6 +878,7 @@ "GetModelRequest", "GetNasJobRequest", "GetNasTrialDetailRequest", + "GetPersistentResourceRequest", "GetPipelineJobRequest", "GetPublisherModelRequest", "GetScheduleRequest", @@ -947,6 +968,8 @@ "ListNasTrialDetailsResponse", "ListOptimalTrialsRequest", "ListOptimalTrialsResponse", + "ListPersistentResourcesRequest", + "ListPersistentResourcesResponse", "ListPipelineJobsRequest", "ListPipelineJobsResponse", "ListSavedQueriesRequest", @@ -1015,6 +1038,8 @@ "NfsMount", "PauseModelDeploymentMonitoringJobRequest", "PauseScheduleRequest", + "PersistentResource", + "PersistentResourceServiceClient", "PipelineFailurePolicy", "PipelineJob", "PipelineJobDetail", @@ -1057,6 +1082,8 @@ "ReadIndexDatapointsResponse", "ReadTensorboardBlobDataRequest", "ReadTensorboardBlobDataResponse", + "ReadTensorboardSizeRequest", + "ReadTensorboardSizeResponse", "ReadTensorboardTimeSeriesDataRequest", "ReadTensorboardTimeSeriesDataResponse", "ReadTensorboardUsageRequest", @@ -1065,6 +1092,8 @@ "RemoveContextChildrenResponse", "RemoveDatapointsRequest", "RemoveDatapointsResponse", + "ResourcePool", + "ResourceRuntimeSpec", "ResourcesConsumed", "ResumeModelDeploymentMonitoringJobRequest", "ResumeScheduleRequest", @@ -1084,6 +1113,7 @@ "SearchMigratableResourcesResponse", "SearchModelDeploymentMonitoringStatsAnomaliesRequest", "SearchModelDeploymentMonitoringStatsAnomaliesResponse", + "ServiceAccountSpec", "SmoothGradConfig", "SpecialistPool", "SpecialistPoolServiceClient", diff --git a/google/cloud/aiplatform_v1beta1/gapic_metadata.json b/google/cloud/aiplatform_v1beta1/gapic_metadata.json index 2f5a4e0d5f..9eb752c8a2 100644 --- a/google/cloud/aiplatform_v1beta1/gapic_metadata.json +++ b/google/cloud/aiplatform_v1beta1/gapic_metadata.json @@ -20,6 +20,11 @@ "delete_dataset" ] }, + "DeleteSavedQuery": { + "methods": [ + "delete_saved_query" + ] + }, "ExportData": { "methods": [ "export_data" @@ -85,6 +90,11 @@ "delete_dataset" ] }, + "DeleteSavedQuery": { + "methods": [ + "delete_saved_query" + ] + }, "ExportData": { "methods": [ "export_data" @@ -1727,6 +1737,60 @@ } } }, + "PersistentResourceService": { + "clients": { + "grpc": { + "libraryClient": "PersistentResourceServiceClient", + "rpcs": { + "CreatePersistentResource": { + "methods": [ + "create_persistent_resource" + ] + }, + "DeletePersistentResource": { + "methods": [ + "delete_persistent_resource" + ] + }, + "GetPersistentResource": { + "methods": [ + "get_persistent_resource" + ] + }, + "ListPersistentResources": { + "methods": [ + "list_persistent_resources" + ] + } + } + }, + "grpc-async": { + "libraryClient": "PersistentResourceServiceAsyncClient", + "rpcs": { + "CreatePersistentResource": { + "methods": [ + "create_persistent_resource" + ] + }, + "DeletePersistentResource": { + "methods": [ + "delete_persistent_resource" + ] + }, + "GetPersistentResource": { + "methods": [ + "get_persistent_resource" + ] + }, + "ListPersistentResources": { + "methods": [ + "list_persistent_resources" + ] + } + } + } + } + }, "PipelineService": { "clients": { "grpc": { @@ -2143,6 +2207,11 @@ "read_tensorboard_blob_data" ] }, + "ReadTensorboardSize": { + "methods": [ + "read_tensorboard_size" + ] + }, "ReadTensorboardTimeSeriesData": { "methods": [ "read_tensorboard_time_series_data" @@ -2293,6 +2362,11 @@ "read_tensorboard_blob_data" ] }, + "ReadTensorboardSize": { + "methods": [ + "read_tensorboard_size" + ] + }, "ReadTensorboardTimeSeriesData": { "methods": [ "read_tensorboard_time_series_data" diff --git a/google/cloud/aiplatform_v1beta1/services/__init__.py b/google/cloud/aiplatform_v1beta1/services/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/google/cloud/aiplatform_v1beta1/services/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/dataset_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/__init__.py index 163172b9a0..3b5da01084 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/dataset_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/async_client.py index 257fa42a80..d3df576ddd 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -68,8 +68,8 @@ class DatasetServiceAsyncClient: - """The service that handles the CRUD of Vertex AI Dataset and - its child resources. + """The service that manages Vertex AI Dataset and its child + resources. """ _client: DatasetServiceClient @@ -1430,6 +1430,131 @@ async def sample_list_saved_queries(): # Done; return the response. return response + async def delete_saved_query( + self, + request: Optional[Union[dataset_service.DeleteSavedQueryRequest, dict]] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operation_async.AsyncOperation: + r"""Deletes a SavedQuery. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + async def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1beta1.DatasetServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1beta1.types.DeleteSavedQueryRequest, dict]]): + The request object. Request message for + [DatasetService.DeleteSavedQuery][google.cloud.aiplatform.v1beta1.DatasetService.DeleteSavedQuery]. + name (:class:`str`): + Required. The resource name of the SavedQuery to delete. + Format: + ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation_async.AsyncOperation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated + empty messages in your APIs. A typical example is to + use it as the request or the response type of an API + method. For instance: + + service Foo { + rpc Bar(google.protobuf.Empty) returns + (google.protobuf.Empty); + + } + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = dataset_service.DeleteSavedQueryRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.delete_saved_query, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = operation_async.from_gapic( + response, + self._client._transport.operations_client, + empty_pb2.Empty, + metadata_type=gca_operation.DeleteOperationMetadata, + ) + + # Done; return the response. + return response + async def get_annotation_spec( self, request: Optional[Union[dataset_service.GetAnnotationSpecRequest, dict]] = None, @@ -2334,7 +2459,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "DatasetServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/dataset_service/client.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/client.py index f05dc7418b..fdd75c134d 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -108,8 +108,8 @@ def get_transport_class( class DatasetServiceClient(metaclass=DatasetServiceClientMeta): - """The service that handles the CRUD of Vertex AI Dataset and - its child resources. + """The service that manages Vertex AI Dataset and its child + resources. """ @staticmethod @@ -1746,6 +1746,131 @@ def sample_list_saved_queries(): # Done; return the response. return response + def delete_saved_query( + self, + request: Optional[Union[dataset_service.DeleteSavedQueryRequest, dict]] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> gac_operation.Operation: + r"""Deletes a SavedQuery. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1beta1.DatasetServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1beta1.types.DeleteSavedQueryRequest, dict]): + The request object. Request message for + [DatasetService.DeleteSavedQuery][google.cloud.aiplatform.v1beta1.DatasetService.DeleteSavedQuery]. + name (str): + Required. The resource name of the SavedQuery to delete. + Format: + ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation.Operation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated + empty messages in your APIs. A typical example is to + use it as the request or the response type of an API + method. For instance: + + service Foo { + rpc Bar(google.protobuf.Empty) returns + (google.protobuf.Empty); + + } + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a dataset_service.DeleteSavedQueryRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, dataset_service.DeleteSavedQueryRequest): + request = dataset_service.DeleteSavedQueryRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.delete_saved_query] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = gac_operation.from_gapic( + response, + self._transport.operations_client, + empty_pb2.Empty, + metadata_type=gca_operation.DeleteOperationMetadata, + ) + + # Done; return the response. + return response + def get_annotation_spec( self, request: Optional[Union[dataset_service.GetAnnotationSpecRequest, dict]] = None, diff --git a/google/cloud/aiplatform_v1beta1/services/dataset_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/pagers.py index a5e149c6d7..47000c530b 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/__init__.py index 07bc11c0c8..9b9eb92f49 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/base.py index 0fd09c91ed..938bcc5522 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -182,6 +182,11 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.delete_saved_query: gapic_v1.method.wrap_method( + self.delete_saved_query, + default_timeout=None, + client_info=client_info, + ), self.get_annotation_spec: gapic_v1.method.wrap_method( self.get_annotation_spec, default_timeout=5.0, @@ -310,6 +315,15 @@ def list_saved_queries( ]: raise NotImplementedError() + @property + def delete_saved_query( + self, + ) -> Callable[ + [dataset_service.DeleteSavedQueryRequest], + Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + ]: + raise NotImplementedError() + @property def get_annotation_spec( self, diff --git a/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc.py index 52dc5632d6..5ffcd07857 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -40,8 +40,8 @@ class DatasetServiceGrpcTransport(DatasetServiceTransport): """gRPC backend transport for DatasetService. - The service that handles the CRUD of Vertex AI Dataset and - its child resources. + The service that manages Vertex AI Dataset and its child + resources. This class defines the same methods as the primary client, so the primary client can load the underlying transport implementation @@ -524,6 +524,32 @@ def list_saved_queries( ) return self._stubs["list_saved_queries"] + @property + def delete_saved_query( + self, + ) -> Callable[[dataset_service.DeleteSavedQueryRequest], operations_pb2.Operation]: + r"""Return a callable for the delete saved query method over gRPC. + + Deletes a SavedQuery. + + Returns: + Callable[[~.DeleteSavedQueryRequest], + ~.Operation]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_saved_query" not in self._stubs: + self._stubs["delete_saved_query"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.DatasetService/DeleteSavedQuery", + request_serializer=dataset_service.DeleteSavedQueryRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["delete_saved_query"] + @property def get_annotation_spec( self, diff --git a/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc_asyncio.py index da660ded05..adfcc32e0c 100644 --- a/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/dataset_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -41,8 +41,8 @@ class DatasetServiceGrpcAsyncIOTransport(DatasetServiceTransport): """gRPC AsyncIO backend transport for DatasetService. - The service that handles the CRUD of Vertex AI Dataset and - its child resources. + The service that manages Vertex AI Dataset and its child + resources. This class defines the same methods as the primary client, so the primary client can load the underlying transport implementation @@ -541,6 +541,34 @@ def list_saved_queries( ) return self._stubs["list_saved_queries"] + @property + def delete_saved_query( + self, + ) -> Callable[ + [dataset_service.DeleteSavedQueryRequest], Awaitable[operations_pb2.Operation] + ]: + r"""Return a callable for the delete saved query method over gRPC. + + Deletes a SavedQuery. + + Returns: + Callable[[~.DeleteSavedQueryRequest], + Awaitable[~.Operation]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_saved_query" not in self._stubs: + self._stubs["delete_saved_query"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.DatasetService/DeleteSavedQuery", + request_serializer=dataset_service.DeleteSavedQueryRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["delete_saved_query"] + @property def get_annotation_spec( self, diff --git a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/__init__.py index 11601f1ec9..9d061415ec 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/async_client.py index 1ad583f2fa..ed6edebfa7 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1579,7 +1579,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "DeploymentResourcePoolServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/client.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/client.py index eef675da61..34b7878e8f 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/pagers.py index 0fa12cbb0e..e24de64d6c 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/__init__.py index 9c44a4a735..f2fc5498d1 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/base.py index 356d1f7f22..86eb5e500e 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc.py index 6852a37f6a..c42fa8dae8 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc_asyncio.py index 38e874f8f7..17bd0fd554 100644 --- a/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/deployment_resource_pool_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/endpoint_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/__init__.py index 3c37159f9d..c9ed25a83e 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py index 15983ccbc2..0dc04c4097 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -2012,7 +2012,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "EndpointServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/endpoint_service/client.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/client.py index e91b4381b3..2d17f5ab83 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/endpoint_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/pagers.py index 8397eeb7b8..0995ea48d5 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/__init__.py index 92f3485150..ee0dfda4a1 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/base.py index bdc7682030..c2179f9f12 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc.py index 535b668105..dd1cf943f7 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc_asyncio.py index ae0c77a093..2329b69ae0 100644 --- a/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/endpoint_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/__init__.py index a2f6b5fa66..b718e8a675 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/async_client.py index 64d13ad5f7..7005158ab7 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1289,7 +1289,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "FeaturestoreOnlineServingServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/client.py b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/client.py index 64b6b59f1f..ec72a37a95 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/__init__.py index c929d350e6..c3aaef3f54 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/base.py index 6d2e6bcb4a..60941339a5 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc.py index 846d3565d8..3054f9cad7 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc_asyncio.py index dcd5d17ad5..9c0631e0eb 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_online_serving_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/__init__.py index 3f53c57568..1d93da973a 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/async_client.py index 23520be59d..aa6784e490 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -297,7 +297,7 @@ async def sample_create_featurestore(): parent (:class:`str`): Required. The resource name of the Location to create Featurestores. Format: - ``projects/{project}/locations/{location}'`` + ``projects/{project}/locations/{location}`` This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this @@ -2356,12 +2356,13 @@ async def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. .. code-block:: python @@ -3769,7 +3770,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "FeaturestoreServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/featurestore_service/client.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/client.py index a54f2a4ca3..5b2e670136 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -565,7 +565,7 @@ def sample_create_featurestore(): parent (str): Required. The resource name of the Location to create Featurestores. Format: - ``projects/{project}/locations/{location}'`` + ``projects/{project}/locations/{location}`` This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this @@ -2624,12 +2624,13 @@ def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. .. code-block:: python diff --git a/google/cloud/aiplatform_v1beta1/services/featurestore_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/pagers.py index 71fcd1f863..b8f87d9b10 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/__init__.py index 640a209314..86a54230df 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/base.py index e35e7eeff9..75b25ff177 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc.py index 1026147eb8..71b1cd2cd0 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -728,12 +728,13 @@ def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. Returns: diff --git a/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc_asyncio.py index 8d6ec49b70..bf71566281 100644 --- a/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/featurestore_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -746,12 +746,13 @@ def import_feature_values( There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct - Feature values for the same entity ID and timestamp. + Feature values for the same entity ID and + timestamp. - Source is modified during an import. This includes - adding, updating, or removing source data and/or - metadata. Examples of updating metadata include but are - not limited to changing storage location, storage class, - or retention policy. + adding, updating, or removing source data and/or + metadata. Examples of updating metadata include but + are not limited to changing storage location, storage + class, or retention policy. - Online serving cluster is under-provisioned. Returns: diff --git a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/__init__.py index 7cde1c0f69..dafe70ea6e 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/async_client.py index 8ce2bbb293..bdbd766609 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1931,7 +1931,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "IndexEndpointServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/client.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/client.py index fdd8c09dfc..f71c80d784 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/pagers.py index 375e54edee..c5b8f1a846 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/__init__.py index d41c1630fb..a571d9b1ae 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/base.py index acb496e5c8..03e4376681 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc.py index a2bbe1f545..67f4226234 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc_asyncio.py index b01ef941b6..3c553d6a92 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/index_endpoint_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/index_service/__init__.py index a8323caaf7..4006f5bb31 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/index_service/async_client.py index 972e6c918e..703cf678d9 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1684,7 +1684,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "IndexServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/index_service/client.py b/google/cloud/aiplatform_v1beta1/services/index_service/client.py index 13f231ccd9..2e47a43dd3 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/index_service/pagers.py index e47b08bf94..5175b9bf1c 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/index_service/transports/__init__.py index c8bcfc04bf..33e728529e 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/index_service/transports/base.py index d63201562b..668cb5924f 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc.py index 4197bde564..f1051a8bdc 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc_asyncio.py index 05dc1b6b35..9ef8864cc4 100644 --- a/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/index_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/job_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/job_service/__init__.py index 3d88580841..5088fe0a62 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/job_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/job_service/async_client.py index 16ecda161b..e6eb5c515d 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -143,6 +143,10 @@ class JobServiceAsyncClient: parse_notification_channel_path = staticmethod( JobServiceClient.parse_notification_channel_path ) + persistent_resource_path = staticmethod(JobServiceClient.persistent_resource_path) + parse_persistent_resource_path = staticmethod( + JobServiceClient.parse_persistent_resource_path + ) tensorboard_path = staticmethod(JobServiceClient.tensorboard_path) parse_tensorboard_path = staticmethod(JobServiceClient.parse_tensorboard_path) trial_path = staticmethod(JobServiceClient.trial_path) @@ -2635,7 +2639,7 @@ async def sample_get_nas_trial_detail(): Returns: google.cloud.aiplatform_v1beta1.types.NasTrialDetail: Represents a NasTrial details along - with it's parameters. If there is a + with its parameters. If there is a corresponding train NasTrial, the train NasTrial is also returned. @@ -5051,7 +5055,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "JobServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/job_service/client.py b/google/cloud/aiplatform_v1beta1/services/job_service/client.py index 2ee69e44c2..e21c60131d 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -501,6 +501,28 @@ def parse_notification_channel_path(path: str) -> Dict[str, str]: ) return m.groupdict() if m else {} + @staticmethod + def persistent_resource_path( + project: str, + location: str, + persistent_resource: str, + ) -> str: + """Returns a fully-qualified persistent_resource string.""" + return "projects/{project}/locations/{location}/persistentResources/{persistent_resource}".format( + project=project, + location=location, + persistent_resource=persistent_resource, + ) + + @staticmethod + def parse_persistent_resource_path(path: str) -> Dict[str, str]: + """Parses a persistent_resource path into its component segments.""" + m = re.match( + r"^projects/(?P.+?)/locations/(?P.+?)/persistentResources/(?P.+?)$", + path, + ) + return m.groupdict() if m else {} + @staticmethod def tensorboard_path( project: str, @@ -3143,7 +3165,7 @@ def sample_get_nas_trial_detail(): Returns: google.cloud.aiplatform_v1beta1.types.NasTrialDetail: Represents a NasTrial details along - with it's parameters. If there is a + with its parameters. If there is a corresponding train NasTrial, the train NasTrial is also returned. diff --git a/google/cloud/aiplatform_v1beta1/services/job_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/job_service/pagers.py index d26d1146fe..72e0b8c68f 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/job_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/job_service/transports/__init__.py index bb641d64c6..773b3bdc51 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/job_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/job_service/transports/base.py index e41c6f9b6a..caad45ae8f 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc.py index be0beca436..e6a1a0580f 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc_asyncio.py index a403717aaf..f8d7718c4e 100644 --- a/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/job_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/match_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/match_service/__init__.py index 1ec438ec3e..2a2e0dfe28 100644 --- a/google/cloud/aiplatform_v1beta1/services/match_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/match_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/match_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/match_service/async_client.py index 78953f3df8..b01c18dbf0 100644 --- a/google/cloud/aiplatform_v1beta1/services/match_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/match_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1069,7 +1069,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "MatchServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/match_service/client.py b/google/cloud/aiplatform_v1beta1/services/match_service/client.py index e7de7c82ad..28ada8356f 100644 --- a/google/cloud/aiplatform_v1beta1/services/match_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/match_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/match_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/match_service/transports/__init__.py index 78cb8f5d68..f21f8ca4aa 100644 --- a/google/cloud/aiplatform_v1beta1/services/match_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/match_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/match_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/match_service/transports/base.py index f8dcb74813..8cfb9a801b 100644 --- a/google/cloud/aiplatform_v1beta1/services/match_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/match_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc.py index 92d146576c..87e0ac4fad 100644 --- a/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc_asyncio.py index 85fd2bfab7..3f8d87c81f 100644 --- a/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/match_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/metadata_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/__init__.py index 090778e891..364dc2d0fa 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/metadata_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/async_client.py index 27227a9030..c4f0f52200 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -4722,7 +4722,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "MetadataServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/metadata_service/client.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/client.py index aaefc87b20..fe9f908ecd 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/metadata_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/pagers.py index 4cf3e58c29..ecb8490b1a 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/__init__.py index afbd5b2f2c..0845e54a6c 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/base.py index 627eda5943..f9c0d33c24 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc.py index 078a432dc1..9632ac7557 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc_asyncio.py index d25b7ce743..22eda0e00f 100644 --- a/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/metadata_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/migration_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/migration_service/__init__.py index 36329bb27d..36100cb63d 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/migration_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/migration_service/async_client.py index d9c939608e..6ecf768cbe 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1186,7 +1186,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "MigrationServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/migration_service/client.py b/google/cloud/aiplatform_v1beta1/services/migration_service/client.py index 5724af97a3..7ff2e219de 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -208,18 +208,23 @@ def parse_annotated_dataset_path(path: str) -> Dict[str, str]: @staticmethod def dataset_path( project: str, + location: str, dataset: str, ) -> str: """Returns a fully-qualified dataset string.""" - return "projects/{project}/datasets/{dataset}".format( + return "projects/{project}/locations/{location}/datasets/{dataset}".format( project=project, + location=location, dataset=dataset, ) @staticmethod def parse_dataset_path(path: str) -> Dict[str, str]: """Parses a dataset path into its component segments.""" - m = re.match(r"^projects/(?P.+?)/datasets/(?P.+?)$", path) + m = re.match( + r"^projects/(?P.+?)/locations/(?P.+?)/datasets/(?P.+?)$", + path, + ) return m.groupdict() if m else {} @staticmethod @@ -247,23 +252,18 @@ def parse_dataset_path(path: str) -> Dict[str, str]: @staticmethod def dataset_path( project: str, - location: str, dataset: str, ) -> str: """Returns a fully-qualified dataset string.""" - return "projects/{project}/locations/{location}/datasets/{dataset}".format( + return "projects/{project}/datasets/{dataset}".format( project=project, - location=location, dataset=dataset, ) @staticmethod def parse_dataset_path(path: str) -> Dict[str, str]: """Parses a dataset path into its component segments.""" - m = re.match( - r"^projects/(?P.+?)/locations/(?P.+?)/datasets/(?P.+?)$", - path, - ) + m = re.match(r"^projects/(?P.+?)/datasets/(?P.+?)$", path) return m.groupdict() if m else {} @staticmethod diff --git a/google/cloud/aiplatform_v1beta1/services/migration_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/migration_service/pagers.py index 225555e555..2401a2aecf 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/migration_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/__init__.py index 10ee1426af..af03939f0d 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/migration_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/base.py index cd2ae2a32a..fd75ce50cd 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc.py index 040dc3e31e..d2ce43089c 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc_asyncio.py index 51192032de..d0ce1508ab 100644 --- a/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/migration_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_garden_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/model_garden_service/__init__.py index bf7ee03b38..b1a2f30ada 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_garden_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/model_garden_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_garden_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/model_garden_service/async_client.py index f433dde2ee..9c20aa4cbd 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_garden_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/model_garden_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1009,7 +1009,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "ModelGardenServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/model_garden_service/client.py b/google/cloud/aiplatform_v1beta1/services/model_garden_service/client.py index 51e59da381..f436557355 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_garden_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/model_garden_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/__init__.py index eb492f9a27..b6993013a1 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/base.py index 93ff7bbec9..91e6792ab4 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc.py index 6addd3d80d..d1e7e2c64a 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc_asyncio.py index c9f783d407..4127714738 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/model_garden_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/model_service/__init__.py index d5781359f4..7a7785a0c5 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/model_service/async_client.py index ba16e97fbf..f4d4bf343b 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -3126,7 +3126,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "ModelServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/model_service/client.py b/google/cloud/aiplatform_v1beta1/services/model_service/client.py index 87d4f78cd1..910ed9b972 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/model_service/pagers.py index 5c6dd885ff..998dd91e9d 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/model_service/transports/__init__.py index ab55f592b6..5ade1092ca 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/model_service/transports/base.py index bd45b6812b..e3f3758e3d 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc.py index 0690c76c83..5bbc47b95b 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc_asyncio.py index f86ce8a30a..a9f38f9ab7 100644 --- a/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/model_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/__init__.py new file mode 100644 index 0000000000..d7df1cbda2 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 .client import PersistentResourceServiceClient +from .async_client import PersistentResourceServiceAsyncClient + +__all__ = ( + "PersistentResourceServiceClient", + "PersistentResourceServiceAsyncClient", +) diff --git a/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/async_client.py new file mode 100644 index 0000000000..c08d2951cf --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/async_client.py @@ -0,0 +1,1448 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 collections import OrderedDict +import functools +import re +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, +) + +from google.cloud.aiplatform_v1beta1 import gapic_version as package_version + +from google.api_core.client_options import ClientOptions +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries +from google.auth import credentials as ga_credentials # type: ignore +from google.oauth2 import service_account # type: ignore + +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore + +from google.api_core import operation as gac_operation # type: ignore +from google.api_core import operation_async # type: ignore +from google.cloud.aiplatform_v1beta1.services.persistent_resource_service import pagers +from google.cloud.aiplatform_v1beta1.types import encryption_spec +from google.cloud.aiplatform_v1beta1.types import operation as gca_operation +from google.cloud.aiplatform_v1beta1.types import persistent_resource +from google.cloud.aiplatform_v1beta1.types import ( + persistent_resource as gca_persistent_resource, +) +from google.cloud.aiplatform_v1beta1.types import persistent_resource_service +from google.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 +from google.protobuf import empty_pb2 # type: ignore +from google.protobuf import timestamp_pb2 # type: ignore +from google.rpc import status_pb2 # type: ignore +from .transports.base import PersistentResourceServiceTransport, DEFAULT_CLIENT_INFO +from .transports.grpc_asyncio import PersistentResourceServiceGrpcAsyncIOTransport +from .client import PersistentResourceServiceClient + + +class PersistentResourceServiceAsyncClient: + """A service for managing Vertex AI's machine learning + PersistentResource. + """ + + _client: PersistentResourceServiceClient + + DEFAULT_ENDPOINT = PersistentResourceServiceClient.DEFAULT_ENDPOINT + DEFAULT_MTLS_ENDPOINT = PersistentResourceServiceClient.DEFAULT_MTLS_ENDPOINT + + network_path = staticmethod(PersistentResourceServiceClient.network_path) + parse_network_path = staticmethod( + PersistentResourceServiceClient.parse_network_path + ) + persistent_resource_path = staticmethod( + PersistentResourceServiceClient.persistent_resource_path + ) + parse_persistent_resource_path = staticmethod( + PersistentResourceServiceClient.parse_persistent_resource_path + ) + common_billing_account_path = staticmethod( + PersistentResourceServiceClient.common_billing_account_path + ) + parse_common_billing_account_path = staticmethod( + PersistentResourceServiceClient.parse_common_billing_account_path + ) + common_folder_path = staticmethod( + PersistentResourceServiceClient.common_folder_path + ) + parse_common_folder_path = staticmethod( + PersistentResourceServiceClient.parse_common_folder_path + ) + common_organization_path = staticmethod( + PersistentResourceServiceClient.common_organization_path + ) + parse_common_organization_path = staticmethod( + PersistentResourceServiceClient.parse_common_organization_path + ) + common_project_path = staticmethod( + PersistentResourceServiceClient.common_project_path + ) + parse_common_project_path = staticmethod( + PersistentResourceServiceClient.parse_common_project_path + ) + common_location_path = staticmethod( + PersistentResourceServiceClient.common_location_path + ) + parse_common_location_path = staticmethod( + PersistentResourceServiceClient.parse_common_location_path + ) + + @classmethod + def from_service_account_info(cls, info: dict, *args, **kwargs): + """Creates an instance of this client using the provided credentials + info. + + Args: + info (dict): The service account private key info. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + PersistentResourceServiceAsyncClient: The constructed client. + """ + return PersistentResourceServiceClient.from_service_account_info.__func__(PersistentResourceServiceAsyncClient, info, *args, **kwargs) # type: ignore + + @classmethod + def from_service_account_file(cls, filename: str, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + PersistentResourceServiceAsyncClient: The constructed client. + """ + return PersistentResourceServiceClient.from_service_account_file.__func__(PersistentResourceServiceAsyncClient, filename, *args, **kwargs) # type: ignore + + from_service_account_json = from_service_account_file + + @classmethod + def get_mtls_endpoint_and_cert_source( + cls, client_options: Optional[ClientOptions] = None + ): + """Return the API endpoint and client cert source for mutual TLS. + + The client cert source is determined in the following order: + (1) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is not "true", the + client cert source is None. + (2) if `client_options.client_cert_source` is provided, use the provided one; if the + default client cert source exists, use the default one; otherwise the client cert + source is None. + + The API endpoint is determined in the following order: + (1) if `client_options.api_endpoint` if provided, use the provided one. + (2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the + default mTLS endpoint; if the environment variable is "never", use the default API + endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise + use the default API endpoint. + + More details can be found at https://google.aip.dev/auth/4114. + + Args: + client_options (google.api_core.client_options.ClientOptions): Custom options for the + client. Only the `api_endpoint` and `client_cert_source` properties may be used + in this method. + + Returns: + Tuple[str, Callable[[], Tuple[bytes, bytes]]]: returns the API endpoint and the + client cert source to use. + + Raises: + google.auth.exceptions.MutualTLSChannelError: If any errors happen. + """ + return PersistentResourceServiceClient.get_mtls_endpoint_and_cert_source(client_options) # type: ignore + + @property + def transport(self) -> PersistentResourceServiceTransport: + """Returns the transport used by the client instance. + + Returns: + PersistentResourceServiceTransport: The transport used by the client instance. + """ + return self._client.transport + + get_transport_class = functools.partial( + type(PersistentResourceServiceClient).get_transport_class, + type(PersistentResourceServiceClient), + ) + + def __init__( + self, + *, + credentials: Optional[ga_credentials.Credentials] = None, + transport: Union[str, PersistentResourceServiceTransport] = "grpc_asyncio", + client_options: Optional[ClientOptions] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + ) -> None: + """Instantiates the persistent resource service client. + + Args: + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + transport (Union[str, ~.PersistentResourceServiceTransport]): The + transport to use. If set to None, a transport is chosen + automatically. + client_options (ClientOptions): Custom options for the client. It + won't take effect if a ``transport`` instance is provided. + (1) The ``api_endpoint`` property can be used to override the + default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT + environment variable can also be used to override the endpoint: + "always" (always use the default mTLS endpoint), "never" (always + use the default regular endpoint) and "auto" (auto switch to the + default mTLS endpoint if client certificate is present, this is + the default value). However, the ``api_endpoint`` property takes + precedence if provided. + (2) If GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable + is "true", then the ``client_cert_source`` property can be used + to provide client certificate for mutual TLS transport. If + not provided, the default SSL client certificate will be used if + present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not + set, no client certificate will be used. + + Raises: + google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport + creation failed for any reason. + """ + self._client = PersistentResourceServiceClient( + credentials=credentials, + transport=transport, + client_options=client_options, + client_info=client_info, + ) + + async def create_persistent_resource( + self, + request: Optional[ + Union[persistent_resource_service.CreatePersistentResourceRequest, dict] + ] = None, + *, + parent: Optional[str] = None, + persistent_resource: Optional[ + gca_persistent_resource.PersistentResource + ] = None, + persistent_resource_id: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operation_async.AsyncOperation: + r"""Uploads a Model artifact into Vertex AI. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + async def sample_create_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.CreatePersistentResourceRequest( + parent="parent_value", + persistent_resource_id="persistent_resource_id_value", + ) + + # Make the request + operation = client.create_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1beta1.types.CreatePersistentResourceRequest, dict]]): + The request object. Request message for + [PersistentResourceService.CreatePersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource]. + parent (:class:`str`): + Required. The resource name of the Location to create + the PersistentResource in. Format: + ``projects/{project}/locations/{location}`` + + This corresponds to the ``parent`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + persistent_resource (:class:`google.cloud.aiplatform_v1beta1.types.PersistentResource`): + Required. The PersistentResource to + create. + + This corresponds to the ``persistent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + persistent_resource_id (:class:`str`): + Required. The ID to use for the PersistentResource, + which become the final component of the + PersistentResource's resource name. + + The maximum length is 63 characters, and valid + characters are /^`a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$/. + + This corresponds to the ``persistent_resource_id`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation_async.AsyncOperation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.cloud.aiplatform_v1beta1.types.PersistentResource` Represents long-lasting resources that are dedicated to users to runs custom + workloads. A PersistentResource can have multiple + node pools and each node pool can have its own + machine spec. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any( + [parent, persistent_resource, persistent_resource_id] + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = persistent_resource_service.CreatePersistentResourceRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if parent is not None: + request.parent = parent + if persistent_resource is not None: + request.persistent_resource = persistent_resource + if persistent_resource_id is not None: + request.persistent_resource_id = persistent_resource_id + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.create_persistent_resource, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = operation_async.from_gapic( + response, + self._client._transport.operations_client, + gca_persistent_resource.PersistentResource, + metadata_type=persistent_resource_service.CreatePersistentResourceOperationMetadata, + ) + + # Done; return the response. + return response + + async def get_persistent_resource( + self, + request: Optional[ + Union[persistent_resource_service.GetPersistentResourceRequest, dict] + ] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> persistent_resource.PersistentResource: + r"""Gets a PersistentResource. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + async def sample_get_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.GetPersistentResourceRequest( + name="name_value", + ) + + # Make the request + response = await client.get_persistent_resource(request=request) + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1beta1.types.GetPersistentResourceRequest, dict]]): + The request object. Request message for + [PersistentResourceService.GetPersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource]. + name (:class:`str`): + Required. The name of the PersistentResource resource. + Format: + ``projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.types.PersistentResource: + Represents long-lasting resources + that are dedicated to users to runs + custom workloads. A PersistentResource + can have multiple node pools and each + node pool can have its own machine spec. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = persistent_resource_service.GetPersistentResourceRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.get_persistent_resource, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def list_persistent_resources( + self, + request: Optional[ + Union[persistent_resource_service.ListPersistentResourcesRequest, dict] + ] = None, + *, + parent: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> pagers.ListPersistentResourcesAsyncPager: + r"""Lists PersistentResources in a Location. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + async def sample_list_persistent_resources(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ListPersistentResourcesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_persistent_resources(request=request) + + # Handle the response + async for response in page_result: + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesRequest, dict]]): + The request object. Request message for + [PersistentResourceService.ListPersistentResource][]. + parent (:class:`str`): + Required. The resource name of the Location to list the + PersistentResources from. Format: + ``projects/{project}/locations/{location}`` + + This corresponds to the ``parent`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.services.persistent_resource_service.pagers.ListPersistentResourcesAsyncPager: + Response message for + [PersistentResourceService.ListPersistentResources][google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResources] + + Iterating over this object will yield results and + resolve additional pages automatically. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([parent]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = persistent_resource_service.ListPersistentResourcesRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if parent is not None: + request.parent = parent + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.list_persistent_resources, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # This method is paged; wrap the response in a pager, which provides + # an `__aiter__` convenience method. + response = pagers.ListPersistentResourcesAsyncPager( + method=rpc, + request=request, + response=response, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def delete_persistent_resource( + self, + request: Optional[ + Union[persistent_resource_service.DeletePersistentResourceRequest, dict] + ] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operation_async.AsyncOperation: + r"""Deletes a PersistentResource. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + async def sample_delete_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeletePersistentResourceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1beta1.types.DeletePersistentResourceRequest, dict]]): + The request object. Request message for + [PersistentResourceService.DeletePersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResource]. + name (:class:`str`): + Required. The name of the PersistentResource to be + deleted. Format: + ``projects/{project}/locations/{location}/persistentResources/{persistent_resource}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation_async.AsyncOperation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated + empty messages in your APIs. A typical example is to + use it as the request or the response type of an API + method. For instance: + + service Foo { + rpc Bar(google.protobuf.Empty) returns + (google.protobuf.Empty); + + } + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = persistent_resource_service.DeletePersistentResourceRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.delete_persistent_resource, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = operation_async.from_gapic( + response, + self._client._transport.operations_client, + empty_pb2.Empty, + metadata_type=gca_operation.DeleteOperationMetadata, + ) + + # Done; return the response. + return response + + async def list_operations( + self, + request: Optional[operations_pb2.ListOperationsRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operations_pb2.ListOperationsResponse: + r"""Lists operations that match the specified filter in the request. + + Args: + request (:class:`~.operations_pb2.ListOperationsRequest`): + The request object. Request message for + `ListOperations` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.operations_pb2.ListOperationsResponse: + Response message for ``ListOperations`` method. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.ListOperationsRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.list_operations, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def get_operation( + self, + request: Optional[operations_pb2.GetOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operations_pb2.Operation: + r"""Gets the latest state of a long-running operation. + + Args: + request (:class:`~.operations_pb2.GetOperationRequest`): + The request object. Request message for + `GetOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.operations_pb2.Operation: + An ``Operation`` object. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.GetOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.get_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def delete_operation( + self, + request: Optional[operations_pb2.DeleteOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> None: + r"""Deletes a long-running operation. + + This method indicates that the client is no longer interested + in the operation result. It does not cancel the operation. + If the server doesn't support this method, it returns + `google.rpc.Code.UNIMPLEMENTED`. + + Args: + request (:class:`~.operations_pb2.DeleteOperationRequest`): + The request object. Request message for + `DeleteOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + None + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.DeleteOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.delete_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + async def cancel_operation( + self, + request: Optional[operations_pb2.CancelOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> None: + r"""Starts asynchronous cancellation on a long-running operation. + + The server makes a best effort to cancel the operation, but success + is not guaranteed. If the server doesn't support this method, it returns + `google.rpc.Code.UNIMPLEMENTED`. + + Args: + request (:class:`~.operations_pb2.CancelOperationRequest`): + The request object. Request message for + `CancelOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + None + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.CancelOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.cancel_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + async def wait_operation( + self, + request: Optional[operations_pb2.WaitOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operations_pb2.Operation: + r"""Waits until the specified long-running operation is done or reaches at most + a specified timeout, returning the latest state. + + If the operation is already done, the latest state is immediately returned. + If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + timeout is used. If the server does not support this method, it returns + `google.rpc.Code.UNIMPLEMENTED`. + + Args: + request (:class:`~.operations_pb2.WaitOperationRequest`): + The request object. Request message for + `WaitOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.operations_pb2.Operation: + An ``Operation`` object. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.WaitOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.wait_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def set_iam_policy( + self, + request: Optional[iam_policy_pb2.SetIamPolicyRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> policy_pb2.Policy: + r"""Sets the IAM access control policy on the specified function. + + Replaces any existing policy. + + Args: + request (:class:`~.iam_policy_pb2.SetIamPolicyRequest`): + The request object. Request message for `SetIamPolicy` + method. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.policy_pb2.Policy: + Defines an Identity and Access Management (IAM) policy. + It is used to specify access control policies for Cloud + Platform resources. + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members`` to a single + ``role``. Members can be user accounts, service + accounts, Google groups, and domains (such as G Suite). + A ``role`` is a named list of permissions (defined by + IAM or configured by users). A ``binding`` can + optionally specify a ``condition``, which is a logic + expression that further constrains the role binding + based on attributes about the request and/or target + resource. + + **JSON Example** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": ["user:eve@example.com"], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", + } + } + ] + } + + **YAML Example** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + + For a description of IAM and its features, see the `IAM + developer's + guide `__. + """ + # Create or coerce a protobuf request object. + + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = iam_policy_pb2.SetIamPolicyRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.set_iam_policy, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def get_iam_policy( + self, + request: Optional[iam_policy_pb2.GetIamPolicyRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> policy_pb2.Policy: + r"""Gets the IAM access control policy for a function. + + Returns an empty policy if the function exists and does not have a + policy set. + + Args: + request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`): + The request object. Request message for `GetIamPolicy` + method. + retry (google.api_core.retry.Retry): Designation of what errors, if + any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.policy_pb2.Policy: + Defines an Identity and Access Management (IAM) policy. + It is used to specify access control policies for Cloud + Platform resources. + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members`` to a single + ``role``. Members can be user accounts, service + accounts, Google groups, and domains (such as G Suite). + A ``role`` is a named list of permissions (defined by + IAM or configured by users). A ``binding`` can + optionally specify a ``condition``, which is a logic + expression that further constrains the role binding + based on attributes about the request and/or target + resource. + + **JSON Example** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": ["user:eve@example.com"], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", + } + } + ] + } + + **YAML Example** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + + For a description of IAM and its features, see the `IAM + developer's + guide `__. + """ + # Create or coerce a protobuf request object. + + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = iam_policy_pb2.GetIamPolicyRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.get_iam_policy, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def test_iam_permissions( + self, + request: Optional[iam_policy_pb2.TestIamPermissionsRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> iam_policy_pb2.TestIamPermissionsResponse: + r"""Tests the specified IAM permissions against the IAM access control + policy for a function. + + If the function does not exist, this will return an empty set + of permissions, not a NOT_FOUND error. + + Args: + request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`): + The request object. Request message for + `TestIamPermissions` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.iam_policy_pb2.TestIamPermissionsResponse: + Response message for ``TestIamPermissions`` method. + """ + # Create or coerce a protobuf request object. + + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = iam_policy_pb2.TestIamPermissionsRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.test_iam_permissions, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def get_location( + self, + request: Optional[locations_pb2.GetLocationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> locations_pb2.Location: + r"""Gets information about a location. + + Args: + request (:class:`~.location_pb2.GetLocationRequest`): + The request object. Request message for + `GetLocation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.location_pb2.Location: + Location object. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = locations_pb2.GetLocationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.get_location, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def list_locations( + self, + request: Optional[locations_pb2.ListLocationsRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> locations_pb2.ListLocationsResponse: + r"""Lists information about the supported locations for this service. + + Args: + request (:class:`~.location_pb2.ListLocationsRequest`): + The request object. Request message for + `ListLocations` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.location_pb2.ListLocationsResponse: + Response message for ``ListLocations`` method. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = locations_pb2.ListLocationsRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._client._transport.list_locations, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def __aenter__(self) -> "PersistentResourceServiceAsyncClient": + return self + + async def __aexit__(self, exc_type, exc, tb): + await self.transport.close() + + +DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( + gapic_version=package_version.__version__ +) + + +__all__ = ("PersistentResourceServiceAsyncClient",) diff --git a/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/client.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/client.py new file mode 100644 index 0000000000..63a82afde3 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/client.py @@ -0,0 +1,1706 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 collections import OrderedDict +import os +import re +from typing import ( + Dict, + Mapping, + MutableMapping, + MutableSequence, + Optional, + Sequence, + Tuple, + Type, + Union, + cast, +) + +from google.cloud.aiplatform_v1beta1 import gapic_version as package_version + +from google.api_core import client_options as client_options_lib +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries +from google.auth import credentials as ga_credentials # type: ignore +from google.auth.transport import mtls # type: ignore +from google.auth.transport.grpc import SslCredentials # type: ignore +from google.auth.exceptions import MutualTLSChannelError # type: ignore +from google.oauth2 import service_account # type: ignore + +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore + +from google.api_core import operation as gac_operation # type: ignore +from google.api_core import operation_async # type: ignore +from google.cloud.aiplatform_v1beta1.services.persistent_resource_service import pagers +from google.cloud.aiplatform_v1beta1.types import encryption_spec +from google.cloud.aiplatform_v1beta1.types import operation as gca_operation +from google.cloud.aiplatform_v1beta1.types import persistent_resource +from google.cloud.aiplatform_v1beta1.types import ( + persistent_resource as gca_persistent_resource, +) +from google.cloud.aiplatform_v1beta1.types import persistent_resource_service +from google.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 +from google.protobuf import empty_pb2 # type: ignore +from google.protobuf import timestamp_pb2 # type: ignore +from google.rpc import status_pb2 # type: ignore +from .transports.base import PersistentResourceServiceTransport, DEFAULT_CLIENT_INFO +from .transports.grpc import PersistentResourceServiceGrpcTransport +from .transports.grpc_asyncio import PersistentResourceServiceGrpcAsyncIOTransport + + +class PersistentResourceServiceClientMeta(type): + """Metaclass for the PersistentResourceService client. + + This provides class-level methods for building and retrieving + support objects (e.g. transport) without polluting the client instance + objects. + """ + + _transport_registry = ( + OrderedDict() + ) # type: Dict[str, Type[PersistentResourceServiceTransport]] + _transport_registry["grpc"] = PersistentResourceServiceGrpcTransport + _transport_registry["grpc_asyncio"] = PersistentResourceServiceGrpcAsyncIOTransport + + def get_transport_class( + cls, + label: Optional[str] = None, + ) -> Type[PersistentResourceServiceTransport]: + """Returns an appropriate transport class. + + Args: + label: The name of the desired transport. If none is + provided, then the first transport in the registry is used. + + Returns: + The transport class to use. + """ + # If a specific transport is requested, return that one. + if label: + return cls._transport_registry[label] + + # No transport is requested; return the default (that is, the first one + # in the dictionary). + return next(iter(cls._transport_registry.values())) + + +class PersistentResourceServiceClient(metaclass=PersistentResourceServiceClientMeta): + """A service for managing Vertex AI's machine learning + PersistentResource. + """ + + @staticmethod + def _get_default_mtls_endpoint(api_endpoint): + """Converts api endpoint to mTLS endpoint. + + Convert "*.sandbox.googleapis.com" and "*.googleapis.com" to + "*.mtls.sandbox.googleapis.com" and "*.mtls.googleapis.com" respectively. + Args: + api_endpoint (Optional[str]): the api endpoint to convert. + Returns: + str: converted mTLS api endpoint. + """ + if not api_endpoint: + return api_endpoint + + mtls_endpoint_re = re.compile( + r"(?P[^.]+)(?P\.mtls)?(?P\.sandbox)?(?P\.googleapis\.com)?" + ) + + m = mtls_endpoint_re.match(api_endpoint) + name, mtls, sandbox, googledomain = m.groups() + if mtls or not googledomain: + return api_endpoint + + if sandbox: + return api_endpoint.replace( + "sandbox.googleapis.com", "mtls.sandbox.googleapis.com" + ) + + return api_endpoint.replace(".googleapis.com", ".mtls.googleapis.com") + + DEFAULT_ENDPOINT = "aiplatform.googleapis.com" + DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint.__func__( # type: ignore + DEFAULT_ENDPOINT + ) + + @classmethod + def from_service_account_info(cls, info: dict, *args, **kwargs): + """Creates an instance of this client using the provided credentials + info. + + Args: + info (dict): The service account private key info. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + PersistentResourceServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_info(info) + kwargs["credentials"] = credentials + return cls(*args, **kwargs) + + @classmethod + def from_service_account_file(cls, filename: str, *args, **kwargs): + """Creates an instance of this client using the provided credentials + file. + + Args: + filename (str): The path to the service account private key json + file. + args: Additional arguments to pass to the constructor. + kwargs: Additional arguments to pass to the constructor. + + Returns: + PersistentResourceServiceClient: The constructed client. + """ + credentials = service_account.Credentials.from_service_account_file(filename) + kwargs["credentials"] = credentials + return cls(*args, **kwargs) + + from_service_account_json = from_service_account_file + + @property + def transport(self) -> PersistentResourceServiceTransport: + """Returns the transport used by the client instance. + + Returns: + PersistentResourceServiceTransport: The transport used by the client + instance. + """ + return self._transport + + @staticmethod + def network_path( + project: str, + network: str, + ) -> str: + """Returns a fully-qualified network string.""" + return "projects/{project}/global/networks/{network}".format( + project=project, + network=network, + ) + + @staticmethod + def parse_network_path(path: str) -> Dict[str, str]: + """Parses a network path into its component segments.""" + m = re.match( + r"^projects/(?P.+?)/global/networks/(?P.+?)$", path + ) + return m.groupdict() if m else {} + + @staticmethod + def persistent_resource_path( + project: str, + location: str, + persistent_resource: str, + ) -> str: + """Returns a fully-qualified persistent_resource string.""" + return "projects/{project}/locations/{location}/persistentResources/{persistent_resource}".format( + project=project, + location=location, + persistent_resource=persistent_resource, + ) + + @staticmethod + def parse_persistent_resource_path(path: str) -> Dict[str, str]: + """Parses a persistent_resource path into its component segments.""" + m = re.match( + r"^projects/(?P.+?)/locations/(?P.+?)/persistentResources/(?P.+?)$", + path, + ) + return m.groupdict() if m else {} + + @staticmethod + def common_billing_account_path( + billing_account: str, + ) -> str: + """Returns a fully-qualified billing_account string.""" + return "billingAccounts/{billing_account}".format( + billing_account=billing_account, + ) + + @staticmethod + def parse_common_billing_account_path(path: str) -> Dict[str, str]: + """Parse a billing_account path into its component segments.""" + m = re.match(r"^billingAccounts/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_folder_path( + folder: str, + ) -> str: + """Returns a fully-qualified folder string.""" + return "folders/{folder}".format( + folder=folder, + ) + + @staticmethod + def parse_common_folder_path(path: str) -> Dict[str, str]: + """Parse a folder path into its component segments.""" + m = re.match(r"^folders/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_organization_path( + organization: str, + ) -> str: + """Returns a fully-qualified organization string.""" + return "organizations/{organization}".format( + organization=organization, + ) + + @staticmethod + def parse_common_organization_path(path: str) -> Dict[str, str]: + """Parse a organization path into its component segments.""" + m = re.match(r"^organizations/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_project_path( + project: str, + ) -> str: + """Returns a fully-qualified project string.""" + return "projects/{project}".format( + project=project, + ) + + @staticmethod + def parse_common_project_path(path: str) -> Dict[str, str]: + """Parse a project path into its component segments.""" + m = re.match(r"^projects/(?P.+?)$", path) + return m.groupdict() if m else {} + + @staticmethod + def common_location_path( + project: str, + location: str, + ) -> str: + """Returns a fully-qualified location string.""" + return "projects/{project}/locations/{location}".format( + project=project, + location=location, + ) + + @staticmethod + def parse_common_location_path(path: str) -> Dict[str, str]: + """Parse a location path into its component segments.""" + m = re.match(r"^projects/(?P.+?)/locations/(?P.+?)$", path) + return m.groupdict() if m else {} + + @classmethod + def get_mtls_endpoint_and_cert_source( + cls, client_options: Optional[client_options_lib.ClientOptions] = None + ): + """Return the API endpoint and client cert source for mutual TLS. + + The client cert source is determined in the following order: + (1) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is not "true", the + client cert source is None. + (2) if `client_options.client_cert_source` is provided, use the provided one; if the + default client cert source exists, use the default one; otherwise the client cert + source is None. + + The API endpoint is determined in the following order: + (1) if `client_options.api_endpoint` if provided, use the provided one. + (2) if `GOOGLE_API_USE_CLIENT_CERTIFICATE` environment variable is "always", use the + default mTLS endpoint; if the environment variable is "never", use the default API + endpoint; otherwise if client cert source exists, use the default mTLS endpoint, otherwise + use the default API endpoint. + + More details can be found at https://google.aip.dev/auth/4114. + + Args: + client_options (google.api_core.client_options.ClientOptions): Custom options for the + client. Only the `api_endpoint` and `client_cert_source` properties may be used + in this method. + + Returns: + Tuple[str, Callable[[], Tuple[bytes, bytes]]]: returns the API endpoint and the + client cert source to use. + + Raises: + google.auth.exceptions.MutualTLSChannelError: If any errors happen. + """ + if client_options is None: + client_options = client_options_lib.ClientOptions() + use_client_cert = os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") + use_mtls_endpoint = os.getenv("GOOGLE_API_USE_MTLS_ENDPOINT", "auto") + if use_client_cert not in ("true", "false"): + raise ValueError( + "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`" + ) + if use_mtls_endpoint not in ("auto", "never", "always"): + raise MutualTLSChannelError( + "Environment variable `GOOGLE_API_USE_MTLS_ENDPOINT` must be `never`, `auto` or `always`" + ) + + # Figure out the client cert source to use. + client_cert_source = None + if use_client_cert == "true": + if client_options.client_cert_source: + client_cert_source = client_options.client_cert_source + elif mtls.has_default_client_cert_source(): + client_cert_source = mtls.default_client_cert_source() + + # Figure out which api endpoint to use. + if client_options.api_endpoint is not None: + api_endpoint = client_options.api_endpoint + elif use_mtls_endpoint == "always" or ( + use_mtls_endpoint == "auto" and client_cert_source + ): + api_endpoint = cls.DEFAULT_MTLS_ENDPOINT + else: + api_endpoint = cls.DEFAULT_ENDPOINT + + return api_endpoint, client_cert_source + + def __init__( + self, + *, + credentials: Optional[ga_credentials.Credentials] = None, + transport: Optional[Union[str, PersistentResourceServiceTransport]] = None, + client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + ) -> None: + """Instantiates the persistent resource service client. + + Args: + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + transport (Union[str, PersistentResourceServiceTransport]): The + transport to use. If set to None, a transport is chosen + automatically. + client_options (Optional[Union[google.api_core.client_options.ClientOptions, dict]]): Custom options for the + client. It won't take effect if a ``transport`` instance is provided. + (1) The ``api_endpoint`` property can be used to override the + default endpoint provided by the client. GOOGLE_API_USE_MTLS_ENDPOINT + environment variable can also be used to override the endpoint: + "always" (always use the default mTLS endpoint), "never" (always + use the default regular endpoint) and "auto" (auto switch to the + default mTLS endpoint if client certificate is present, this is + the default value). However, the ``api_endpoint`` property takes + precedence if provided. + (2) If GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable + is "true", then the ``client_cert_source`` property can be used + to provide client certificate for mutual TLS transport. If + not provided, the default SSL client certificate will be used if + present. If GOOGLE_API_USE_CLIENT_CERTIFICATE is "false" or not + set, no client certificate will be used. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + + Raises: + google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport + creation failed for any reason. + """ + if isinstance(client_options, dict): + client_options = client_options_lib.from_dict(client_options) + if client_options is None: + client_options = client_options_lib.ClientOptions() + client_options = cast(client_options_lib.ClientOptions, client_options) + + api_endpoint, client_cert_source_func = self.get_mtls_endpoint_and_cert_source( + client_options + ) + + api_key_value = getattr(client_options, "api_key", None) + if api_key_value and credentials: + raise ValueError( + "client_options.api_key and credentials are mutually exclusive" + ) + + # Save or instantiate the transport. + # Ordinarily, we provide the transport, but allowing a custom transport + # instance provides an extensibility point for unusual situations. + if isinstance(transport, PersistentResourceServiceTransport): + # transport is a PersistentResourceServiceTransport instance. + if credentials or client_options.credentials_file or api_key_value: + raise ValueError( + "When providing a transport instance, " + "provide its credentials directly." + ) + if client_options.scopes: + raise ValueError( + "When providing a transport instance, provide its scopes " + "directly." + ) + self._transport = transport + else: + import google.auth._default # type: ignore + + if api_key_value and hasattr( + google.auth._default, "get_api_key_credentials" + ): + credentials = google.auth._default.get_api_key_credentials( + api_key_value + ) + + Transport = type(self).get_transport_class(transport) + self._transport = Transport( + credentials=credentials, + credentials_file=client_options.credentials_file, + host=api_endpoint, + scopes=client_options.scopes, + client_cert_source_for_mtls=client_cert_source_func, + quota_project_id=client_options.quota_project_id, + client_info=client_info, + always_use_jwt_access=True, + api_audience=client_options.api_audience, + ) + + def create_persistent_resource( + self, + request: Optional[ + Union[persistent_resource_service.CreatePersistentResourceRequest, dict] + ] = None, + *, + parent: Optional[str] = None, + persistent_resource: Optional[ + gca_persistent_resource.PersistentResource + ] = None, + persistent_resource_id: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> gac_operation.Operation: + r"""Uploads a Model artifact into Vertex AI. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + def sample_create_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.CreatePersistentResourceRequest( + parent="parent_value", + persistent_resource_id="persistent_resource_id_value", + ) + + # Make the request + operation = client.create_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1beta1.types.CreatePersistentResourceRequest, dict]): + The request object. Request message for + [PersistentResourceService.CreatePersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource]. + parent (str): + Required. The resource name of the Location to create + the PersistentResource in. Format: + ``projects/{project}/locations/{location}`` + + This corresponds to the ``parent`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + persistent_resource (google.cloud.aiplatform_v1beta1.types.PersistentResource): + Required. The PersistentResource to + create. + + This corresponds to the ``persistent_resource`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + persistent_resource_id (str): + Required. The ID to use for the PersistentResource, + which become the final component of the + PersistentResource's resource name. + + The maximum length is 63 characters, and valid + characters are /^`a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$/. + + This corresponds to the ``persistent_resource_id`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation.Operation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.cloud.aiplatform_v1beta1.types.PersistentResource` Represents long-lasting resources that are dedicated to users to runs custom + workloads. A PersistentResource can have multiple + node pools and each node pool can have its own + machine spec. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any( + [parent, persistent_resource, persistent_resource_id] + ) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a persistent_resource_service.CreatePersistentResourceRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance( + request, persistent_resource_service.CreatePersistentResourceRequest + ): + request = persistent_resource_service.CreatePersistentResourceRequest( + request + ) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if parent is not None: + request.parent = parent + if persistent_resource is not None: + request.persistent_resource = persistent_resource + if persistent_resource_id is not None: + request.persistent_resource_id = persistent_resource_id + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[ + self._transport.create_persistent_resource + ] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = gac_operation.from_gapic( + response, + self._transport.operations_client, + gca_persistent_resource.PersistentResource, + metadata_type=persistent_resource_service.CreatePersistentResourceOperationMetadata, + ) + + # Done; return the response. + return response + + def get_persistent_resource( + self, + request: Optional[ + Union[persistent_resource_service.GetPersistentResourceRequest, dict] + ] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> persistent_resource.PersistentResource: + r"""Gets a PersistentResource. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + def sample_get_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.GetPersistentResourceRequest( + name="name_value", + ) + + # Make the request + response = client.get_persistent_resource(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1beta1.types.GetPersistentResourceRequest, dict]): + The request object. Request message for + [PersistentResourceService.GetPersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource]. + name (str): + Required. The name of the PersistentResource resource. + Format: + ``projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.types.PersistentResource: + Represents long-lasting resources + that are dedicated to users to runs + custom workloads. A PersistentResource + can have multiple node pools and each + node pool can have its own machine spec. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a persistent_resource_service.GetPersistentResourceRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance( + request, persistent_resource_service.GetPersistentResourceRequest + ): + request = persistent_resource_service.GetPersistentResourceRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.get_persistent_resource] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def list_persistent_resources( + self, + request: Optional[ + Union[persistent_resource_service.ListPersistentResourcesRequest, dict] + ] = None, + *, + parent: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> pagers.ListPersistentResourcesPager: + r"""Lists PersistentResources in a Location. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + def sample_list_persistent_resources(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ListPersistentResourcesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_persistent_resources(request=request) + + # Handle the response + for response in page_result: + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesRequest, dict]): + The request object. Request message for + [PersistentResourceService.ListPersistentResource][]. + parent (str): + Required. The resource name of the Location to list the + PersistentResources from. Format: + ``projects/{project}/locations/{location}`` + + This corresponds to the ``parent`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.services.persistent_resource_service.pagers.ListPersistentResourcesPager: + Response message for + [PersistentResourceService.ListPersistentResources][google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResources] + + Iterating over this object will yield results and + resolve additional pages automatically. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([parent]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a persistent_resource_service.ListPersistentResourcesRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance( + request, persistent_resource_service.ListPersistentResourcesRequest + ): + request = persistent_resource_service.ListPersistentResourcesRequest( + request + ) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if parent is not None: + request.parent = parent + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[ + self._transport.list_persistent_resources + ] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # This method is paged; wrap the response in a pager, which provides + # an `__iter__` convenience method. + response = pagers.ListPersistentResourcesPager( + method=rpc, + request=request, + response=response, + metadata=metadata, + ) + + # Done; return the response. + return response + + def delete_persistent_resource( + self, + request: Optional[ + Union[persistent_resource_service.DeletePersistentResourceRequest, dict] + ] = None, + *, + name: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> gac_operation.Operation: + r"""Deletes a PersistentResource. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + def sample_delete_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeletePersistentResourceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1beta1.types.DeletePersistentResourceRequest, dict]): + The request object. Request message for + [PersistentResourceService.DeletePersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResource]. + name (str): + Required. The name of the PersistentResource to be + deleted. Format: + ``projects/{project}/locations/{location}/persistentResources/{persistent_resource}`` + + This corresponds to the ``name`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.api_core.operation.Operation: + An object representing a long-running operation. + + The result type for the operation will be :class:`google.protobuf.empty_pb2.Empty` A generic empty message that you can re-use to avoid defining duplicated + empty messages in your APIs. A typical example is to + use it as the request or the response type of an API + method. For instance: + + service Foo { + rpc Bar(google.protobuf.Empty) returns + (google.protobuf.Empty); + + } + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([name]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a persistent_resource_service.DeletePersistentResourceRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance( + request, persistent_resource_service.DeletePersistentResourceRequest + ): + request = persistent_resource_service.DeletePersistentResourceRequest( + request + ) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if name is not None: + request.name = name + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[ + self._transport.delete_persistent_resource + ] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Wrap the response in an operation future. + response = gac_operation.from_gapic( + response, + self._transport.operations_client, + empty_pb2.Empty, + metadata_type=gca_operation.DeleteOperationMetadata, + ) + + # Done; return the response. + return response + + def __enter__(self) -> "PersistentResourceServiceClient": + return self + + def __exit__(self, type, value, traceback): + """Releases underlying transport's resources. + + .. warning:: + ONLY use as a context manager if the transport is NOT shared + with other clients! Exiting the with block will CLOSE the transport + and may cause errors in other clients! + """ + self.transport.close() + + def list_operations( + self, + request: Optional[operations_pb2.ListOperationsRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operations_pb2.ListOperationsResponse: + r"""Lists operations that match the specified filter in the request. + + Args: + request (:class:`~.operations_pb2.ListOperationsRequest`): + The request object. Request message for + `ListOperations` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.operations_pb2.ListOperationsResponse: + Response message for ``ListOperations`` method. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.ListOperationsRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.list_operations, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def get_operation( + self, + request: Optional[operations_pb2.GetOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operations_pb2.Operation: + r"""Gets the latest state of a long-running operation. + + Args: + request (:class:`~.operations_pb2.GetOperationRequest`): + The request object. Request message for + `GetOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.operations_pb2.Operation: + An ``Operation`` object. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.GetOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.get_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def delete_operation( + self, + request: Optional[operations_pb2.DeleteOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> None: + r"""Deletes a long-running operation. + + This method indicates that the client is no longer interested + in the operation result. It does not cancel the operation. + If the server doesn't support this method, it returns + `google.rpc.Code.UNIMPLEMENTED`. + + Args: + request (:class:`~.operations_pb2.DeleteOperationRequest`): + The request object. Request message for + `DeleteOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + None + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.DeleteOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.delete_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + def cancel_operation( + self, + request: Optional[operations_pb2.CancelOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> None: + r"""Starts asynchronous cancellation on a long-running operation. + + The server makes a best effort to cancel the operation, but success + is not guaranteed. If the server doesn't support this method, it returns + `google.rpc.Code.UNIMPLEMENTED`. + + Args: + request (:class:`~.operations_pb2.CancelOperationRequest`): + The request object. Request message for + `CancelOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + None + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.CancelOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.cancel_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + def wait_operation( + self, + request: Optional[operations_pb2.WaitOperationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> operations_pb2.Operation: + r"""Waits until the specified long-running operation is done or reaches at most + a specified timeout, returning the latest state. + + If the operation is already done, the latest state is immediately returned. + If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC + timeout is used. If the server does not support this method, it returns + `google.rpc.Code.UNIMPLEMENTED`. + + Args: + request (:class:`~.operations_pb2.WaitOperationRequest`): + The request object. Request message for + `WaitOperation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.operations_pb2.Operation: + An ``Operation`` object. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = operations_pb2.WaitOperationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.wait_operation, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def set_iam_policy( + self, + request: Optional[iam_policy_pb2.SetIamPolicyRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> policy_pb2.Policy: + r"""Sets the IAM access control policy on the specified function. + + Replaces any existing policy. + + Args: + request (:class:`~.iam_policy_pb2.SetIamPolicyRequest`): + The request object. Request message for `SetIamPolicy` + method. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.policy_pb2.Policy: + Defines an Identity and Access Management (IAM) policy. + It is used to specify access control policies for Cloud + Platform resources. + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members`` to a single + ``role``. Members can be user accounts, service + accounts, Google groups, and domains (such as G Suite). + A ``role`` is a named list of permissions (defined by + IAM or configured by users). A ``binding`` can + optionally specify a ``condition``, which is a logic + expression that further constrains the role binding + based on attributes about the request and/or target + resource. + + **JSON Example** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": ["user:eve@example.com"], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", + } + } + ] + } + + **YAML Example** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + + For a description of IAM and its features, see the `IAM + developer's + guide `__. + """ + # Create or coerce a protobuf request object. + + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = iam_policy_pb2.SetIamPolicyRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.set_iam_policy, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def get_iam_policy( + self, + request: Optional[iam_policy_pb2.GetIamPolicyRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> policy_pb2.Policy: + r"""Gets the IAM access control policy for a function. + + Returns an empty policy if the function exists and does not have a + policy set. + + Args: + request (:class:`~.iam_policy_pb2.GetIamPolicyRequest`): + The request object. Request message for `GetIamPolicy` + method. + retry (google.api_core.retry.Retry): Designation of what errors, if + any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.policy_pb2.Policy: + Defines an Identity and Access Management (IAM) policy. + It is used to specify access control policies for Cloud + Platform resources. + A ``Policy`` is a collection of ``bindings``. A + ``binding`` binds one or more ``members`` to a single + ``role``. Members can be user accounts, service + accounts, Google groups, and domains (such as G Suite). + A ``role`` is a named list of permissions (defined by + IAM or configured by users). A ``binding`` can + optionally specify a ``condition``, which is a logic + expression that further constrains the role binding + based on attributes about the request and/or target + resource. + + **JSON Example** + + :: + + { + "bindings": [ + { + "role": "roles/resourcemanager.organizationAdmin", + "members": [ + "user:mike@example.com", + "group:admins@example.com", + "domain:google.com", + "serviceAccount:my-project-id@appspot.gserviceaccount.com" + ] + }, + { + "role": "roles/resourcemanager.organizationViewer", + "members": ["user:eve@example.com"], + "condition": { + "title": "expirable access", + "description": "Does not grant access after Sep 2020", + "expression": "request.time < + timestamp('2020-10-01T00:00:00.000Z')", + } + } + ] + } + + **YAML Example** + + :: + + bindings: + - members: + - user:mike@example.com + - group:admins@example.com + - domain:google.com + - serviceAccount:my-project-id@appspot.gserviceaccount.com + role: roles/resourcemanager.organizationAdmin + - members: + - user:eve@example.com + role: roles/resourcemanager.organizationViewer + condition: + title: expirable access + description: Does not grant access after Sep 2020 + expression: request.time < timestamp('2020-10-01T00:00:00.000Z') + + For a description of IAM and its features, see the `IAM + developer's + guide `__. + """ + # Create or coerce a protobuf request object. + + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = iam_policy_pb2.GetIamPolicyRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.get_iam_policy, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def test_iam_permissions( + self, + request: Optional[iam_policy_pb2.TestIamPermissionsRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> iam_policy_pb2.TestIamPermissionsResponse: + r"""Tests the specified IAM permissions against the IAM access control + policy for a function. + + If the function does not exist, this will return an empty set + of permissions, not a NOT_FOUND error. + + Args: + request (:class:`~.iam_policy_pb2.TestIamPermissionsRequest`): + The request object. Request message for + `TestIamPermissions` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.iam_policy_pb2.TestIamPermissionsResponse: + Response message for ``TestIamPermissions`` method. + """ + # Create or coerce a protobuf request object. + + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = iam_policy_pb2.TestIamPermissionsRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.test_iam_permissions, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("resource", request.resource),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def get_location( + self, + request: Optional[locations_pb2.GetLocationRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> locations_pb2.Location: + r"""Gets information about a location. + + Args: + request (:class:`~.location_pb2.GetLocationRequest`): + The request object. Request message for + `GetLocation` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.location_pb2.Location: + Location object. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = locations_pb2.GetLocationRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.get_location, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def list_locations( + self, + request: Optional[locations_pb2.ListLocationsRequest] = None, + *, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> locations_pb2.ListLocationsResponse: + r"""Lists information about the supported locations for this service. + + Args: + request (:class:`~.location_pb2.ListLocationsRequest`): + The request object. Request message for + `ListLocations` method. + retry (google.api_core.retry.Retry): Designation of what errors, + if any, should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + Returns: + ~.location_pb2.ListLocationsResponse: + Response message for ``ListLocations`` method. + """ + # Create or coerce a protobuf request object. + # The request isn't a proto-plus wrapped type, + # so it must be constructed via keyword expansion. + if isinstance(request, dict): + request = locations_pb2.ListLocationsRequest(**request) + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method.wrap_method( + self._transport.list_locations, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + +DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( + gapic_version=package_version.__version__ +) + + +__all__ = ("PersistentResourceServiceClient",) diff --git a/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/pagers.py new file mode 100644 index 0000000000..15f7db08b9 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/pagers.py @@ -0,0 +1,168 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 typing import ( + Any, + AsyncIterator, + Awaitable, + Callable, + Sequence, + Tuple, + Optional, + Iterator, +) + +from google.cloud.aiplatform_v1beta1.types import persistent_resource +from google.cloud.aiplatform_v1beta1.types import persistent_resource_service + + +class ListPersistentResourcesPager: + """A pager for iterating through ``list_persistent_resources`` requests. + + This class thinly wraps an initial + :class:`google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesResponse` object, and + provides an ``__iter__`` method to iterate through its + ``persistent_resources`` field. + + If there are more pages, the ``__iter__`` method will make additional + ``ListPersistentResources`` requests and continue to iterate + through the ``persistent_resources`` field on the + corresponding responses. + + All the usual :class:`google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesResponse` + attributes are available on the pager. If multiple requests are made, only + the most recent response is retained, and thus used for attribute lookup. + """ + + def __init__( + self, + method: Callable[ + ..., persistent_resource_service.ListPersistentResourcesResponse + ], + request: persistent_resource_service.ListPersistentResourcesRequest, + response: persistent_resource_service.ListPersistentResourcesResponse, + *, + metadata: Sequence[Tuple[str, str]] = () + ): + """Instantiate the pager. + + Args: + method (Callable): The method that was originally called, and + which instantiated this pager. + request (google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesRequest): + The initial request object. + response (google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesResponse): + The initial response object. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + """ + self._method = method + self._request = persistent_resource_service.ListPersistentResourcesRequest( + request + ) + self._response = response + self._metadata = metadata + + def __getattr__(self, name: str) -> Any: + return getattr(self._response, name) + + @property + def pages( + self, + ) -> Iterator[persistent_resource_service.ListPersistentResourcesResponse]: + yield self._response + while self._response.next_page_token: + self._request.page_token = self._response.next_page_token + self._response = self._method(self._request, metadata=self._metadata) + yield self._response + + def __iter__(self) -> Iterator[persistent_resource.PersistentResource]: + for page in self.pages: + yield from page.persistent_resources + + def __repr__(self) -> str: + return "{0}<{1!r}>".format(self.__class__.__name__, self._response) + + +class ListPersistentResourcesAsyncPager: + """A pager for iterating through ``list_persistent_resources`` requests. + + This class thinly wraps an initial + :class:`google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesResponse` object, and + provides an ``__aiter__`` method to iterate through its + ``persistent_resources`` field. + + If there are more pages, the ``__aiter__`` method will make additional + ``ListPersistentResources`` requests and continue to iterate + through the ``persistent_resources`` field on the + corresponding responses. + + All the usual :class:`google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesResponse` + attributes are available on the pager. If multiple requests are made, only + the most recent response is retained, and thus used for attribute lookup. + """ + + def __init__( + self, + method: Callable[ + ..., Awaitable[persistent_resource_service.ListPersistentResourcesResponse] + ], + request: persistent_resource_service.ListPersistentResourcesRequest, + response: persistent_resource_service.ListPersistentResourcesResponse, + *, + metadata: Sequence[Tuple[str, str]] = () + ): + """Instantiates the pager. + + Args: + method (Callable): The method that was originally called, and + which instantiated this pager. + request (google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesRequest): + The initial request object. + response (google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesResponse): + The initial response object. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + """ + self._method = method + self._request = persistent_resource_service.ListPersistentResourcesRequest( + request + ) + self._response = response + self._metadata = metadata + + def __getattr__(self, name: str) -> Any: + return getattr(self._response, name) + + @property + async def pages( + self, + ) -> AsyncIterator[persistent_resource_service.ListPersistentResourcesResponse]: + yield self._response + while self._response.next_page_token: + self._request.page_token = self._response.next_page_token + self._response = await self._method(self._request, metadata=self._metadata) + yield self._response + + def __aiter__(self) -> AsyncIterator[persistent_resource.PersistentResource]: + async def async_generator(): + async for page in self.pages: + for response in page.persistent_resources: + yield response + + return async_generator() + + def __repr__(self) -> str: + return "{0}<{1!r}>".format(self.__class__.__name__, self._response) diff --git a/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/__init__.py new file mode 100644 index 0000000000..c5a1baaffd --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/__init__.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 collections import OrderedDict +from typing import Dict, Type + +from .base import PersistentResourceServiceTransport +from .grpc import PersistentResourceServiceGrpcTransport +from .grpc_asyncio import PersistentResourceServiceGrpcAsyncIOTransport + + +# Compile a registry of transports. +_transport_registry = ( + OrderedDict() +) # type: Dict[str, Type[PersistentResourceServiceTransport]] +_transport_registry["grpc"] = PersistentResourceServiceGrpcTransport +_transport_registry["grpc_asyncio"] = PersistentResourceServiceGrpcAsyncIOTransport + +__all__ = ( + "PersistentResourceServiceTransport", + "PersistentResourceServiceGrpcTransport", + "PersistentResourceServiceGrpcAsyncIOTransport", +) diff --git a/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/base.py new file mode 100644 index 0000000000..36321f83d3 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/base.py @@ -0,0 +1,309 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 abc +from typing import Awaitable, Callable, Dict, Optional, Sequence, Union + +from google.cloud.aiplatform_v1beta1 import gapic_version as package_version + +import google.auth # type: ignore +import google.api_core +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries +from google.api_core import operations_v1 +from google.auth import credentials as ga_credentials # type: ignore +from google.oauth2 import service_account # type: ignore + +from google.cloud.aiplatform_v1beta1.types import persistent_resource +from google.cloud.aiplatform_v1beta1.types import persistent_resource_service +from google.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore + +DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( + gapic_version=package_version.__version__ +) + + +class PersistentResourceServiceTransport(abc.ABC): + """Abstract transport class for PersistentResourceService.""" + + AUTH_SCOPES = ("https://www.googleapis.com/auth/cloud-platform",) + + DEFAULT_HOST: str = "aiplatform.googleapis.com" + + def __init__( + self, + *, + host: str = DEFAULT_HOST, + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + quota_project_id: Optional[str] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + always_use_jwt_access: Optional[bool] = False, + api_audience: Optional[str] = None, + **kwargs, + ) -> None: + """Instantiate the transport. + + Args: + host (Optional[str]): + The hostname to connect to. + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + credentials_file (Optional[str]): A file with credentials that can + be loaded with :func:`google.auth.load_credentials_from_file`. + This argument is mutually exclusive with credentials. + scopes (Optional[Sequence[str]]): A list of scopes. + quota_project_id (Optional[str]): An optional project to use for billing + and quota. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + always_use_jwt_access (Optional[bool]): Whether self signed JWT should + be used for service account credentials. + """ + + scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES} + + # Save the scopes. + self._scopes = scopes + + # If no credentials are provided, then determine the appropriate + # defaults. + if credentials and credentials_file: + raise core_exceptions.DuplicateCredentialArgs( + "'credentials_file' and 'credentials' are mutually exclusive" + ) + + if credentials_file is not None: + credentials, _ = google.auth.load_credentials_from_file( + credentials_file, **scopes_kwargs, quota_project_id=quota_project_id + ) + elif credentials is None: + credentials, _ = google.auth.default( + **scopes_kwargs, quota_project_id=quota_project_id + ) + # Don't apply audience if the credentials file passed from user. + if hasattr(credentials, "with_gdch_audience"): + credentials = credentials.with_gdch_audience( + api_audience if api_audience else host + ) + + # If the credentials are service account credentials, then always try to use self signed JWT. + if ( + always_use_jwt_access + and isinstance(credentials, service_account.Credentials) + and hasattr(service_account.Credentials, "with_always_use_jwt_access") + ): + credentials = credentials.with_always_use_jwt_access(True) + + # Save the credentials. + self._credentials = credentials + + # Save the hostname. Default to port 443 (HTTPS) if none is specified. + if ":" not in host: + host += ":443" + self._host = host + + def _prep_wrapped_messages(self, client_info): + # Precompute the wrapped methods. + self._wrapped_methods = { + self.create_persistent_resource: gapic_v1.method.wrap_method( + self.create_persistent_resource, + default_timeout=None, + client_info=client_info, + ), + self.get_persistent_resource: gapic_v1.method.wrap_method( + self.get_persistent_resource, + default_timeout=None, + client_info=client_info, + ), + self.list_persistent_resources: gapic_v1.method.wrap_method( + self.list_persistent_resources, + default_timeout=None, + client_info=client_info, + ), + self.delete_persistent_resource: gapic_v1.method.wrap_method( + self.delete_persistent_resource, + default_timeout=None, + client_info=client_info, + ), + } + + def close(self): + """Closes resources associated with the transport. + + .. warning:: + Only call this method if the transport is NOT shared + with other clients - this may cause errors in other clients! + """ + raise NotImplementedError() + + @property + def operations_client(self): + """Return the client designed to process long-running operations.""" + raise NotImplementedError() + + @property + def create_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.CreatePersistentResourceRequest], + Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + ]: + raise NotImplementedError() + + @property + def get_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.GetPersistentResourceRequest], + Union[ + persistent_resource.PersistentResource, + Awaitable[persistent_resource.PersistentResource], + ], + ]: + raise NotImplementedError() + + @property + def list_persistent_resources( + self, + ) -> Callable[ + [persistent_resource_service.ListPersistentResourcesRequest], + Union[ + persistent_resource_service.ListPersistentResourcesResponse, + Awaitable[persistent_resource_service.ListPersistentResourcesResponse], + ], + ]: + raise NotImplementedError() + + @property + def delete_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.DeletePersistentResourceRequest], + Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + ]: + raise NotImplementedError() + + @property + def list_operations( + self, + ) -> Callable[ + [operations_pb2.ListOperationsRequest], + Union[ + operations_pb2.ListOperationsResponse, + Awaitable[operations_pb2.ListOperationsResponse], + ], + ]: + raise NotImplementedError() + + @property + def get_operation( + self, + ) -> Callable[ + [operations_pb2.GetOperationRequest], + Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + ]: + raise NotImplementedError() + + @property + def cancel_operation( + self, + ) -> Callable[[operations_pb2.CancelOperationRequest], None,]: + raise NotImplementedError() + + @property + def delete_operation( + self, + ) -> Callable[[operations_pb2.DeleteOperationRequest], None,]: + raise NotImplementedError() + + @property + def wait_operation( + self, + ) -> Callable[ + [operations_pb2.WaitOperationRequest], + Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + ]: + raise NotImplementedError() + + @property + def set_iam_policy( + self, + ) -> Callable[ + [iam_policy_pb2.SetIamPolicyRequest], + Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]], + ]: + raise NotImplementedError() + + @property + def get_iam_policy( + self, + ) -> Callable[ + [iam_policy_pb2.GetIamPolicyRequest], + Union[policy_pb2.Policy, Awaitable[policy_pb2.Policy]], + ]: + raise NotImplementedError() + + @property + def test_iam_permissions( + self, + ) -> Callable[ + [iam_policy_pb2.TestIamPermissionsRequest], + Union[ + iam_policy_pb2.TestIamPermissionsResponse, + Awaitable[iam_policy_pb2.TestIamPermissionsResponse], + ], + ]: + raise NotImplementedError() + + @property + def get_location( + self, + ) -> Callable[ + [locations_pb2.GetLocationRequest], + Union[locations_pb2.Location, Awaitable[locations_pb2.Location]], + ]: + raise NotImplementedError() + + @property + def list_locations( + self, + ) -> Callable[ + [locations_pb2.ListLocationsRequest], + Union[ + locations_pb2.ListLocationsResponse, + Awaitable[locations_pb2.ListLocationsResponse], + ], + ]: + raise NotImplementedError() + + @property + def kind(self) -> str: + raise NotImplementedError() + + +__all__ = ("PersistentResourceServiceTransport",) diff --git a/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc.py new file mode 100644 index 0000000000..502d6f2b67 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc.py @@ -0,0 +1,582 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 warnings +from typing import Callable, Dict, Optional, Sequence, Tuple, Union + +from google.api_core import grpc_helpers +from google.api_core import operations_v1 +from google.api_core import gapic_v1 +import google.auth # type: ignore +from google.auth import credentials as ga_credentials # type: ignore +from google.auth.transport.grpc import SslCredentials # type: ignore + +import grpc # type: ignore + +from google.cloud.aiplatform_v1beta1.types import persistent_resource +from google.cloud.aiplatform_v1beta1.types import persistent_resource_service +from google.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore +from .base import PersistentResourceServiceTransport, DEFAULT_CLIENT_INFO + + +class PersistentResourceServiceGrpcTransport(PersistentResourceServiceTransport): + """gRPC backend transport for PersistentResourceService. + + A service for managing Vertex AI's machine learning + PersistentResource. + + This class defines the same methods as the primary client, so the + primary client can load the underlying transport implementation + and call it. + + It sends protocol buffers over the wire using gRPC (which is built on + top of HTTP/2); the ``grpcio`` package must be installed. + """ + + _stubs: Dict[str, Callable] + + def __init__( + self, + *, + host: str = "aiplatform.googleapis.com", + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[grpc.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + always_use_jwt_access: Optional[bool] = False, + api_audience: Optional[str] = None, + ) -> None: + """Instantiate the transport. + + Args: + host (Optional[str]): + The hostname to connect to. + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is ignored if ``channel`` is provided. + credentials_file (Optional[str]): A file with credentials that can + be loaded with :func:`google.auth.load_credentials_from_file`. + This argument is ignored if ``channel`` is provided. + scopes (Optional(Sequence[str])): A list of scopes. This argument is + ignored if ``channel`` is provided. + channel (Optional[grpc.Channel]): A ``Channel`` instance through + which to make calls. + api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. + If provided, it overrides the ``host`` argument and tries to create + a mutual TLS channel with client SSL credentials from + ``client_cert_source`` or application default SSL credentials. + client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): + Deprecated. A callback to provide client SSL certificate bytes and + private key bytes, both in PEM format. It is ignored if + ``api_mtls_endpoint`` is None. + ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials + for the grpc channel. It is ignored if ``channel`` is provided. + client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): + A callback to provide client certificate bytes and private key bytes, + both in PEM format. It is used to configure a mutual TLS channel. It is + ignored if ``channel`` or ``ssl_channel_credentials`` is provided. + quota_project_id (Optional[str]): An optional project to use for billing + and quota. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + always_use_jwt_access (Optional[bool]): Whether self signed JWT should + be used for service account credentials. + + Raises: + google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport + creation failed for any reason. + google.api_core.exceptions.DuplicateCredentialArgs: If both ``credentials`` + and ``credentials_file`` are passed. + """ + self._grpc_channel = None + self._ssl_channel_credentials = ssl_channel_credentials + self._stubs: Dict[str, Callable] = {} + self._operations_client: Optional[operations_v1.OperationsClient] = None + + if api_mtls_endpoint: + warnings.warn("api_mtls_endpoint is deprecated", DeprecationWarning) + if client_cert_source: + warnings.warn("client_cert_source is deprecated", DeprecationWarning) + + if channel: + # Ignore credentials if a channel was passed. + credentials = False + # If a channel was explicitly provided, set it. + self._grpc_channel = channel + self._ssl_channel_credentials = None + + else: + if api_mtls_endpoint: + host = api_mtls_endpoint + + # Create SSL credentials with client_cert_source or application + # default SSL credentials. + if client_cert_source: + cert, key = client_cert_source() + self._ssl_channel_credentials = grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) + else: + self._ssl_channel_credentials = SslCredentials().ssl_credentials + + else: + if client_cert_source_for_mtls and not ssl_channel_credentials: + cert, key = client_cert_source_for_mtls() + self._ssl_channel_credentials = grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) + + # The base transport sets the host, credentials and scopes + super().__init__( + host=host, + credentials=credentials, + credentials_file=credentials_file, + scopes=scopes, + quota_project_id=quota_project_id, + client_info=client_info, + always_use_jwt_access=always_use_jwt_access, + api_audience=api_audience, + ) + + if not self._grpc_channel: + self._grpc_channel = type(self).create_channel( + self._host, + # use the credentials which are saved + credentials=self._credentials, + # Set ``credentials_file`` to ``None`` here as + # the credentials that we saved earlier should be used. + credentials_file=None, + scopes=self._scopes, + ssl_credentials=self._ssl_channel_credentials, + quota_project_id=quota_project_id, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], + ) + + # Wrap messages. This must be done after self._grpc_channel exists + self._prep_wrapped_messages(client_info) + + @classmethod + def create_channel( + cls, + host: str = "aiplatform.googleapis.com", + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + quota_project_id: Optional[str] = None, + **kwargs, + ) -> grpc.Channel: + """Create and return a gRPC channel object. + Args: + host (Optional[str]): The host for the channel to use. + credentials (Optional[~.Credentials]): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + credentials_file (Optional[str]): A file with credentials that can + be loaded with :func:`google.auth.load_credentials_from_file`. + This argument is mutually exclusive with credentials. + scopes (Optional[Sequence[str]]): A optional list of scopes needed for this + service. These are only used when credentials are not specified and + are passed to :func:`google.auth.default`. + quota_project_id (Optional[str]): An optional project to use for billing + and quota. + kwargs (Optional[dict]): Keyword arguments, which are passed to the + channel creation. + Returns: + grpc.Channel: A gRPC channel object. + + Raises: + google.api_core.exceptions.DuplicateCredentialArgs: If both ``credentials`` + and ``credentials_file`` are passed. + """ + + return grpc_helpers.create_channel( + host, + credentials=credentials, + credentials_file=credentials_file, + quota_project_id=quota_project_id, + default_scopes=cls.AUTH_SCOPES, + scopes=scopes, + default_host=cls.DEFAULT_HOST, + **kwargs, + ) + + @property + def grpc_channel(self) -> grpc.Channel: + """Return the channel designed to connect to this service.""" + return self._grpc_channel + + @property + def operations_client(self) -> operations_v1.OperationsClient: + """Create the client designed to process long-running operations. + + This property caches on the instance; repeated calls return the same + client. + """ + # Quick check: Only create a new client if we do not already have one. + if self._operations_client is None: + self._operations_client = operations_v1.OperationsClient(self.grpc_channel) + + # Return the client from cache. + return self._operations_client + + @property + def create_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.CreatePersistentResourceRequest], + operations_pb2.Operation, + ]: + r"""Return a callable for the create persistent resource method over gRPC. + + Uploads a Model artifact into Vertex AI. + + Returns: + Callable[[~.CreatePersistentResourceRequest], + ~.Operation]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "create_persistent_resource" not in self._stubs: + self._stubs["create_persistent_resource"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/CreatePersistentResource", + request_serializer=persistent_resource_service.CreatePersistentResourceRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["create_persistent_resource"] + + @property + def get_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.GetPersistentResourceRequest], + persistent_resource.PersistentResource, + ]: + r"""Return a callable for the get persistent resource method over gRPC. + + Gets a PersistentResource. + + Returns: + Callable[[~.GetPersistentResourceRequest], + ~.PersistentResource]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_persistent_resource" not in self._stubs: + self._stubs["get_persistent_resource"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/GetPersistentResource", + request_serializer=persistent_resource_service.GetPersistentResourceRequest.serialize, + response_deserializer=persistent_resource.PersistentResource.deserialize, + ) + return self._stubs["get_persistent_resource"] + + @property + def list_persistent_resources( + self, + ) -> Callable[ + [persistent_resource_service.ListPersistentResourcesRequest], + persistent_resource_service.ListPersistentResourcesResponse, + ]: + r"""Return a callable for the list persistent resources method over gRPC. + + Lists PersistentResources in a Location. + + Returns: + Callable[[~.ListPersistentResourcesRequest], + ~.ListPersistentResourcesResponse]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "list_persistent_resources" not in self._stubs: + self._stubs["list_persistent_resources"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/ListPersistentResources", + request_serializer=persistent_resource_service.ListPersistentResourcesRequest.serialize, + response_deserializer=persistent_resource_service.ListPersistentResourcesResponse.deserialize, + ) + return self._stubs["list_persistent_resources"] + + @property + def delete_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.DeletePersistentResourceRequest], + operations_pb2.Operation, + ]: + r"""Return a callable for the delete persistent resource method over gRPC. + + Deletes a PersistentResource. + + Returns: + Callable[[~.DeletePersistentResourceRequest], + ~.Operation]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_persistent_resource" not in self._stubs: + self._stubs["delete_persistent_resource"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/DeletePersistentResource", + request_serializer=persistent_resource_service.DeletePersistentResourceRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["delete_persistent_resource"] + + def close(self): + self.grpc_channel.close() + + @property + def delete_operation( + self, + ) -> Callable[[operations_pb2.DeleteOperationRequest], None]: + r"""Return a callable for the delete_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_operation" not in self._stubs: + self._stubs["delete_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/DeleteOperation", + request_serializer=operations_pb2.DeleteOperationRequest.SerializeToString, + response_deserializer=None, + ) + return self._stubs["delete_operation"] + + @property + def cancel_operation( + self, + ) -> Callable[[operations_pb2.CancelOperationRequest], None]: + r"""Return a callable for the cancel_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "cancel_operation" not in self._stubs: + self._stubs["cancel_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/CancelOperation", + request_serializer=operations_pb2.CancelOperationRequest.SerializeToString, + response_deserializer=None, + ) + return self._stubs["cancel_operation"] + + @property + def wait_operation( + self, + ) -> Callable[[operations_pb2.WaitOperationRequest], None]: + r"""Return a callable for the wait_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_operation" not in self._stubs: + self._stubs["wait_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/WaitOperation", + request_serializer=operations_pb2.WaitOperationRequest.SerializeToString, + response_deserializer=None, + ) + return self._stubs["wait_operation"] + + @property + def get_operation( + self, + ) -> Callable[[operations_pb2.GetOperationRequest], operations_pb2.Operation]: + r"""Return a callable for the get_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_operation" not in self._stubs: + self._stubs["get_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/GetOperation", + request_serializer=operations_pb2.GetOperationRequest.SerializeToString, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["get_operation"] + + @property + def list_operations( + self, + ) -> Callable[ + [operations_pb2.ListOperationsRequest], operations_pb2.ListOperationsResponse + ]: + r"""Return a callable for the list_operations method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "list_operations" not in self._stubs: + self._stubs["list_operations"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/ListOperations", + request_serializer=operations_pb2.ListOperationsRequest.SerializeToString, + response_deserializer=operations_pb2.ListOperationsResponse.FromString, + ) + return self._stubs["list_operations"] + + @property + def list_locations( + self, + ) -> Callable[ + [locations_pb2.ListLocationsRequest], locations_pb2.ListLocationsResponse + ]: + r"""Return a callable for the list locations method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "list_locations" not in self._stubs: + self._stubs["list_locations"] = self.grpc_channel.unary_unary( + "/google.cloud.location.Locations/ListLocations", + request_serializer=locations_pb2.ListLocationsRequest.SerializeToString, + response_deserializer=locations_pb2.ListLocationsResponse.FromString, + ) + return self._stubs["list_locations"] + + @property + def get_location( + self, + ) -> Callable[[locations_pb2.GetLocationRequest], locations_pb2.Location]: + r"""Return a callable for the list locations method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_location" not in self._stubs: + self._stubs["get_location"] = self.grpc_channel.unary_unary( + "/google.cloud.location.Locations/GetLocation", + request_serializer=locations_pb2.GetLocationRequest.SerializeToString, + response_deserializer=locations_pb2.Location.FromString, + ) + return self._stubs["get_location"] + + @property + def set_iam_policy( + self, + ) -> Callable[[iam_policy_pb2.SetIamPolicyRequest], policy_pb2.Policy]: + r"""Return a callable for the set iam policy method over gRPC. + Sets the IAM access control policy on the specified + function. Replaces any existing policy. + Returns: + Callable[[~.SetIamPolicyRequest], + ~.Policy]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "set_iam_policy" not in self._stubs: + self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary( + "/google.iam.v1.IAMPolicy/SetIamPolicy", + request_serializer=iam_policy_pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=policy_pb2.Policy.FromString, + ) + return self._stubs["set_iam_policy"] + + @property + def get_iam_policy( + self, + ) -> Callable[[iam_policy_pb2.GetIamPolicyRequest], policy_pb2.Policy]: + r"""Return a callable for the get iam policy method over gRPC. + Gets the IAM access control policy for a function. + Returns an empty policy if the function exists and does + not have a policy set. + Returns: + Callable[[~.GetIamPolicyRequest], + ~.Policy]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_iam_policy" not in self._stubs: + self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary( + "/google.iam.v1.IAMPolicy/GetIamPolicy", + request_serializer=iam_policy_pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=policy_pb2.Policy.FromString, + ) + return self._stubs["get_iam_policy"] + + @property + def test_iam_permissions( + self, + ) -> Callable[ + [iam_policy_pb2.TestIamPermissionsRequest], + iam_policy_pb2.TestIamPermissionsResponse, + ]: + r"""Return a callable for the test iam permissions method over gRPC. + Tests the specified permissions against the IAM access control + policy for a function. If the function does not exist, this will + return an empty set of permissions, not a NOT_FOUND error. + Returns: + Callable[[~.TestIamPermissionsRequest], + ~.TestIamPermissionsResponse]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "test_iam_permissions" not in self._stubs: + self._stubs["test_iam_permissions"] = self.grpc_channel.unary_unary( + "/google.iam.v1.IAMPolicy/TestIamPermissions", + request_serializer=iam_policy_pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=iam_policy_pb2.TestIamPermissionsResponse.FromString, + ) + return self._stubs["test_iam_permissions"] + + @property + def kind(self) -> str: + return "grpc" + + +__all__ = ("PersistentResourceServiceGrpcTransport",) diff --git a/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc_asyncio.py new file mode 100644 index 0000000000..be18981831 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/services/persistent_resource_service/transports/grpc_asyncio.py @@ -0,0 +1,583 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 warnings +from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union + +from google.api_core import gapic_v1 +from google.api_core import grpc_helpers_async +from google.api_core import operations_v1 +from google.auth import credentials as ga_credentials # type: ignore +from google.auth.transport.grpc import SslCredentials # type: ignore + +import grpc # type: ignore +from grpc.experimental import aio # type: ignore + +from google.cloud.aiplatform_v1beta1.types import persistent_resource +from google.cloud.aiplatform_v1beta1.types import persistent_resource_service +from google.cloud.location import locations_pb2 # type: ignore +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 +from google.longrunning import operations_pb2 # type: ignore +from .base import PersistentResourceServiceTransport, DEFAULT_CLIENT_INFO +from .grpc import PersistentResourceServiceGrpcTransport + + +class PersistentResourceServiceGrpcAsyncIOTransport(PersistentResourceServiceTransport): + """gRPC AsyncIO backend transport for PersistentResourceService. + + A service for managing Vertex AI's machine learning + PersistentResource. + + This class defines the same methods as the primary client, so the + primary client can load the underlying transport implementation + and call it. + + It sends protocol buffers over the wire using gRPC (which is built on + top of HTTP/2); the ``grpcio`` package must be installed. + """ + + _grpc_channel: aio.Channel + _stubs: Dict[str, Callable] = {} + + @classmethod + def create_channel( + cls, + host: str = "aiplatform.googleapis.com", + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + quota_project_id: Optional[str] = None, + **kwargs, + ) -> aio.Channel: + """Create and return a gRPC AsyncIO channel object. + Args: + host (Optional[str]): The host for the channel to use. + credentials (Optional[~.Credentials]): The + authorization credentials to attach to requests. These + credentials identify this application to the service. If + none are specified, the client will attempt to ascertain + the credentials from the environment. + credentials_file (Optional[str]): A file with credentials that can + be loaded with :func:`google.auth.load_credentials_from_file`. + This argument is ignored if ``channel`` is provided. + scopes (Optional[Sequence[str]]): A optional list of scopes needed for this + service. These are only used when credentials are not specified and + are passed to :func:`google.auth.default`. + quota_project_id (Optional[str]): An optional project to use for billing + and quota. + kwargs (Optional[dict]): Keyword arguments, which are passed to the + channel creation. + Returns: + aio.Channel: A gRPC AsyncIO channel object. + """ + + return grpc_helpers_async.create_channel( + host, + credentials=credentials, + credentials_file=credentials_file, + quota_project_id=quota_project_id, + default_scopes=cls.AUTH_SCOPES, + scopes=scopes, + default_host=cls.DEFAULT_HOST, + **kwargs, + ) + + def __init__( + self, + *, + host: str = "aiplatform.googleapis.com", + credentials: Optional[ga_credentials.Credentials] = None, + credentials_file: Optional[str] = None, + scopes: Optional[Sequence[str]] = None, + channel: Optional[aio.Channel] = None, + api_mtls_endpoint: Optional[str] = None, + client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, + client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, + quota_project_id: Optional[str] = None, + client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO, + always_use_jwt_access: Optional[bool] = False, + api_audience: Optional[str] = None, + ) -> None: + """Instantiate the transport. + + Args: + host (Optional[str]): + The hostname to connect to. + credentials (Optional[google.auth.credentials.Credentials]): The + authorization credentials to attach to requests. These + credentials identify the application to the service; if none + are specified, the client will attempt to ascertain the + credentials from the environment. + This argument is ignored if ``channel`` is provided. + credentials_file (Optional[str]): A file with credentials that can + be loaded with :func:`google.auth.load_credentials_from_file`. + This argument is ignored if ``channel`` is provided. + scopes (Optional[Sequence[str]]): A optional list of scopes needed for this + service. These are only used when credentials are not specified and + are passed to :func:`google.auth.default`. + channel (Optional[aio.Channel]): A ``Channel`` instance through + which to make calls. + api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint. + If provided, it overrides the ``host`` argument and tries to create + a mutual TLS channel with client SSL credentials from + ``client_cert_source`` or application default SSL credentials. + client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]): + Deprecated. A callback to provide client SSL certificate bytes and + private key bytes, both in PEM format. It is ignored if + ``api_mtls_endpoint`` is None. + ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials + for the grpc channel. It is ignored if ``channel`` is provided. + client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]): + A callback to provide client certificate bytes and private key bytes, + both in PEM format. It is used to configure a mutual TLS channel. It is + ignored if ``channel`` or ``ssl_channel_credentials`` is provided. + quota_project_id (Optional[str]): An optional project to use for billing + and quota. + client_info (google.api_core.gapic_v1.client_info.ClientInfo): + The client info used to send a user-agent string along with + API requests. If ``None``, then default info will be used. + Generally, you only need to set this if you're developing + your own client library. + always_use_jwt_access (Optional[bool]): Whether self signed JWT should + be used for service account credentials. + + Raises: + google.auth.exceptions.MutualTlsChannelError: If mutual TLS transport + creation failed for any reason. + google.api_core.exceptions.DuplicateCredentialArgs: If both ``credentials`` + and ``credentials_file`` are passed. + """ + self._grpc_channel = None + self._ssl_channel_credentials = ssl_channel_credentials + self._stubs: Dict[str, Callable] = {} + self._operations_client: Optional[operations_v1.OperationsAsyncClient] = None + + if api_mtls_endpoint: + warnings.warn("api_mtls_endpoint is deprecated", DeprecationWarning) + if client_cert_source: + warnings.warn("client_cert_source is deprecated", DeprecationWarning) + + if channel: + # Ignore credentials if a channel was passed. + credentials = False + # If a channel was explicitly provided, set it. + self._grpc_channel = channel + self._ssl_channel_credentials = None + else: + if api_mtls_endpoint: + host = api_mtls_endpoint + + # Create SSL credentials with client_cert_source or application + # default SSL credentials. + if client_cert_source: + cert, key = client_cert_source() + self._ssl_channel_credentials = grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) + else: + self._ssl_channel_credentials = SslCredentials().ssl_credentials + + else: + if client_cert_source_for_mtls and not ssl_channel_credentials: + cert, key = client_cert_source_for_mtls() + self._ssl_channel_credentials = grpc.ssl_channel_credentials( + certificate_chain=cert, private_key=key + ) + + # The base transport sets the host, credentials and scopes + super().__init__( + host=host, + credentials=credentials, + credentials_file=credentials_file, + scopes=scopes, + quota_project_id=quota_project_id, + client_info=client_info, + always_use_jwt_access=always_use_jwt_access, + api_audience=api_audience, + ) + + if not self._grpc_channel: + self._grpc_channel = type(self).create_channel( + self._host, + # use the credentials which are saved + credentials=self._credentials, + # Set ``credentials_file`` to ``None`` here as + # the credentials that we saved earlier should be used. + credentials_file=None, + scopes=self._scopes, + ssl_credentials=self._ssl_channel_credentials, + quota_project_id=quota_project_id, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], + ) + + # Wrap messages. This must be done after self._grpc_channel exists + self._prep_wrapped_messages(client_info) + + @property + def grpc_channel(self) -> aio.Channel: + """Create the channel designed to connect to this service. + + This property caches on the instance; repeated calls return + the same channel. + """ + # Return the channel from cache. + return self._grpc_channel + + @property + def operations_client(self) -> operations_v1.OperationsAsyncClient: + """Create the client designed to process long-running operations. + + This property caches on the instance; repeated calls return the same + client. + """ + # Quick check: Only create a new client if we do not already have one. + if self._operations_client is None: + self._operations_client = operations_v1.OperationsAsyncClient( + self.grpc_channel + ) + + # Return the client from cache. + return self._operations_client + + @property + def create_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.CreatePersistentResourceRequest], + Awaitable[operations_pb2.Operation], + ]: + r"""Return a callable for the create persistent resource method over gRPC. + + Uploads a Model artifact into Vertex AI. + + Returns: + Callable[[~.CreatePersistentResourceRequest], + Awaitable[~.Operation]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "create_persistent_resource" not in self._stubs: + self._stubs["create_persistent_resource"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/CreatePersistentResource", + request_serializer=persistent_resource_service.CreatePersistentResourceRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["create_persistent_resource"] + + @property + def get_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.GetPersistentResourceRequest], + Awaitable[persistent_resource.PersistentResource], + ]: + r"""Return a callable for the get persistent resource method over gRPC. + + Gets a PersistentResource. + + Returns: + Callable[[~.GetPersistentResourceRequest], + Awaitable[~.PersistentResource]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_persistent_resource" not in self._stubs: + self._stubs["get_persistent_resource"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/GetPersistentResource", + request_serializer=persistent_resource_service.GetPersistentResourceRequest.serialize, + response_deserializer=persistent_resource.PersistentResource.deserialize, + ) + return self._stubs["get_persistent_resource"] + + @property + def list_persistent_resources( + self, + ) -> Callable[ + [persistent_resource_service.ListPersistentResourcesRequest], + Awaitable[persistent_resource_service.ListPersistentResourcesResponse], + ]: + r"""Return a callable for the list persistent resources method over gRPC. + + Lists PersistentResources in a Location. + + Returns: + Callable[[~.ListPersistentResourcesRequest], + Awaitable[~.ListPersistentResourcesResponse]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "list_persistent_resources" not in self._stubs: + self._stubs["list_persistent_resources"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/ListPersistentResources", + request_serializer=persistent_resource_service.ListPersistentResourcesRequest.serialize, + response_deserializer=persistent_resource_service.ListPersistentResourcesResponse.deserialize, + ) + return self._stubs["list_persistent_resources"] + + @property + def delete_persistent_resource( + self, + ) -> Callable[ + [persistent_resource_service.DeletePersistentResourceRequest], + Awaitable[operations_pb2.Operation], + ]: + r"""Return a callable for the delete persistent resource method over gRPC. + + Deletes a PersistentResource. + + Returns: + Callable[[~.DeletePersistentResourceRequest], + Awaitable[~.Operation]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_persistent_resource" not in self._stubs: + self._stubs["delete_persistent_resource"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.PersistentResourceService/DeletePersistentResource", + request_serializer=persistent_resource_service.DeletePersistentResourceRequest.serialize, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["delete_persistent_resource"] + + def close(self): + return self.grpc_channel.close() + + @property + def delete_operation( + self, + ) -> Callable[[operations_pb2.DeleteOperationRequest], None]: + r"""Return a callable for the delete_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_operation" not in self._stubs: + self._stubs["delete_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/DeleteOperation", + request_serializer=operations_pb2.DeleteOperationRequest.SerializeToString, + response_deserializer=None, + ) + return self._stubs["delete_operation"] + + @property + def cancel_operation( + self, + ) -> Callable[[operations_pb2.CancelOperationRequest], None]: + r"""Return a callable for the cancel_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "cancel_operation" not in self._stubs: + self._stubs["cancel_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/CancelOperation", + request_serializer=operations_pb2.CancelOperationRequest.SerializeToString, + response_deserializer=None, + ) + return self._stubs["cancel_operation"] + + @property + def wait_operation( + self, + ) -> Callable[[operations_pb2.WaitOperationRequest], None]: + r"""Return a callable for the wait_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "delete_operation" not in self._stubs: + self._stubs["wait_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/WaitOperation", + request_serializer=operations_pb2.WaitOperationRequest.SerializeToString, + response_deserializer=None, + ) + return self._stubs["wait_operation"] + + @property + def get_operation( + self, + ) -> Callable[[operations_pb2.GetOperationRequest], operations_pb2.Operation]: + r"""Return a callable for the get_operation method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_operation" not in self._stubs: + self._stubs["get_operation"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/GetOperation", + request_serializer=operations_pb2.GetOperationRequest.SerializeToString, + response_deserializer=operations_pb2.Operation.FromString, + ) + return self._stubs["get_operation"] + + @property + def list_operations( + self, + ) -> Callable[ + [operations_pb2.ListOperationsRequest], operations_pb2.ListOperationsResponse + ]: + r"""Return a callable for the list_operations method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "list_operations" not in self._stubs: + self._stubs["list_operations"] = self.grpc_channel.unary_unary( + "/google.longrunning.Operations/ListOperations", + request_serializer=operations_pb2.ListOperationsRequest.SerializeToString, + response_deserializer=operations_pb2.ListOperationsResponse.FromString, + ) + return self._stubs["list_operations"] + + @property + def list_locations( + self, + ) -> Callable[ + [locations_pb2.ListLocationsRequest], locations_pb2.ListLocationsResponse + ]: + r"""Return a callable for the list locations method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "list_locations" not in self._stubs: + self._stubs["list_locations"] = self.grpc_channel.unary_unary( + "/google.cloud.location.Locations/ListLocations", + request_serializer=locations_pb2.ListLocationsRequest.SerializeToString, + response_deserializer=locations_pb2.ListLocationsResponse.FromString, + ) + return self._stubs["list_locations"] + + @property + def get_location( + self, + ) -> Callable[[locations_pb2.GetLocationRequest], locations_pb2.Location]: + r"""Return a callable for the list locations method over gRPC.""" + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_location" not in self._stubs: + self._stubs["get_location"] = self.grpc_channel.unary_unary( + "/google.cloud.location.Locations/GetLocation", + request_serializer=locations_pb2.GetLocationRequest.SerializeToString, + response_deserializer=locations_pb2.Location.FromString, + ) + return self._stubs["get_location"] + + @property + def set_iam_policy( + self, + ) -> Callable[[iam_policy_pb2.SetIamPolicyRequest], policy_pb2.Policy]: + r"""Return a callable for the set iam policy method over gRPC. + Sets the IAM access control policy on the specified + function. Replaces any existing policy. + Returns: + Callable[[~.SetIamPolicyRequest], + ~.Policy]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "set_iam_policy" not in self._stubs: + self._stubs["set_iam_policy"] = self.grpc_channel.unary_unary( + "/google.iam.v1.IAMPolicy/SetIamPolicy", + request_serializer=iam_policy_pb2.SetIamPolicyRequest.SerializeToString, + response_deserializer=policy_pb2.Policy.FromString, + ) + return self._stubs["set_iam_policy"] + + @property + def get_iam_policy( + self, + ) -> Callable[[iam_policy_pb2.GetIamPolicyRequest], policy_pb2.Policy]: + r"""Return a callable for the get iam policy method over gRPC. + Gets the IAM access control policy for a function. + Returns an empty policy if the function exists and does + not have a policy set. + Returns: + Callable[[~.GetIamPolicyRequest], + ~.Policy]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "get_iam_policy" not in self._stubs: + self._stubs["get_iam_policy"] = self.grpc_channel.unary_unary( + "/google.iam.v1.IAMPolicy/GetIamPolicy", + request_serializer=iam_policy_pb2.GetIamPolicyRequest.SerializeToString, + response_deserializer=policy_pb2.Policy.FromString, + ) + return self._stubs["get_iam_policy"] + + @property + def test_iam_permissions( + self, + ) -> Callable[ + [iam_policy_pb2.TestIamPermissionsRequest], + iam_policy_pb2.TestIamPermissionsResponse, + ]: + r"""Return a callable for the test iam permissions method over gRPC. + Tests the specified permissions against the IAM access control + policy for a function. If the function does not exist, this will + return an empty set of permissions, not a NOT_FOUND error. + Returns: + Callable[[~.TestIamPermissionsRequest], + ~.TestIamPermissionsResponse]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "test_iam_permissions" not in self._stubs: + self._stubs["test_iam_permissions"] = self.grpc_channel.unary_unary( + "/google.iam.v1.IAMPolicy/TestIamPermissions", + request_serializer=iam_policy_pb2.TestIamPermissionsRequest.SerializeToString, + response_deserializer=iam_policy_pb2.TestIamPermissionsResponse.FromString, + ) + return self._stubs["test_iam_permissions"] + + +__all__ = ("PersistentResourceServiceGrpcAsyncIOTransport",) diff --git a/google/cloud/aiplatform_v1beta1/services/pipeline_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/__init__.py index 5eea4316a6..716fff3072 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/pipeline_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/async_client.py index 9cd07f9946..3c30d6949a 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -2104,7 +2104,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "PipelineServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/pipeline_service/client.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/client.py index f15c3907ab..1bfdd5d950 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/pipeline_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/pagers.py index ca4cea801d..eb8e4b4108 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/__init__.py index 7cf231f6c5..d97c1b4af5 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/base.py index 6d9e51760c..e05b06a3fc 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc.py index ed91ce71ad..18a4b690a6 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc_asyncio.py index 48ee732e77..6b75c5954a 100644 --- a/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/pipeline_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/prediction_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/prediction_service/__init__.py index d5ecd0dd03..3a0131f7e4 100644 --- a/google/cloud/aiplatform_v1beta1/services/prediction_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/prediction_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/prediction_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/prediction_service/async_client.py index 4b513ebe50..ba91baf7b0 100644 --- a/google/cloud/aiplatform_v1beta1/services/prediction_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/prediction_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1394,7 +1394,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "PredictionServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/prediction_service/client.py b/google/cloud/aiplatform_v1beta1/services/prediction_service/client.py index 31436ccf72..1416fa5730 100644 --- a/google/cloud/aiplatform_v1beta1/services/prediction_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/prediction_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/__init__.py index 3b81984dc0..d9647454f6 100644 --- a/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/base.py index 62db4ef639..ea093fdce7 100644 --- a/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc.py index b004354868..677304c25d 100644 --- a/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc_asyncio.py index 28dce30734..4bb8fdefc9 100644 --- a/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/prediction_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/schedule_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/__init__.py index f44720830d..40f84efec0 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/schedule_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/async_client.py index 2a5d85b54f..bf9658807b 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1733,7 +1733,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "ScheduleServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/schedule_service/client.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/client.py index 840228fd80..a1267630c5 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/schedule_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/pagers.py index 0e4b82882d..dea5944e56 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/__init__.py index 1ee45dd8cb..bc0830480b 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/base.py index 49392d8902..aa75bd6e06 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc.py index 1ab6003044..ff51523023 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc_asyncio.py index 5e83134596..d917d4870a 100644 --- a/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/schedule_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/__init__.py index 0f61e0cadc..fb212dc162 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/async_client.py index beb7c8acb4..ae605d5069 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1563,7 +1563,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "SpecialistPoolServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py index b1d2b22380..2b52c28b1b 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/pagers.py index d55b692e33..077de7af5f 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/__init__.py index c8f1c13419..92437c18b5 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/base.py index 38e2db845a..c4a8589671 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc.py index 79f901b131..648fe1ba39 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc_asyncio.py index 1ccacb1ed5..325da316fa 100644 --- a/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/specialist_pool_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/tensorboard_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/__init__.py index 91397832d2..66b01e1438 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/tensorboard_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/async_client.py index 9b7b3e7fe8..0578013e21 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -499,113 +499,6 @@ async def sample_get_tensorboard(): # Done; return the response. return response - async def read_tensorboard_usage( - self, - request: Optional[ - Union[tensorboard_service.ReadTensorboardUsageRequest, dict] - ] = None, - *, - tensorboard: Optional[str] = None, - retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: Union[float, object] = gapic_v1.method.DEFAULT, - metadata: Sequence[Tuple[str, str]] = (), - ) -> tensorboard_service.ReadTensorboardUsageResponse: - r"""Returns a list of monthly active users for a given - TensorBoard instance. - - .. code-block:: python - - # 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 aiplatform_v1beta1 - - async def sample_read_tensorboard_usage(): - # Create a client - client = aiplatform_v1beta1.TensorboardServiceAsyncClient() - - # Initialize request argument(s) - request = aiplatform_v1beta1.ReadTensorboardUsageRequest( - tensorboard="tensorboard_value", - ) - - # Make the request - response = await client.read_tensorboard_usage(request=request) - - # Handle the response - print(response) - - Args: - request (Optional[Union[google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageRequest, dict]]): - The request object. Request message for - [TensorboardService.GetTensorboardUsage][]. - tensorboard (:class:`str`): - Required. The name of the Tensorboard resource. Format: - ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` - - This corresponds to the ``tensorboard`` field - on the ``request`` instance; if ``request`` is provided, this - should not be set. - retry (google.api_core.retry.Retry): Designation of what errors, if any, - should be retried. - timeout (float): The timeout for this request. - metadata (Sequence[Tuple[str, str]]): Strings which should be - sent along with the request as metadata. - - Returns: - google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse: - Response message for - [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. - - """ - # Create or coerce a protobuf request object. - # Quick check: If we got a request object, we should *not* have - # gotten any keyword arguments that map to the request. - has_flattened_params = any([tensorboard]) - if request is not None and has_flattened_params: - raise ValueError( - "If the `request` argument is set, then none of " - "the individual field arguments should be set." - ) - - request = tensorboard_service.ReadTensorboardUsageRequest(request) - - # If we have keyword arguments corresponding to fields on the - # request, apply these. - if tensorboard is not None: - request.tensorboard = tensorboard - - # Wrap the RPC method; this adds retry and timeout information, - # and friendly error handling. - rpc = gapic_v1.method_async.wrap_method( - self._client._transport.read_tensorboard_usage, - default_timeout=None, - client_info=DEFAULT_CLIENT_INFO, - ) - - # Certain fields should be provided within the metadata header; - # add these here. - metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata( - (("tensorboard", request.tensorboard),) - ), - ) - - # Send the request. - response = await rpc( - request, - retry=retry, - timeout=timeout, - metadata=metadata, - ) - - # Done; return the response. - return response - async def update_tensorboard( self, request: Optional[ @@ -992,6 +885,220 @@ async def sample_delete_tensorboard(): # Done; return the response. return response + async def read_tensorboard_usage( + self, + request: Optional[ + Union[tensorboard_service.ReadTensorboardUsageRequest, dict] + ] = None, + *, + tensorboard: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> tensorboard_service.ReadTensorboardUsageResponse: + r"""Returns a list of monthly active users for a given + TensorBoard instance. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + async def sample_read_tensorboard_usage(): + # Create a client + client = aiplatform_v1beta1.TensorboardServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ReadTensorboardUsageRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = await client.read_tensorboard_usage(request=request) + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageRequest, dict]]): + The request object. Request message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. + tensorboard (:class:`str`): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + + This corresponds to the ``tensorboard`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse: + Response message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([tensorboard]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = tensorboard_service.ReadTensorboardUsageRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if tensorboard is not None: + request.tensorboard = tensorboard + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.read_tensorboard_usage, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + (("tensorboard", request.tensorboard),) + ), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + async def read_tensorboard_size( + self, + request: Optional[ + Union[tensorboard_service.ReadTensorboardSizeRequest, dict] + ] = None, + *, + tensorboard: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> tensorboard_service.ReadTensorboardSizeResponse: + r"""Returns the storage size for a given TensorBoard + instance. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + async def sample_read_tensorboard_size(): + # Create a client + client = aiplatform_v1beta1.TensorboardServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ReadTensorboardSizeRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = await client.read_tensorboard_size(request=request) + + # Handle the response + print(response) + + Args: + request (Optional[Union[google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeRequest, dict]]): + The request object. Request message for + [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize]. + tensorboard (:class:`str`): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + + This corresponds to the ``tensorboard`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeResponse: + Response message for + [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize]. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([tensorboard]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + request = tensorboard_service.ReadTensorboardSizeRequest(request) + + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if tensorboard is not None: + request.tensorboard = tensorboard + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = gapic_v1.method_async.wrap_method( + self._client._transport.read_tensorboard_size, + default_timeout=None, + client_info=DEFAULT_CLIENT_INFO, + ) + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + (("tensorboard", request.tensorboard),) + ), + ) + + # Send the request. + response = await rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + async def create_tensorboard_experiment( self, request: Optional[ @@ -4487,7 +4594,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "TensorboardServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/client.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/client.py index db0403eb0a..5552bace26 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -786,113 +786,6 @@ def sample_get_tensorboard(): # Done; return the response. return response - def read_tensorboard_usage( - self, - request: Optional[ - Union[tensorboard_service.ReadTensorboardUsageRequest, dict] - ] = None, - *, - tensorboard: Optional[str] = None, - retry: OptionalRetry = gapic_v1.method.DEFAULT, - timeout: Union[float, object] = gapic_v1.method.DEFAULT, - metadata: Sequence[Tuple[str, str]] = (), - ) -> tensorboard_service.ReadTensorboardUsageResponse: - r"""Returns a list of monthly active users for a given - TensorBoard instance. - - .. code-block:: python - - # 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 aiplatform_v1beta1 - - def sample_read_tensorboard_usage(): - # Create a client - client = aiplatform_v1beta1.TensorboardServiceClient() - - # Initialize request argument(s) - request = aiplatform_v1beta1.ReadTensorboardUsageRequest( - tensorboard="tensorboard_value", - ) - - # Make the request - response = client.read_tensorboard_usage(request=request) - - # Handle the response - print(response) - - Args: - request (Union[google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageRequest, dict]): - The request object. Request message for - [TensorboardService.GetTensorboardUsage][]. - tensorboard (str): - Required. The name of the Tensorboard resource. Format: - ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` - - This corresponds to the ``tensorboard`` field - on the ``request`` instance; if ``request`` is provided, this - should not be set. - retry (google.api_core.retry.Retry): Designation of what errors, if any, - should be retried. - timeout (float): The timeout for this request. - metadata (Sequence[Tuple[str, str]]): Strings which should be - sent along with the request as metadata. - - Returns: - google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse: - Response message for - [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. - - """ - # Create or coerce a protobuf request object. - # Quick check: If we got a request object, we should *not* have - # gotten any keyword arguments that map to the request. - has_flattened_params = any([tensorboard]) - if request is not None and has_flattened_params: - raise ValueError( - "If the `request` argument is set, then none of " - "the individual field arguments should be set." - ) - - # Minor optimization to avoid making a copy if the user passes - # in a tensorboard_service.ReadTensorboardUsageRequest. - # There's no risk of modifying the input as we've already verified - # there are no flattened fields. - if not isinstance(request, tensorboard_service.ReadTensorboardUsageRequest): - request = tensorboard_service.ReadTensorboardUsageRequest(request) - # If we have keyword arguments corresponding to fields on the - # request, apply these. - if tensorboard is not None: - request.tensorboard = tensorboard - - # Wrap the RPC method; this adds retry and timeout information, - # and friendly error handling. - rpc = self._transport._wrapped_methods[self._transport.read_tensorboard_usage] - - # Certain fields should be provided within the metadata header; - # add these here. - metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata( - (("tensorboard", request.tensorboard),) - ), - ) - - # Send the request. - response = rpc( - request, - retry=retry, - timeout=timeout, - metadata=metadata, - ) - - # Done; return the response. - return response - def update_tensorboard( self, request: Optional[ @@ -1279,6 +1172,220 @@ def sample_delete_tensorboard(): # Done; return the response. return response + def read_tensorboard_usage( + self, + request: Optional[ + Union[tensorboard_service.ReadTensorboardUsageRequest, dict] + ] = None, + *, + tensorboard: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> tensorboard_service.ReadTensorboardUsageResponse: + r"""Returns a list of monthly active users for a given + TensorBoard instance. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + def sample_read_tensorboard_usage(): + # Create a client + client = aiplatform_v1beta1.TensorboardServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ReadTensorboardUsageRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = client.read_tensorboard_usage(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageRequest, dict]): + The request object. Request message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. + tensorboard (str): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + + This corresponds to the ``tensorboard`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse: + Response message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([tensorboard]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a tensorboard_service.ReadTensorboardUsageRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, tensorboard_service.ReadTensorboardUsageRequest): + request = tensorboard_service.ReadTensorboardUsageRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if tensorboard is not None: + request.tensorboard = tensorboard + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.read_tensorboard_usage] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + (("tensorboard", request.tensorboard),) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + + def read_tensorboard_size( + self, + request: Optional[ + Union[tensorboard_service.ReadTensorboardSizeRequest, dict] + ] = None, + *, + tensorboard: Optional[str] = None, + retry: OptionalRetry = gapic_v1.method.DEFAULT, + timeout: Union[float, object] = gapic_v1.method.DEFAULT, + metadata: Sequence[Tuple[str, str]] = (), + ) -> tensorboard_service.ReadTensorboardSizeResponse: + r"""Returns the storage size for a given TensorBoard + instance. + + .. code-block:: python + + # 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 aiplatform_v1beta1 + + def sample_read_tensorboard_size(): + # Create a client + client = aiplatform_v1beta1.TensorboardServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ReadTensorboardSizeRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = client.read_tensorboard_size(request=request) + + # Handle the response + print(response) + + Args: + request (Union[google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeRequest, dict]): + The request object. Request message for + [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize]. + tensorboard (str): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + + This corresponds to the ``tensorboard`` field + on the ``request`` instance; if ``request`` is provided, this + should not be set. + retry (google.api_core.retry.Retry): Designation of what errors, if any, + should be retried. + timeout (float): The timeout for this request. + metadata (Sequence[Tuple[str, str]]): Strings which should be + sent along with the request as metadata. + + Returns: + google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeResponse: + Response message for + [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize]. + + """ + # Create or coerce a protobuf request object. + # Quick check: If we got a request object, we should *not* have + # gotten any keyword arguments that map to the request. + has_flattened_params = any([tensorboard]) + if request is not None and has_flattened_params: + raise ValueError( + "If the `request` argument is set, then none of " + "the individual field arguments should be set." + ) + + # Minor optimization to avoid making a copy if the user passes + # in a tensorboard_service.ReadTensorboardSizeRequest. + # There's no risk of modifying the input as we've already verified + # there are no flattened fields. + if not isinstance(request, tensorboard_service.ReadTensorboardSizeRequest): + request = tensorboard_service.ReadTensorboardSizeRequest(request) + # If we have keyword arguments corresponding to fields on the + # request, apply these. + if tensorboard is not None: + request.tensorboard = tensorboard + + # Wrap the RPC method; this adds retry and timeout information, + # and friendly error handling. + rpc = self._transport._wrapped_methods[self._transport.read_tensorboard_size] + + # Certain fields should be provided within the metadata header; + # add these here. + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata( + (("tensorboard", request.tensorboard),) + ), + ) + + # Send the request. + response = rpc( + request, + retry=retry, + timeout=timeout, + metadata=metadata, + ) + + # Done; return the response. + return response + def create_tensorboard_experiment( self, request: Optional[ diff --git a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/pagers.py index 3cae76e446..807f8d0dcf 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/__init__.py index 645295a44f..f9943c851c 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/base.py index 4b5167d515..0ff5d6fdca 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -150,11 +150,6 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), - self.read_tensorboard_usage: gapic_v1.method.wrap_method( - self.read_tensorboard_usage, - default_timeout=None, - client_info=client_info, - ), self.update_tensorboard: gapic_v1.method.wrap_method( self.update_tensorboard, default_timeout=None, @@ -170,6 +165,16 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), + self.read_tensorboard_usage: gapic_v1.method.wrap_method( + self.read_tensorboard_usage, + default_timeout=None, + client_info=client_info, + ), + self.read_tensorboard_size: gapic_v1.method.wrap_method( + self.read_tensorboard_size, + default_timeout=None, + client_info=client_info, + ), self.create_tensorboard_experiment: gapic_v1.method.wrap_method( self.create_tensorboard_experiment, default_timeout=None, @@ -319,18 +324,6 @@ def get_tensorboard( ]: raise NotImplementedError() - @property - def read_tensorboard_usage( - self, - ) -> Callable[ - [tensorboard_service.ReadTensorboardUsageRequest], - Union[ - tensorboard_service.ReadTensorboardUsageResponse, - Awaitable[tensorboard_service.ReadTensorboardUsageResponse], - ], - ]: - raise NotImplementedError() - @property def update_tensorboard( self, @@ -361,6 +354,30 @@ def delete_tensorboard( ]: raise NotImplementedError() + @property + def read_tensorboard_usage( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardUsageRequest], + Union[ + tensorboard_service.ReadTensorboardUsageResponse, + Awaitable[tensorboard_service.ReadTensorboardUsageResponse], + ], + ]: + raise NotImplementedError() + + @property + def read_tensorboard_size( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardSizeRequest], + Union[ + tensorboard_service.ReadTensorboardSizeResponse, + Awaitable[tensorboard_service.ReadTensorboardSizeResponse], + ], + ]: + raise NotImplementedError() + @property def create_tensorboard_experiment( self, diff --git a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc.py index 18bf7bc42f..f3804b75af 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -315,36 +315,6 @@ def get_tensorboard( ) return self._stubs["get_tensorboard"] - @property - def read_tensorboard_usage( - self, - ) -> Callable[ - [tensorboard_service.ReadTensorboardUsageRequest], - tensorboard_service.ReadTensorboardUsageResponse, - ]: - r"""Return a callable for the read tensorboard usage method over gRPC. - - Returns a list of monthly active users for a given - TensorBoard instance. - - Returns: - Callable[[~.ReadTensorboardUsageRequest], - ~.ReadTensorboardUsageResponse]: - A function that, when called, will call the underlying RPC - on the server. - """ - # Generate a "stub function" on-the-fly which will actually make - # the request. - # gRPC handles serialization and deserialization, so we just need - # to pass in the functions for each. - if "read_tensorboard_usage" not in self._stubs: - self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( - "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardUsage", - request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, - response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, - ) - return self._stubs["read_tensorboard_usage"] - @property def update_tensorboard( self, @@ -430,6 +400,66 @@ def delete_tensorboard( ) return self._stubs["delete_tensorboard"] + @property + def read_tensorboard_usage( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardUsageRequest], + tensorboard_service.ReadTensorboardUsageResponse, + ]: + r"""Return a callable for the read tensorboard usage method over gRPC. + + Returns a list of monthly active users for a given + TensorBoard instance. + + Returns: + Callable[[~.ReadTensorboardUsageRequest], + ~.ReadTensorboardUsageResponse]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "read_tensorboard_usage" not in self._stubs: + self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardUsage", + request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, + response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, + ) + return self._stubs["read_tensorboard_usage"] + + @property + def read_tensorboard_size( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardSizeRequest], + tensorboard_service.ReadTensorboardSizeResponse, + ]: + r"""Return a callable for the read tensorboard size method over gRPC. + + Returns the storage size for a given TensorBoard + instance. + + Returns: + Callable[[~.ReadTensorboardSizeRequest], + ~.ReadTensorboardSizeResponse]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "read_tensorboard_size" not in self._stubs: + self._stubs["read_tensorboard_size"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardSize", + request_serializer=tensorboard_service.ReadTensorboardSizeRequest.serialize, + response_deserializer=tensorboard_service.ReadTensorboardSizeResponse.deserialize, + ) + return self._stubs["read_tensorboard_size"] + @property def create_tensorboard_experiment( self, diff --git a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc_asyncio.py index 0680c72e5f..a6a266df6d 100644 --- a/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -323,36 +323,6 @@ def get_tensorboard( ) return self._stubs["get_tensorboard"] - @property - def read_tensorboard_usage( - self, - ) -> Callable[ - [tensorboard_service.ReadTensorboardUsageRequest], - Awaitable[tensorboard_service.ReadTensorboardUsageResponse], - ]: - r"""Return a callable for the read tensorboard usage method over gRPC. - - Returns a list of monthly active users for a given - TensorBoard instance. - - Returns: - Callable[[~.ReadTensorboardUsageRequest], - Awaitable[~.ReadTensorboardUsageResponse]]: - A function that, when called, will call the underlying RPC - on the server. - """ - # Generate a "stub function" on-the-fly which will actually make - # the request. - # gRPC handles serialization and deserialization, so we just need - # to pass in the functions for each. - if "read_tensorboard_usage" not in self._stubs: - self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( - "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardUsage", - request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, - response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, - ) - return self._stubs["read_tensorboard_usage"] - @property def update_tensorboard( self, @@ -440,6 +410,66 @@ def delete_tensorboard( ) return self._stubs["delete_tensorboard"] + @property + def read_tensorboard_usage( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardUsageRequest], + Awaitable[tensorboard_service.ReadTensorboardUsageResponse], + ]: + r"""Return a callable for the read tensorboard usage method over gRPC. + + Returns a list of monthly active users for a given + TensorBoard instance. + + Returns: + Callable[[~.ReadTensorboardUsageRequest], + Awaitable[~.ReadTensorboardUsageResponse]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "read_tensorboard_usage" not in self._stubs: + self._stubs["read_tensorboard_usage"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardUsage", + request_serializer=tensorboard_service.ReadTensorboardUsageRequest.serialize, + response_deserializer=tensorboard_service.ReadTensorboardUsageResponse.deserialize, + ) + return self._stubs["read_tensorboard_usage"] + + @property + def read_tensorboard_size( + self, + ) -> Callable[ + [tensorboard_service.ReadTensorboardSizeRequest], + Awaitable[tensorboard_service.ReadTensorboardSizeResponse], + ]: + r"""Return a callable for the read tensorboard size method over gRPC. + + Returns the storage size for a given TensorBoard + instance. + + Returns: + Callable[[~.ReadTensorboardSizeRequest], + Awaitable[~.ReadTensorboardSizeResponse]]: + A function that, when called, will call the underlying RPC + on the server. + """ + # Generate a "stub function" on-the-fly which will actually make + # the request. + # gRPC handles serialization and deserialization, so we just need + # to pass in the functions for each. + if "read_tensorboard_size" not in self._stubs: + self._stubs["read_tensorboard_size"] = self.grpc_channel.unary_unary( + "/google.cloud.aiplatform.v1beta1.TensorboardService/ReadTensorboardSize", + request_serializer=tensorboard_service.ReadTensorboardSizeRequest.serialize, + response_deserializer=tensorboard_service.ReadTensorboardSizeResponse.deserialize, + ) + return self._stubs["read_tensorboard_size"] + @property def create_tensorboard_experiment( self, diff --git a/google/cloud/aiplatform_v1beta1/services/vizier_service/__init__.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/__init__.py index b91bd3c525..dcc57105f8 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/vizier_service/async_client.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/async_client.py index 18ce501eb3..f1dd649fc5 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/async_client.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/async_client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -2433,7 +2433,7 @@ async def list_locations( # Done; return the response. return response - async def __aenter__(self): + async def __aenter__(self) -> "VizierServiceAsyncClient": return self async def __aexit__(self, exc_type, exc, tb): diff --git a/google/cloud/aiplatform_v1beta1/services/vizier_service/client.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/client.py index 92e1cc2b6d..4bba0eaf2d 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/client.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/client.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/vizier_service/pagers.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/pagers.py index 4261312e22..9d6ad90e7d 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/pagers.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/pagers.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/__init__.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/__init__.py index a4efbdf8d6..43baa1a728 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/__init__.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/base.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/base.py index 5b285cf34a..6bbd50093f 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/base.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/base.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc.py index 1980e458b6..b42a524b7f 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc_asyncio.py b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc_asyncio.py index c943f59b54..53148bd314 100644 --- a/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc_asyncio.py +++ b/google/cloud/aiplatform_v1beta1/services/vizier_service/transports/grpc_asyncio.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/__init__.py b/google/cloud/aiplatform_v1beta1/types/__init__.py index a96b883de6..f464f1e2bc 100644 --- a/google/cloud/aiplatform_v1beta1/types/__init__.py +++ b/google/cloud/aiplatform_v1beta1/types/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,6 +59,7 @@ CreateDatasetRequest, DataItemView, DeleteDatasetRequest, + DeleteSavedQueryRequest, ExportDataOperationMetadata, ExportDataRequest, ExportDataResponse, @@ -509,6 +510,20 @@ DeleteOperationMetadata, GenericOperationMetadata, ) +from .persistent_resource import ( + PersistentResource, + ResourcePool, + ResourceRuntimeSpec, + ServiceAccountSpec, +) +from .persistent_resource_service import ( + CreatePersistentResourceOperationMetadata, + CreatePersistentResourceRequest, + DeletePersistentResourceRequest, + GetPersistentResourceRequest, + ListPersistentResourcesRequest, + ListPersistentResourcesResponse, +) from .pipeline_job import ( PipelineJob, PipelineJobDetail, @@ -627,6 +642,8 @@ ListTensorboardTimeSeriesResponse, ReadTensorboardBlobDataRequest, ReadTensorboardBlobDataResponse, + ReadTensorboardSizeRequest, + ReadTensorboardSizeResponse, ReadTensorboardTimeSeriesDataRequest, ReadTensorboardTimeSeriesDataResponse, ReadTensorboardUsageRequest, @@ -720,6 +737,7 @@ "CreateDatasetRequest", "DataItemView", "DeleteDatasetRequest", + "DeleteSavedQueryRequest", "ExportDataOperationMetadata", "ExportDataRequest", "ExportDataResponse", @@ -1078,6 +1096,16 @@ "NasTrialDetail", "DeleteOperationMetadata", "GenericOperationMetadata", + "PersistentResource", + "ResourcePool", + "ResourceRuntimeSpec", + "ServiceAccountSpec", + "CreatePersistentResourceOperationMetadata", + "CreatePersistentResourceRequest", + "DeletePersistentResourceRequest", + "GetPersistentResourceRequest", + "ListPersistentResourcesRequest", + "ListPersistentResourcesResponse", "PipelineFailurePolicy", "PipelineJob", "PipelineJobDetail", @@ -1167,6 +1195,8 @@ "ListTensorboardTimeSeriesResponse", "ReadTensorboardBlobDataRequest", "ReadTensorboardBlobDataResponse", + "ReadTensorboardSizeRequest", + "ReadTensorboardSizeResponse", "ReadTensorboardTimeSeriesDataRequest", "ReadTensorboardTimeSeriesDataResponse", "ReadTensorboardUsageRequest", diff --git a/google/cloud/aiplatform_v1beta1/types/accelerator_type.py b/google/cloud/aiplatform_v1beta1/types/accelerator_type.py index 38453222e6..9abc3bc1da 100644 --- a/google/cloud/aiplatform_v1beta1/types/accelerator_type.py +++ b/google/cloud/aiplatform_v1beta1/types/accelerator_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/annotation.py b/google/cloud/aiplatform_v1beta1/types/annotation.py index cec1875b7a..b420707a55 100644 --- a/google/cloud/aiplatform_v1beta1/types/annotation.py +++ b/google/cloud/aiplatform_v1beta1/types/annotation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/annotation_spec.py b/google/cloud/aiplatform_v1beta1/types/annotation_spec.py index bf128dfe6b..bd895022c8 100644 --- a/google/cloud/aiplatform_v1beta1/types/annotation_spec.py +++ b/google/cloud/aiplatform_v1beta1/types/annotation_spec.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/artifact.py b/google/cloud/aiplatform_v1beta1/types/artifact.py index 03554fe61a..cad85a640b 100644 --- a/google/cloud/aiplatform_v1beta1/types/artifact.py +++ b/google/cloud/aiplatform_v1beta1/types/artifact.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/batch_prediction_job.py b/google/cloud/aiplatform_v1beta1/types/batch_prediction_job.py index 5d357138b3..3eff829abd 100644 --- a/google/cloud/aiplatform_v1beta1/types/batch_prediction_job.py +++ b/google/cloud/aiplatform_v1beta1/types/batch_prediction_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -78,6 +78,10 @@ class BatchPredictionJob(proto.Message): ``projects/{project}/locations/{location}/models/{model}@golden`` if no version is specified, the default version will be deployed. + + The model resource could also be a publisher model. Example: + ``publishers/{publisher}/models/{model}`` or + ``projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`` model_version_id (str): Output only. The version ID of the Model that produces the predictions via this job. diff --git a/google/cloud/aiplatform_v1beta1/types/completion_stats.py b/google/cloud/aiplatform_v1beta1/types/completion_stats.py index 9425bbd85b..e2fc8bb1e2 100644 --- a/google/cloud/aiplatform_v1beta1/types/completion_stats.py +++ b/google/cloud/aiplatform_v1beta1/types/completion_stats.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/context.py b/google/cloud/aiplatform_v1beta1/types/context.py index 1e173cb281..a73cfa7bf3 100644 --- a/google/cloud/aiplatform_v1beta1/types/context.py +++ b/google/cloud/aiplatform_v1beta1/types/context.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/custom_job.py b/google/cloud/aiplatform_v1beta1/types/custom_job.py index ca2f379cdb..1e9a95c51c 100644 --- a/google/cloud/aiplatform_v1beta1/types/custom_job.py +++ b/google/cloud/aiplatform_v1beta1/types/custom_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -171,6 +171,16 @@ class CustomJobSpec(proto.Message): r"""Represents the spec of a CustomJob. Attributes: + persistent_resource_id (str): + Optional. The ID of the PersistentResource in + the same Project and Location which to run + + If this is specified, the job will be run on + existing machines held by the PersistentResource + instead of on-demand short-live machines. The + network and CMEK configs on the job should be + consistent with those on the PersistentResource, + otherwise, the job will be rejected. worker_pool_specs (MutableSequence[google.cloud.aiplatform_v1beta1.types.WorkerPoolSpec]): Required. The spec of the worker pools including machine type and Docker image. All @@ -277,6 +287,10 @@ class CustomJobSpec(proto.Message): ``projects/{project}/locations/{location}/metadataStores/{metadataStores}/contexts/{experiment-name}-{experiment-run-name}`` """ + persistent_resource_id: str = proto.Field( + proto.STRING, + number=14, + ) worker_pool_specs: MutableSequence["WorkerPoolSpec"] = proto.RepeatedField( proto.MESSAGE, number=1, diff --git a/google/cloud/aiplatform_v1beta1/types/data_item.py b/google/cloud/aiplatform_v1beta1/types/data_item.py index 24c2aa1ddf..f3d01b558a 100644 --- a/google/cloud/aiplatform_v1beta1/types/data_item.py +++ b/google/cloud/aiplatform_v1beta1/types/data_item.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/data_labeling_job.py b/google/cloud/aiplatform_v1beta1/types/data_labeling_job.py index 3a03a3878e..ffc880392d 100644 --- a/google/cloud/aiplatform_v1beta1/types/data_labeling_job.py +++ b/google/cloud/aiplatform_v1beta1/types/data_labeling_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/dataset.py b/google/cloud/aiplatform_v1beta1/types/dataset.py index bcc68d0f38..16837b1106 100644 --- a/google/cloud/aiplatform_v1beta1/types/dataset.py +++ b/google/cloud/aiplatform_v1beta1/types/dataset.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -60,6 +60,9 @@ class Dataset(proto.Message): metadata (google.protobuf.struct_pb2.Value): Required. Additional information about the Dataset. + data_item_count (int): + Output only. The number of DataItems in this + Dataset. Only apply for non-structured Dataset. create_time (google.protobuf.timestamp_pb2.Timestamp): Output only. Timestamp when this Dataset was created. @@ -131,6 +134,10 @@ class Dataset(proto.Message): number=8, message=struct_pb2.Value, ) + data_item_count: int = proto.Field( + proto.INT64, + number=10, + ) create_time: timestamp_pb2.Timestamp = proto.Field( proto.MESSAGE, number=4, diff --git a/google/cloud/aiplatform_v1beta1/types/dataset_service.py b/google/cloud/aiplatform_v1beta1/types/dataset_service.py index 2a9de16ace..8e20c90529 100644 --- a/google/cloud/aiplatform_v1beta1/types/dataset_service.py +++ b/google/cloud/aiplatform_v1beta1/types/dataset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -50,6 +50,7 @@ "DataItemView", "ListSavedQueriesRequest", "ListSavedQueriesResponse", + "DeleteSavedQueryRequest", "GetAnnotationSpecRequest", "ListAnnotationsRequest", "ListAnnotationsResponse", @@ -766,6 +767,23 @@ def raw_page(self): ) +class DeleteSavedQueryRequest(proto.Message): + r"""Request message for + [DatasetService.DeleteSavedQuery][google.cloud.aiplatform.v1beta1.DatasetService.DeleteSavedQuery]. + + Attributes: + name (str): + Required. The resource name of the SavedQuery to delete. + Format: + ``projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`` + """ + + name: str = proto.Field( + proto.STRING, + number=1, + ) + + class GetAnnotationSpecRequest(proto.Message): r"""Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpec]. diff --git a/google/cloud/aiplatform_v1beta1/types/deployed_index_ref.py b/google/cloud/aiplatform_v1beta1/types/deployed_index_ref.py index be614742af..2cb6219271 100644 --- a/google/cloud/aiplatform_v1beta1/types/deployed_index_ref.py +++ b/google/cloud/aiplatform_v1beta1/types/deployed_index_ref.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/deployed_model_ref.py b/google/cloud/aiplatform_v1beta1/types/deployed_model_ref.py index b70162b92d..8a75f9e071 100644 --- a/google/cloud/aiplatform_v1beta1/types/deployed_model_ref.py +++ b/google/cloud/aiplatform_v1beta1/types/deployed_model_ref.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool.py b/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool.py index b54abb28f8..1d4201478b 100644 --- a/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool.py +++ b/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool_service.py b/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool_service.py index e79e689944..def83d96a5 100644 --- a/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool_service.py +++ b/google/cloud/aiplatform_v1beta1/types/deployment_resource_pool_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/encryption_spec.py b/google/cloud/aiplatform_v1beta1/types/encryption_spec.py index 347b1bdfaf..1a7c7a0adf 100644 --- a/google/cloud/aiplatform_v1beta1/types/encryption_spec.py +++ b/google/cloud/aiplatform_v1beta1/types/encryption_spec.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/endpoint.py b/google/cloud/aiplatform_v1beta1/types/endpoint.py index 8270ad8b09..9a8f5bc79d 100644 --- a/google/cloud/aiplatform_v1beta1/types/endpoint.py +++ b/google/cloud/aiplatform_v1beta1/types/endpoint.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/endpoint_service.py b/google/cloud/aiplatform_v1beta1/types/endpoint_service.py index f38c53764a..a45219ed86 100644 --- a/google/cloud/aiplatform_v1beta1/types/endpoint_service.py +++ b/google/cloud/aiplatform_v1beta1/types/endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/entity_type.py b/google/cloud/aiplatform_v1beta1/types/entity_type.py index d06cac673b..12a34f6c1e 100644 --- a/google/cloud/aiplatform_v1beta1/types/entity_type.py +++ b/google/cloud/aiplatform_v1beta1/types/entity_type.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/env_var.py b/google/cloud/aiplatform_v1beta1/types/env_var.py index e531a5d658..bb420513e5 100644 --- a/google/cloud/aiplatform_v1beta1/types/env_var.py +++ b/google/cloud/aiplatform_v1beta1/types/env_var.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/evaluated_annotation.py b/google/cloud/aiplatform_v1beta1/types/evaluated_annotation.py index 5961e27165..f0ab1606f2 100644 --- a/google/cloud/aiplatform_v1beta1/types/evaluated_annotation.py +++ b/google/cloud/aiplatform_v1beta1/types/evaluated_annotation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/event.py b/google/cloud/aiplatform_v1beta1/types/event.py index d4ab727b75..15d5f3c35a 100644 --- a/google/cloud/aiplatform_v1beta1/types/event.py +++ b/google/cloud/aiplatform_v1beta1/types/event.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/execution.py b/google/cloud/aiplatform_v1beta1/types/execution.py index 6b2d53da36..ba7d6f6144 100644 --- a/google/cloud/aiplatform_v1beta1/types/execution.py +++ b/google/cloud/aiplatform_v1beta1/types/execution.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/explanation.py b/google/cloud/aiplatform_v1beta1/types/explanation.py index acb0a5bf88..89c796ba37 100644 --- a/google/cloud/aiplatform_v1beta1/types/explanation.py +++ b/google/cloud/aiplatform_v1beta1/types/explanation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/explanation_metadata.py b/google/cloud/aiplatform_v1beta1/types/explanation_metadata.py index b253225876..a575068f81 100644 --- a/google/cloud/aiplatform_v1beta1/types/explanation_metadata.py +++ b/google/cloud/aiplatform_v1beta1/types/explanation_metadata.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -117,7 +117,8 @@ class InputMetadata(proto.Message): input tensor. Defaults to IDENTITY. modality (str): Modality of the feature. Valid values are: - numeric, image. Defaults to numeric. + numeric, image. Defaults to + numeric. feature_value_domain (google.cloud.aiplatform_v1beta1.types.ExplanationMetadata.InputMetadata.FeatureValueDomain): The domain details of the input feature value. Like min/max, original mean or standard @@ -381,10 +382,10 @@ class ColorMap(proto.Enum): Positive: green. Negative: pink. VIRIDIS (2): Viridis color map: A perceptually uniform - color mapping which is easier to see by those - with colorblindness and progresses from yellow - to green to blue. Positive: yellow. Negative: - blue. + color mapping which is + easier to see by those with colorblindness and + progresses from yellow to green to blue. + Positive: yellow. Negative: blue. RED (3): Positive: red. Negative: red. GREEN (4): diff --git a/google/cloud/aiplatform_v1beta1/types/feature.py b/google/cloud/aiplatform_v1beta1/types/feature.py index af0cf11183..47b3f72c5f 100644 --- a/google/cloud/aiplatform_v1beta1/types/feature.py +++ b/google/cloud/aiplatform_v1beta1/types/feature.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/feature_monitoring_stats.py b/google/cloud/aiplatform_v1beta1/types/feature_monitoring_stats.py index 79a9b014c4..652b9c27a8 100644 --- a/google/cloud/aiplatform_v1beta1/types/feature_monitoring_stats.py +++ b/google/cloud/aiplatform_v1beta1/types/feature_monitoring_stats.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/feature_selector.py b/google/cloud/aiplatform_v1beta1/types/feature_selector.py index c822d827f5..5801a1c8bc 100644 --- a/google/cloud/aiplatform_v1beta1/types/feature_selector.py +++ b/google/cloud/aiplatform_v1beta1/types/feature_selector.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/featurestore.py b/google/cloud/aiplatform_v1beta1/types/featurestore.py index ac1bd67cf6..3d0a8d3bac 100644 --- a/google/cloud/aiplatform_v1beta1/types/featurestore.py +++ b/google/cloud/aiplatform_v1beta1/types/featurestore.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/featurestore_monitoring.py b/google/cloud/aiplatform_v1beta1/types/featurestore_monitoring.py index d0f9ff85f0..dac0808c79 100644 --- a/google/cloud/aiplatform_v1beta1/types/featurestore_monitoring.py +++ b/google/cloud/aiplatform_v1beta1/types/featurestore_monitoring.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/featurestore_online_service.py b/google/cloud/aiplatform_v1beta1/types/featurestore_online_service.py index ed3531742b..2b949c1147 100644 --- a/google/cloud/aiplatform_v1beta1/types/featurestore_online_service.py +++ b/google/cloud/aiplatform_v1beta1/types/featurestore_online_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/featurestore_service.py b/google/cloud/aiplatform_v1beta1/types/featurestore_service.py index af3b18c95c..49b6a5a0f1 100644 --- a/google/cloud/aiplatform_v1beta1/types/featurestore_service.py +++ b/google/cloud/aiplatform_v1beta1/types/featurestore_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -89,7 +89,7 @@ class CreateFeaturestoreRequest(proto.Message): parent (str): Required. The resource name of the Location to create Featurestores. Format: - ``projects/{project}/locations/{location}'`` + ``projects/{project}/locations/{location}`` featurestore (google.cloud.aiplatform_v1beta1.types.Featurestore): Required. The Featurestore to create. featurestore_id (str): diff --git a/google/cloud/aiplatform_v1beta1/types/hyperparameter_tuning_job.py b/google/cloud/aiplatform_v1beta1/types/hyperparameter_tuning_job.py index b175a504a2..7b88a306b4 100644 --- a/google/cloud/aiplatform_v1beta1/types/hyperparameter_tuning_job.py +++ b/google/cloud/aiplatform_v1beta1/types/hyperparameter_tuning_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/index.py b/google/cloud/aiplatform_v1beta1/types/index.py index 1225b9f659..e4bf685cbc 100644 --- a/google/cloud/aiplatform_v1beta1/types/index.py +++ b/google/cloud/aiplatform_v1beta1/types/index.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -111,11 +111,12 @@ class IndexUpdateMethod(proto.Enum): Should not be used. BATCH_UPDATE (1): BatchUpdate: user can call UpdateIndex with - files on Cloud Storage of datapoints to update. + files on Cloud Storage of + datapoints to update. STREAM_UPDATE (2): StreamUpdate: user can call - UpsertDatapoints/DeleteDatapoints to update the - Index and the updates will be applied in + UpsertDatapoints/DeleteDatapoints to update + the Index and the updates will be applied in corresponding DeployedIndexes in nearly real-time. """ diff --git a/google/cloud/aiplatform_v1beta1/types/index_endpoint.py b/google/cloud/aiplatform_v1beta1/types/index_endpoint.py index cabc5bbc94..014f71705d 100644 --- a/google/cloud/aiplatform_v1beta1/types/index_endpoint.py +++ b/google/cloud/aiplatform_v1beta1/types/index_endpoint.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/index_endpoint_service.py b/google/cloud/aiplatform_v1beta1/types/index_endpoint_service.py index 44188a179d..041e4145a8 100644 --- a/google/cloud/aiplatform_v1beta1/types/index_endpoint_service.py +++ b/google/cloud/aiplatform_v1beta1/types/index_endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/index_service.py b/google/cloud/aiplatform_v1beta1/types/index_service.py index e7590f8fca..a4c3aa695f 100644 --- a/google/cloud/aiplatform_v1beta1/types/index_service.py +++ b/google/cloud/aiplatform_v1beta1/types/index_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/io.py b/google/cloud/aiplatform_v1beta1/types/io.py index 599d44d3a8..ad618afb59 100644 --- a/google/cloud/aiplatform_v1beta1/types/io.py +++ b/google/cloud/aiplatform_v1beta1/types/io.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/job_service.py b/google/cloud/aiplatform_v1beta1/types/job_service.py index 141eb49c0a..3f4046604e 100644 --- a/google/cloud/aiplatform_v1beta1/types/job_service.py +++ b/google/cloud/aiplatform_v1beta1/types/job_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/job_state.py b/google/cloud/aiplatform_v1beta1/types/job_state.py index 3eda389097..cb1047b371 100644 --- a/google/cloud/aiplatform_v1beta1/types/job_state.py +++ b/google/cloud/aiplatform_v1beta1/types/job_state.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -59,6 +59,9 @@ class JobState(proto.Enum): The job is being updated. Only jobs in the ``RUNNING`` state can be updated. After updating, the job goes back to the ``RUNNING`` state. + JOB_STATE_PARTIALLY_SUCCEEDED (11): + The job is partially succeeded, some results + may be missing due to errors. """ JOB_STATE_UNSPECIFIED = 0 JOB_STATE_QUEUED = 1 @@ -71,6 +74,7 @@ class JobState(proto.Enum): JOB_STATE_PAUSED = 8 JOB_STATE_EXPIRED = 9 JOB_STATE_UPDATING = 10 + JOB_STATE_PARTIALLY_SUCCEEDED = 11 __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/aiplatform_v1beta1/types/lineage_subgraph.py b/google/cloud/aiplatform_v1beta1/types/lineage_subgraph.py index 6a1a4cebd8..899dbc7295 100644 --- a/google/cloud/aiplatform_v1beta1/types/lineage_subgraph.py +++ b/google/cloud/aiplatform_v1beta1/types/lineage_subgraph.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/machine_resources.py b/google/cloud/aiplatform_v1beta1/types/machine_resources.py index 442f3d45ef..04f9d77452 100644 --- a/google/cloud/aiplatform_v1beta1/types/machine_resources.py +++ b/google/cloud/aiplatform_v1beta1/types/machine_resources.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/manual_batch_tuning_parameters.py b/google/cloud/aiplatform_v1beta1/types/manual_batch_tuning_parameters.py index 011915af84..da300ef324 100644 --- a/google/cloud/aiplatform_v1beta1/types/manual_batch_tuning_parameters.py +++ b/google/cloud/aiplatform_v1beta1/types/manual_batch_tuning_parameters.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/match_service.py b/google/cloud/aiplatform_v1beta1/types/match_service.py index 3e215dfd16..0a3c18ec45 100644 --- a/google/cloud/aiplatform_v1beta1/types/match_service.py +++ b/google/cloud/aiplatform_v1beta1/types/match_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/metadata_schema.py b/google/cloud/aiplatform_v1beta1/types/metadata_schema.py index 9e13f49b5d..a763765b9d 100644 --- a/google/cloud/aiplatform_v1beta1/types/metadata_schema.py +++ b/google/cloud/aiplatform_v1beta1/types/metadata_schema.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/metadata_service.py b/google/cloud/aiplatform_v1beta1/types/metadata_service.py index f161790596..e95be21507 100644 --- a/google/cloud/aiplatform_v1beta1/types/metadata_service.py +++ b/google/cloud/aiplatform_v1beta1/types/metadata_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/metadata_store.py b/google/cloud/aiplatform_v1beta1/types/metadata_store.py index 1923e2e1b9..08742e0fb0 100644 --- a/google/cloud/aiplatform_v1beta1/types/metadata_store.py +++ b/google/cloud/aiplatform_v1beta1/types/metadata_store.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/migratable_resource.py b/google/cloud/aiplatform_v1beta1/types/migratable_resource.py index d463facc79..a97e1262ce 100644 --- a/google/cloud/aiplatform_v1beta1/types/migratable_resource.py +++ b/google/cloud/aiplatform_v1beta1/types/migratable_resource.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/migration_service.py b/google/cloud/aiplatform_v1beta1/types/migration_service.py index 967183ec9f..c9af6c5c59 100644 --- a/google/cloud/aiplatform_v1beta1/types/migration_service.py +++ b/google/cloud/aiplatform_v1beta1/types/migration_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/model.py b/google/cloud/aiplatform_v1beta1/types/model.py index 4c5aae018b..5472f48e1a 100644 --- a/google/cloud/aiplatform_v1beta1/types/model.py +++ b/google/cloud/aiplatform_v1beta1/types/model.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/model_deployment_monitoring_job.py b/google/cloud/aiplatform_v1beta1/types/model_deployment_monitoring_job.py index 104f9cfed8..7ef0ffc263 100644 --- a/google/cloud/aiplatform_v1beta1/types/model_deployment_monitoring_job.py +++ b/google/cloud/aiplatform_v1beta1/types/model_deployment_monitoring_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/model_evaluation.py b/google/cloud/aiplatform_v1beta1/types/model_evaluation.py index 1de0699a3c..5b447fd595 100644 --- a/google/cloud/aiplatform_v1beta1/types/model_evaluation.py +++ b/google/cloud/aiplatform_v1beta1/types/model_evaluation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -121,7 +121,7 @@ class BiasConfig(proto.Message): The first slice of data will be the slice_a. The second slice in the list (slice_b) will be compared against the first slice. If only a single slice is provided, then - slice_a will be compared against “not slice_a”. Below are + slice_a will be compared against "not slice_a". Below are examples with feature "education" with value "low", "medium", "high" in the dataset: diff --git a/google/cloud/aiplatform_v1beta1/types/model_evaluation_slice.py b/google/cloud/aiplatform_v1beta1/types/model_evaluation_slice.py index 3e1ba895dc..f8ec23c910 100644 --- a/google/cloud/aiplatform_v1beta1/types/model_evaluation_slice.py +++ b/google/cloud/aiplatform_v1beta1/types/model_evaluation_slice.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/model_garden_service.py b/google/cloud/aiplatform_v1beta1/types/model_garden_service.py index 71419bf136..86b644a927 100644 --- a/google/cloud/aiplatform_v1beta1/types/model_garden_service.py +++ b/google/cloud/aiplatform_v1beta1/types/model_garden_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/model_monitoring.py b/google/cloud/aiplatform_v1beta1/types/model_monitoring.py index 336aa03739..323cfb1235 100644 --- a/google/cloud/aiplatform_v1beta1/types/model_monitoring.py +++ b/google/cloud/aiplatform_v1beta1/types/model_monitoring.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/model_service.py b/google/cloud/aiplatform_v1beta1/types/model_service.py index 948653bf7d..f7e1f717b8 100644 --- a/google/cloud/aiplatform_v1beta1/types/model_service.py +++ b/google/cloud/aiplatform_v1beta1/types/model_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/nas_job.py b/google/cloud/aiplatform_v1beta1/types/nas_job.py index 1669c8cede..0f4fb93c0d 100644 --- a/google/cloud/aiplatform_v1beta1/types/nas_job.py +++ b/google/cloud/aiplatform_v1beta1/types/nas_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -157,7 +157,7 @@ class NasJob(proto.Message): class NasTrialDetail(proto.Message): - r"""Represents a NasTrial details along with it's parameters. If + r"""Represents a NasTrial details along with its parameters. If there is a corresponding train NasTrial, the train NasTrial is also returned. diff --git a/google/cloud/aiplatform_v1beta1/types/operation.py b/google/cloud/aiplatform_v1beta1/types/operation.py index 442a2fa727..9eec1b536e 100644 --- a/google/cloud/aiplatform_v1beta1/types/operation.py +++ b/google/cloud/aiplatform_v1beta1/types/operation.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/persistent_resource.py b/google/cloud/aiplatform_v1beta1/types/persistent_resource.py new file mode 100644 index 0000000000..a0b5c0e085 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/types/persistent_resource.py @@ -0,0 +1,368 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 annotations + +from typing import MutableMapping, MutableSequence + +import proto # type: ignore + +from google.cloud.aiplatform_v1beta1.types import encryption_spec as gca_encryption_spec +from google.cloud.aiplatform_v1beta1.types import machine_resources +from google.protobuf import timestamp_pb2 # type: ignore +from google.rpc import status_pb2 # type: ignore + + +__protobuf__ = proto.module( + package="google.cloud.aiplatform.v1beta1", + manifest={ + "PersistentResource", + "ResourcePool", + "ResourceRuntimeSpec", + "ServiceAccountSpec", + }, +) + + +class PersistentResource(proto.Message): + r"""Represents long-lasting resources that are dedicated to users + to runs custom workloads. + A PersistentResource can have multiple node pools and each node + pool can have its own machine spec. + + Attributes: + name (str): + Output only. Resource name of a + PersistentResource. + display_name (str): + Optional. The display name of the + PersistentResource. The name can be up to 128 + characters long and can consist of any UTF-8 + characters. + resource_pools (MutableSequence[google.cloud.aiplatform_v1beta1.types.ResourcePool]): + Required. The spec of the pools of different + resources. + state (google.cloud.aiplatform_v1beta1.types.PersistentResource.State): + Output only. The detailed state of a Study. + error (google.rpc.status_pb2.Status): + Output only. Only populated when persistent resource's state + is ``STOPPING`` or ``ERROR``. + create_time (google.protobuf.timestamp_pb2.Timestamp): + Output only. Time when the PersistentResource + was created. + start_time (google.protobuf.timestamp_pb2.Timestamp): + Output only. Time when the PersistentResource for the first + time entered the ``RUNNING`` state. + update_time (google.protobuf.timestamp_pb2.Timestamp): + Output only. Time when the PersistentResource + was most recently updated. + labels (MutableMapping[str, str]): + Optional. The labels with user-defined + metadata to organize PersistentResource. + + Label keys and values can be no longer than 64 + characters (Unicode codepoints), can only + contain lowercase letters, numeric characters, + underscores and dashes. International characters + are allowed. + See https://goo.gl/xmQnxf for more information + and examples of labels. + network (str): + Optional. The full name of the Compute Engine + `network `__ + to peered with Vertex AI to host the persistent resources. + For example, ``projects/12345/global/networks/myVPC``. + `Format `__ + is of the form + ``projects/{project}/global/networks/{network}``. Where + {project} is a project number, as in ``12345``, and + {network} is a network name. + + To specify this field, you must have already `configured VPC + Network Peering for Vertex + AI `__. + + If this field is left unspecified, the resources is not + peered with any network. + encryption_spec (google.cloud.aiplatform_v1beta1.types.EncryptionSpec): + Optional. Customer-managed encryption key + spec for a PersistentResource. If set, this + PersistentResource and all sub-resources of this + PersistentResource will be secured by this key. + resource_runtime_spec (google.cloud.aiplatform_v1beta1.types.ResourceRuntimeSpec): + Optional. Persistent Resource runtime spec. + Used for e.g. Ray cluster configuration. + reserved_ip_ranges (MutableSequence[str]): + Optional. A list of names for the reserved ip ranges under + the VPC network that can be used for this persistent + resource. + + If set, we will deploy the persistent resource within the + provided ip ranges. Otherwise, the persistent resource will + be deployed to any ip ranges under the provided VPC network. + + Example: ['vertex-ai-ip-range']. + """ + + class State(proto.Enum): + r"""Describes the PersistentResource state. + + Values: + STATE_UNSPECIFIED (0): + Not set. + PROVISIONING (1): + The PROVISIONING state indicates the + persistent resources is being created. + RUNNING (3): + The RUNNING state indicates the persistent + resources is healthy and fully usable. + STOPPING (4): + The STOPPING state indicates the persistent + resources is being deleted. + ERROR (5): + The ERROR state indicates the persistent resources may be + unusable. Details can be found in the ``error`` field. + """ + STATE_UNSPECIFIED = 0 + PROVISIONING = 1 + RUNNING = 3 + STOPPING = 4 + ERROR = 5 + + name: str = proto.Field( + proto.STRING, + number=1, + ) + display_name: str = proto.Field( + proto.STRING, + number=2, + ) + resource_pools: MutableSequence["ResourcePool"] = proto.RepeatedField( + proto.MESSAGE, + number=4, + message="ResourcePool", + ) + state: State = proto.Field( + proto.ENUM, + number=5, + enum=State, + ) + error: status_pb2.Status = proto.Field( + proto.MESSAGE, + number=6, + message=status_pb2.Status, + ) + create_time: timestamp_pb2.Timestamp = proto.Field( + proto.MESSAGE, + number=7, + message=timestamp_pb2.Timestamp, + ) + start_time: timestamp_pb2.Timestamp = proto.Field( + proto.MESSAGE, + number=8, + message=timestamp_pb2.Timestamp, + ) + update_time: timestamp_pb2.Timestamp = proto.Field( + proto.MESSAGE, + number=9, + message=timestamp_pb2.Timestamp, + ) + labels: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=10, + ) + network: str = proto.Field( + proto.STRING, + number=11, + ) + encryption_spec: gca_encryption_spec.EncryptionSpec = proto.Field( + proto.MESSAGE, + number=12, + message=gca_encryption_spec.EncryptionSpec, + ) + resource_runtime_spec: "ResourceRuntimeSpec" = proto.Field( + proto.MESSAGE, + number=13, + message="ResourceRuntimeSpec", + ) + reserved_ip_ranges: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=15, + ) + + +class ResourcePool(proto.Message): + r"""Represents the spec a group of resources of same type, e.g. + machine, disk and accelerators, in a PersistentResource. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + id (str): + Optional. The unique ID in a + PersistentResource to refer the this resource + pool. User can specify it if need to use it, + otherwise we will generate it automatically. + machine_spec (google.cloud.aiplatform_v1beta1.types.MachineSpec): + Required. Immutable. The specification of a + single machine. + replica_count (int): + Optional. The total number of machines to use + for this resource pool. + + This field is a member of `oneof`_ ``_replica_count``. + disk_spec (google.cloud.aiplatform_v1beta1.types.DiskSpec): + Optional. Disk spec for the machine in this + node pool. + idle_replica_count (int): + Output only. The number of machines currently not in use by + training jobs for this resource pool. Deprecated. Use + ``used_replica_count`` instead. + used_replica_count (int): + Output only. The number of machines currently in use by + training jobs for this resource pool. Will replace + idle_replica_count. + autoscaling_spec (google.cloud.aiplatform_v1beta1.types.ResourcePool.AutoscalingSpec): + Optional. Optional spec to configure GKE + autoscaling + """ + + class AutoscalingSpec(proto.Message): + r"""The min/max number of replicas allowed if enabling + autoscaling + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + min_replica_count (int): + Optional. min replicas in the node pool, must be ≤ + replica_count and < max_replica_count or will throw error + + This field is a member of `oneof`_ ``_min_replica_count``. + max_replica_count (int): + Optional. max replicas in the node pool, must be ≥ + replica_count and > min_replica_count or will throw error + + This field is a member of `oneof`_ ``_max_replica_count``. + """ + + min_replica_count: int = proto.Field( + proto.INT64, + number=1, + optional=True, + ) + max_replica_count: int = proto.Field( + proto.INT64, + number=2, + optional=True, + ) + + id: str = proto.Field( + proto.STRING, + number=1, + ) + machine_spec: machine_resources.MachineSpec = proto.Field( + proto.MESSAGE, + number=2, + message=machine_resources.MachineSpec, + ) + replica_count: int = proto.Field( + proto.INT64, + number=3, + optional=True, + ) + disk_spec: machine_resources.DiskSpec = proto.Field( + proto.MESSAGE, + number=4, + message=machine_resources.DiskSpec, + ) + idle_replica_count: int = proto.Field( + proto.INT64, + number=5, + ) + used_replica_count: int = proto.Field( + proto.INT64, + number=6, + ) + autoscaling_spec: AutoscalingSpec = proto.Field( + proto.MESSAGE, + number=7, + message=AutoscalingSpec, + ) + + +class ResourceRuntimeSpec(proto.Message): + r"""Configure runtime on a PersistentResource instance, including but + may not limited to: + + - Service accounts used to run the workloads; + - Whether make it a dedicated Ray Cluster; + + Attributes: + service_account_spec (google.cloud.aiplatform_v1beta1.types.ServiceAccountSpec): + Optional. Configure the use of workload + identity on the PersistentResource + """ + + service_account_spec: "ServiceAccountSpec" = proto.Field( + proto.MESSAGE, + number=2, + message="ServiceAccountSpec", + ) + + +class ServiceAccountSpec(proto.Message): + r"""Configuration for the use of custom service account to run + the workloads. + + Attributes: + enable_custom_service_account (bool): + Required. If true, custom user-managed service account is + enforced to run any workloads (e.g. Vertex Jobs) on the + resource; Otherwise, will always use `Vertex AI Custom Code + Service + Agent `__ + service_account (str): + Optional. Default service account that this + PersistentResource's workloads run as. The workloads + include: + + - Any runtime specified via ``ResourceRuntimeSpec`` on + creation time, e.g. Ray; + - Jobs submitted to PersistentResource, if no other service + account specified in the job specs. + + Only works when custom service account is enabled and users + have the ``iam.serviceAccounts.actAs`` permission on this + service account. + + Required if any containers specified in + ``ResourceRuntimeSpec``. + """ + + enable_custom_service_account: bool = proto.Field( + proto.BOOL, + number=1, + ) + service_account: str = proto.Field( + proto.STRING, + number=2, + ) + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/aiplatform_v1beta1/types/persistent_resource_service.py b/google/cloud/aiplatform_v1beta1/types/persistent_resource_service.py new file mode 100644 index 0000000000..07ee437df8 --- /dev/null +++ b/google/cloud/aiplatform_v1beta1/types/persistent_resource_service.py @@ -0,0 +1,187 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 annotations + +from typing import MutableMapping, MutableSequence + +import proto # type: ignore + +from google.cloud.aiplatform_v1beta1.types import operation +from google.cloud.aiplatform_v1beta1.types import ( + persistent_resource as gca_persistent_resource, +) + + +__protobuf__ = proto.module( + package="google.cloud.aiplatform.v1beta1", + manifest={ + "CreatePersistentResourceRequest", + "CreatePersistentResourceOperationMetadata", + "GetPersistentResourceRequest", + "ListPersistentResourcesRequest", + "ListPersistentResourcesResponse", + "DeletePersistentResourceRequest", + }, +) + + +class CreatePersistentResourceRequest(proto.Message): + r"""Request message for + [PersistentResourceService.CreatePersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource]. + + Attributes: + parent (str): + Required. The resource name of the Location to create the + PersistentResource in. Format: + ``projects/{project}/locations/{location}`` + persistent_resource (google.cloud.aiplatform_v1beta1.types.PersistentResource): + Required. The PersistentResource to create. + persistent_resource_id (str): + Required. The ID to use for the PersistentResource, which + become the final component of the PersistentResource's + resource name. + + The maximum length is 63 characters, and valid characters + are /^`a-z <[a-z0-9-]{0,61}[a-z0-9]>`__?$/. + """ + + parent: str = proto.Field( + proto.STRING, + number=1, + ) + persistent_resource: gca_persistent_resource.PersistentResource = proto.Field( + proto.MESSAGE, + number=2, + message=gca_persistent_resource.PersistentResource, + ) + persistent_resource_id: str = proto.Field( + proto.STRING, + number=3, + ) + + +class CreatePersistentResourceOperationMetadata(proto.Message): + r"""Details of operations that perform create PersistentResource. + + Attributes: + generic_metadata (google.cloud.aiplatform_v1beta1.types.GenericOperationMetadata): + Operation metadata for PersistentResource. + """ + + generic_metadata: operation.GenericOperationMetadata = proto.Field( + proto.MESSAGE, + number=1, + message=operation.GenericOperationMetadata, + ) + + +class GetPersistentResourceRequest(proto.Message): + r"""Request message for + [PersistentResourceService.GetPersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource]. + + Attributes: + name (str): + Required. The name of the PersistentResource resource. + Format: + ``projects/{project_id_or_number}/locations/{location_id}/persistentResources/{persistent_resource_id}`` + """ + + name: str = proto.Field( + proto.STRING, + number=1, + ) + + +class ListPersistentResourcesRequest(proto.Message): + r"""Request message for + [PersistentResourceService.ListPersistentResource][]. + + Attributes: + parent (str): + Required. The resource name of the Location to list the + PersistentResources from. Format: + ``projects/{project}/locations/{location}`` + page_size (int): + Optional. The standard list page size. + page_token (str): + Optional. The standard list page token. Typically obtained + via [ListPersistentResourceResponse.next_page_token][] of + the previous + [PersistentResourceService.ListPersistentResource][] call. + """ + + parent: str = proto.Field( + proto.STRING, + number=1, + ) + page_size: int = proto.Field( + proto.INT32, + number=3, + ) + page_token: str = proto.Field( + proto.STRING, + number=4, + ) + + +class ListPersistentResourcesResponse(proto.Message): + r"""Response message for + [PersistentResourceService.ListPersistentResources][google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResources] + + Attributes: + persistent_resources (MutableSequence[google.cloud.aiplatform_v1beta1.types.PersistentResource]): + + next_page_token (str): + A token to retrieve next page of results. Pass to + [ListPersistentResourcesRequest.page_token][google.cloud.aiplatform.v1beta1.ListPersistentResourcesRequest.page_token] + to obtain that page. + """ + + @property + def raw_page(self): + return self + + persistent_resources: MutableSequence[ + gca_persistent_resource.PersistentResource + ] = proto.RepeatedField( + proto.MESSAGE, + number=1, + message=gca_persistent_resource.PersistentResource, + ) + next_page_token: str = proto.Field( + proto.STRING, + number=2, + ) + + +class DeletePersistentResourceRequest(proto.Message): + r"""Request message for + [PersistentResourceService.DeletePersistentResource][google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResource]. + + Attributes: + name (str): + Required. The name of the PersistentResource to be deleted. + Format: + ``projects/{project}/locations/{location}/persistentResources/{persistent_resource}`` + """ + + name: str = proto.Field( + proto.STRING, + number=1, + ) + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/aiplatform_v1beta1/types/pipeline_failure_policy.py b/google/cloud/aiplatform_v1beta1/types/pipeline_failure_policy.py index e1ab82ebab..373da4123b 100644 --- a/google/cloud/aiplatform_v1beta1/types/pipeline_failure_policy.py +++ b/google/cloud/aiplatform_v1beta1/types/pipeline_failure_policy.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/pipeline_job.py b/google/cloud/aiplatform_v1beta1/types/pipeline_job.py index 9b000f7962..b8f82af8dc 100644 --- a/google/cloud/aiplatform_v1beta1/types/pipeline_job.py +++ b/google/cloud/aiplatform_v1beta1/types/pipeline_job.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -75,15 +75,22 @@ class PipelineJob(proto.Message): pipeline execution. Only populated when the pipeline's state is FAILED or CANCELLED. labels (MutableMapping[str, str]): - The labels with user-defined metadata to - organize PipelineJob. - Label keys and values can be no longer than 64 - characters (Unicode codepoints), can only - contain lowercase letters, numeric characters, - underscores and dashes. International characters - are allowed. - See https://goo.gl/xmQnxf for more information - and examples of labels. + The labels with user-defined metadata to organize + PipelineJob. + + Label keys and values can be no longer than 64 characters + (Unicode codepoints), can only contain lowercase letters, + numeric characters, underscores and dashes. International + characters are allowed. + + See https://goo.gl/xmQnxf for more information and examples + of labels. + + Note there is some reserved label key for Vertex AI + Pipelines. + + - ``vertex-ai-pipelines-run-billing-id``, user set value + will get overrided. runtime_config (google.cloud.aiplatform_v1beta1.types.PipelineJob.RuntimeConfig): Runtime config of the pipeline. encryption_spec (google.cloud.aiplatform_v1beta1.types.EncryptionSpec): @@ -115,6 +122,15 @@ class PipelineJob(proto.Message): to the Google Cloud resources being launched, if applied, such as Vertex AI Training or Dataflow job. If left unspecified, the workload is not peered with any network. + reserved_ip_ranges (MutableSequence[str]): + A list of names for the reserved ip ranges under the VPC + network that can be used for this Pipeline Job's workload. + + If set, we will deploy the Pipeline Job's workload within + the provided ip ranges. Otherwise, the job will be deployed + to any ip ranges under the provided VPC network. + + Example: ['vertex-ai-ip-range']. template_uri (str): A template uri from where the [PipelineJob.pipeline_spec][google.cloud.aiplatform.v1beta1.PipelineJob.pipeline_spec], @@ -296,6 +312,10 @@ class InputArtifact(proto.Message): proto.STRING, number=18, ) + reserved_ip_ranges: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=25, + ) template_uri: str = proto.Field( proto.STRING, number=19, diff --git a/google/cloud/aiplatform_v1beta1/types/pipeline_service.py b/google/cloud/aiplatform_v1beta1/types/pipeline_service.py index 049c1c9d38..568376836e 100644 --- a/google/cloud/aiplatform_v1beta1/types/pipeline_service.py +++ b/google/cloud/aiplatform_v1beta1/types/pipeline_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/pipeline_state.py b/google/cloud/aiplatform_v1beta1/types/pipeline_state.py index 4c11f882a9..06dbc3c39a 100644 --- a/google/cloud/aiplatform_v1beta1/types/pipeline_state.py +++ b/google/cloud/aiplatform_v1beta1/types/pipeline_state.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/prediction_service.py b/google/cloud/aiplatform_v1beta1/types/prediction_service.py index a47b8b8152..1365ccc32a 100644 --- a/google/cloud/aiplatform_v1beta1/types/prediction_service.py +++ b/google/cloud/aiplatform_v1beta1/types/prediction_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/publisher_model.py b/google/cloud/aiplatform_v1beta1/types/publisher_model.py index 6bc91922bb..66fc8f2176 100644 --- a/google/cloud/aiplatform_v1beta1/types/publisher_model.py +++ b/google/cloud/aiplatform_v1beta1/types/publisher_model.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/saved_query.py b/google/cloud/aiplatform_v1beta1/types/saved_query.py index c028061c32..9a8c5d031b 100644 --- a/google/cloud/aiplatform_v1beta1/types/saved_query.py +++ b/google/cloud/aiplatform_v1beta1/types/saved_query.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/schedule.py b/google/cloud/aiplatform_v1beta1/types/schedule.py index 15b0a82f90..d022177bb3 100644 --- a/google/cloud/aiplatform_v1beta1/types/schedule.py +++ b/google/cloud/aiplatform_v1beta1/types/schedule.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/schedule_service.py b/google/cloud/aiplatform_v1beta1/types/schedule_service.py index 9f809bb682..e77b11fd75 100644 --- a/google/cloud/aiplatform_v1beta1/types/schedule_service.py +++ b/google/cloud/aiplatform_v1beta1/types/schedule_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/service_networking.py b/google/cloud/aiplatform_v1beta1/types/service_networking.py index 338cd13149..bc5b85125f 100644 --- a/google/cloud/aiplatform_v1beta1/types/service_networking.py +++ b/google/cloud/aiplatform_v1beta1/types/service_networking.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/specialist_pool.py b/google/cloud/aiplatform_v1beta1/types/specialist_pool.py index 3e18e032ad..fd871a414a 100644 --- a/google/cloud/aiplatform_v1beta1/types/specialist_pool.py +++ b/google/cloud/aiplatform_v1beta1/types/specialist_pool.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/specialist_pool_service.py b/google/cloud/aiplatform_v1beta1/types/specialist_pool_service.py index 5ce280ae83..21bdad72b7 100644 --- a/google/cloud/aiplatform_v1beta1/types/specialist_pool_service.py +++ b/google/cloud/aiplatform_v1beta1/types/specialist_pool_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/study.py b/google/cloud/aiplatform_v1beta1/types/study.py index 9dab18fc8b..a4663f388f 100644 --- a/google/cloud/aiplatform_v1beta1/types/study.py +++ b/google/cloud/aiplatform_v1beta1/types/study.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/tensorboard.py b/google/cloud/aiplatform_v1beta1/types/tensorboard.py index ac07f07d5b..2c5a91edfd 100644 --- a/google/cloud/aiplatform_v1beta1/types/tensorboard.py +++ b/google/cloud/aiplatform_v1beta1/types/tensorboard.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/tensorboard_data.py b/google/cloud/aiplatform_v1beta1/types/tensorboard_data.py index ac3df5a625..758bf08aa2 100644 --- a/google/cloud/aiplatform_v1beta1/types/tensorboard_data.py +++ b/google/cloud/aiplatform_v1beta1/types/tensorboard_data.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/tensorboard_experiment.py b/google/cloud/aiplatform_v1beta1/types/tensorboard_experiment.py index c9b06b0be5..4da9ead024 100644 --- a/google/cloud/aiplatform_v1beta1/types/tensorboard_experiment.py +++ b/google/cloud/aiplatform_v1beta1/types/tensorboard_experiment.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/tensorboard_run.py b/google/cloud/aiplatform_v1beta1/types/tensorboard_run.py index dd9a3ee54f..95fbb68fba 100644 --- a/google/cloud/aiplatform_v1beta1/types/tensorboard_run.py +++ b/google/cloud/aiplatform_v1beta1/types/tensorboard_run.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/tensorboard_service.py b/google/cloud/aiplatform_v1beta1/types/tensorboard_service.py index fa5eeee51f..3ff8168dea 100644 --- a/google/cloud/aiplatform_v1beta1/types/tensorboard_service.py +++ b/google/cloud/aiplatform_v1beta1/types/tensorboard_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -37,12 +37,14 @@ manifest={ "CreateTensorboardRequest", "GetTensorboardRequest", - "ReadTensorboardUsageRequest", - "ReadTensorboardUsageResponse", "ListTensorboardsRequest", "ListTensorboardsResponse", "UpdateTensorboardRequest", "DeleteTensorboardRequest", + "ReadTensorboardUsageRequest", + "ReadTensorboardUsageResponse", + "ReadTensorboardSizeRequest", + "ReadTensorboardSizeResponse", "CreateTensorboardExperimentRequest", "GetTensorboardExperimentRequest", "ListTensorboardExperimentsRequest", @@ -123,75 +125,6 @@ class GetTensorboardRequest(proto.Message): ) -class ReadTensorboardUsageRequest(proto.Message): - r"""Request message for [TensorboardService.GetTensorboardUsage][]. - - Attributes: - tensorboard (str): - Required. The name of the Tensorboard resource. Format: - ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` - """ - - tensorboard: str = proto.Field( - proto.STRING, - number=1, - ) - - -class ReadTensorboardUsageResponse(proto.Message): - r"""Response message for - [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. - - Attributes: - monthly_usage_data (MutableMapping[str, google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse.PerMonthUsageData]): - Maps year-month (YYYYMM) string to per month - usage data. - """ - - class PerUserUsageData(proto.Message): - r"""Per user usage data. - - Attributes: - username (str): - User's username - view_count (int): - Number of times the user has read data within - the Tensorboard. - """ - - username: str = proto.Field( - proto.STRING, - number=1, - ) - view_count: int = proto.Field( - proto.INT64, - number=2, - ) - - class PerMonthUsageData(proto.Message): - r"""Per month usage data - - Attributes: - user_usage_data (MutableSequence[google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse.PerUserUsageData]): - Usage data for each user in the given month. - """ - - user_usage_data: MutableSequence[ - "ReadTensorboardUsageResponse.PerUserUsageData" - ] = proto.RepeatedField( - proto.MESSAGE, - number=1, - message="ReadTensorboardUsageResponse.PerUserUsageData", - ) - - monthly_usage_data: MutableMapping[str, PerMonthUsageData] = proto.MapField( - proto.STRING, - proto.MESSAGE, - number=1, - message=PerMonthUsageData, - ) - - class ListTensorboardsRequest(proto.Message): r"""Request message for [TensorboardService.ListTensorboards][google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards]. @@ -326,6 +259,107 @@ class DeleteTensorboardRequest(proto.Message): ) +class ReadTensorboardUsageRequest(proto.Message): + r"""Request message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. + + Attributes: + tensorboard (str): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + """ + + tensorboard: str = proto.Field( + proto.STRING, + number=1, + ) + + +class ReadTensorboardUsageResponse(proto.Message): + r"""Response message for + [TensorboardService.ReadTensorboardUsage][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage]. + + Attributes: + monthly_usage_data (MutableMapping[str, google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse.PerMonthUsageData]): + Maps year-month (YYYYMM) string to per month + usage data. + """ + + class PerUserUsageData(proto.Message): + r"""Per user usage data. + + Attributes: + username (str): + User's username + view_count (int): + Number of times the user has read data within + the Tensorboard. + """ + + username: str = proto.Field( + proto.STRING, + number=1, + ) + view_count: int = proto.Field( + proto.INT64, + number=2, + ) + + class PerMonthUsageData(proto.Message): + r"""Per month usage data + + Attributes: + user_usage_data (MutableSequence[google.cloud.aiplatform_v1beta1.types.ReadTensorboardUsageResponse.PerUserUsageData]): + Usage data for each user in the given month. + """ + + user_usage_data: MutableSequence[ + "ReadTensorboardUsageResponse.PerUserUsageData" + ] = proto.RepeatedField( + proto.MESSAGE, + number=1, + message="ReadTensorboardUsageResponse.PerUserUsageData", + ) + + monthly_usage_data: MutableMapping[str, PerMonthUsageData] = proto.MapField( + proto.STRING, + proto.MESSAGE, + number=1, + message=PerMonthUsageData, + ) + + +class ReadTensorboardSizeRequest(proto.Message): + r"""Request message for + [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize]. + + Attributes: + tensorboard (str): + Required. The name of the Tensorboard resource. Format: + ``projects/{project}/locations/{location}/tensorboards/{tensorboard}`` + """ + + tensorboard: str = proto.Field( + proto.STRING, + number=1, + ) + + +class ReadTensorboardSizeResponse(proto.Message): + r"""Response message for + [TensorboardService.ReadTensorboardSize][google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize]. + + Attributes: + storage_size_byte (int): + Payload storage size for the TensorBoard + """ + + storage_size_byte: int = proto.Field( + proto.INT64, + number=1, + ) + + class CreateTensorboardExperimentRequest(proto.Message): r"""Request message for [TensorboardService.CreateTensorboardExperiment][google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment]. diff --git a/google/cloud/aiplatform_v1beta1/types/tensorboard_time_series.py b/google/cloud/aiplatform_v1beta1/types/tensorboard_time_series.py index 0f46a34eb2..2e1cc0d87d 100644 --- a/google/cloud/aiplatform_v1beta1/types/tensorboard_time_series.py +++ b/google/cloud/aiplatform_v1beta1/types/tensorboard_time_series.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/training_pipeline.py b/google/cloud/aiplatform_v1beta1/types/training_pipeline.py index 1c6797074b..48af4792d1 100644 --- a/google/cloud/aiplatform_v1beta1/types/training_pipeline.py +++ b/google/cloud/aiplatform_v1beta1/types/training_pipeline.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/types.py b/google/cloud/aiplatform_v1beta1/types/types.py index bd9f58d35f..95fa72137b 100644 --- a/google/cloud/aiplatform_v1beta1/types/types.py +++ b/google/cloud/aiplatform_v1beta1/types/types.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/unmanaged_container_model.py b/google/cloud/aiplatform_v1beta1/types/unmanaged_container_model.py index 15cfe28f2c..fd9e040ca2 100644 --- a/google/cloud/aiplatform_v1beta1/types/unmanaged_container_model.py +++ b/google/cloud/aiplatform_v1beta1/types/unmanaged_container_model.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/user_action_reference.py b/google/cloud/aiplatform_v1beta1/types/user_action_reference.py index 5b8cb24caf..7c1438de1b 100644 --- a/google/cloud/aiplatform_v1beta1/types/user_action_reference.py +++ b/google/cloud/aiplatform_v1beta1/types/user_action_reference.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/value.py b/google/cloud/aiplatform_v1beta1/types/value.py index 671f3fa052..ac95abfd94 100644 --- a/google/cloud/aiplatform_v1beta1/types/value.py +++ b/google/cloud/aiplatform_v1beta1/types/value.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/google/cloud/aiplatform_v1beta1/types/vizier_service.py b/google/cloud/aiplatform_v1beta1/types/vizier_service.py index 9d41a14392..135b2780cb 100644 --- a/google/cloud/aiplatform_v1beta1/types/vizier_service.py +++ b/google/cloud/aiplatform_v1beta1/types/vizier_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_async.py index 1f6d2f1995..0957a42c2f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_sync.py index 518d2cd9e7..b0314825f9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_create_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_async.py index 0f36a7c682..6adc9d4ef1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_sync.py index f6649a3c2c..998c62f87b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_async.py new file mode 100644 index 0000000000..20fb2f94f7 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_async.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 DeleteSavedQuery +# 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-aiplatform + + +# [START aiplatform_v1_generated_DatasetService_DeleteSavedQuery_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 aiplatform_v1 + + +async def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1.DatasetServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + +# [END aiplatform_v1_generated_DatasetService_DeleteSavedQuery_async] diff --git a/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_sync.py new file mode 100644 index 0000000000..aa60b0fbf2 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_delete_saved_query_sync.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 DeleteSavedQuery +# 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-aiplatform + + +# [START aiplatform_v1_generated_DatasetService_DeleteSavedQuery_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 aiplatform_v1 + + +def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1.DatasetServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END aiplatform_v1_generated_DatasetService_DeleteSavedQuery_sync] diff --git a/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_async.py index fa10706d3b..6def3971e8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_sync.py index 4a68486f43..72bcf7131c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_export_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_async.py index 1067e94d0f..7a14e10339 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_sync.py index aed483bc3b..681345b9b5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_annotation_spec_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_async.py index 0de62a2817..f9c250bdba 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_sync.py index 3bea283aac..c3b647318a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_get_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_async.py index a26e4446fb..288c0d4454 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_sync.py index b909c2f70e..a51f45e195 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_import_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_async.py index 290ffa570e..81b698da5a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_sync.py index 236a22bca7..770e061046 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_annotations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_async.py index c3302f0bae..78541624be 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_sync.py index df65ec1428..af1633b3ce 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_data_items_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_async.py index 4a8212827b..7719b2bca5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_sync.py index 1b59c3bfcd..059c2e7eef 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_datasets_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_async.py index 6ce377975e..1d1e5db427 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_sync.py index a72c9688d9..1a530c07c1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_list_saved_queries_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_async.py index 26da359bfa..3f03529ae4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_sync.py index f849c4e52f..2e15b0311c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_search_data_items_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_async.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_async.py index 06705ee62d..7e1a6ee2a4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_sync.py b/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_sync.py index 8e1ed0fbc0..8106fe1618 100644 --- a/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_dataset_service_update_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_async.py index 17278e8e2f..d2b82fa184 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_sync.py index 9af2865358..f32e960222 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_create_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_async.py index 9e49204fae..e5b7993d21 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_sync.py index 8831d44586..0261236471 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_delete_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_async.py index 3cadaf2a74..0c4f6626b2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_sync.py index 61db7b62d9..ccb7e69ea8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_deploy_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_async.py index fdca5e16ad..ea62bb02fb 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_sync.py index 0a3bb7f2c3..421f4690c1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_get_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_async.py index e2f3438de2..619c9d2ac6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_sync.py index d09db4a8c7..1b5f1fec46 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_list_endpoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_async.py index 789d6a52ce..6160747aa3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_sync.py index 6653910a7f..69dc5c380c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_mutate_deployed_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_async.py index c59adcca33..78afa49e23 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_sync.py index ae081afeea..8a576df8ff 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_undeploy_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_async.py index d85b2d7591..e04aa8de47 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_sync.py index 289d5f0592..84d707397a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_endpoint_service_update_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_async.py index 8a042598db..1855598f74 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_sync.py index 361b38cfc4..7237b6cb34 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_read_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py index 49c7e1ce4c..f94253c8a8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py index 9d25472036..2995fc77e2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_async.py index 8f38e6f7b1..5a405e05ea 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_sync.py index 21ea23fc34..4c43d52d76 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_online_serving_service_write_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_async.py index 31803d4811..c1916f665b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_sync.py index c9348f9b96..c126c397e0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_create_features_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_async.py index 1030415996..63c3016f18 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_sync.py index 46fb005a17..bc9fbe4a51 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_batch_read_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_async.py index 25300884ab..a31e208f8f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_sync.py index 15e5054f1d..85d99f6590 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_async.py index f56d143060..94aaaf6594 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_sync.py index 0a9bc0738f..a64f165f73 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_async.py index 46f73adf95..5eaf3eb271 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_sync.py index 2da0ef863c..2c53f67298 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_create_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_async.py index 5ccb8eff00..12d785544d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_sync.py index a1a11894ce..3a85c9f6da 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_async.py index e1446f8f3d..e781102836 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_sync.py index 0d9395a0a0..1fa2212f20 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_async.py index 8372be4676..b74483b33c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_sync.py index d9f6d1bbfe..a8360907b9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_async.py index d8b858fb09..0da9fba178 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_sync.py index 9ec43f9662..80755a162a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_delete_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_async.py index 0768823d94..9063f5b386 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_sync.py index 8739aa94b9..db2ba72b4c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_export_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_async.py index 42a919bbd6..525ae639c5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_sync.py index 7365f9fb3b..eb48b1ba79 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_async.py index 638fc683ed..4662093b8f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_sync.py index d217f83ff4..24d6d213bb 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_async.py index 90cb7ef37c..8b56be8af5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_sync.py index 5f76347fe5..9ac14958c7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_get_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_async.py index 52a370abbb..8865db0490 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_sync.py index 06f7afaf88..8e6abbf186 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_import_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_async.py index 658b01d403..e38ab68cfe 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_sync.py index 616f83be4c..4f14d31903 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_entity_types_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_async.py index 3f0d8047cb..528c35dd6d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_sync.py index 3b899ffa1a..ace2c04c8f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_features_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_async.py index 11f3b4152a..5bcae7c637 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_sync.py index 32247dba28..4aad343e9b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_list_featurestores_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_async.py index ca9df1d138..121bf63a45 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_sync.py index cf92024f65..6f1dad8315 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_search_features_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_async.py index c5902ba068..5dd28e1d72 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_sync.py index 29a16adb98..79dd7d8a00 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_async.py index 850a6dded4..8b73340a76 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_sync.py index e721b3763d..891b9ecbdc 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_async.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_async.py index d57b51b598..2ac4b89a25 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_sync.py b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_sync.py index 58ad9b123c..a3f08cece7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_featurestore_service_update_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_async.py index 519b9de0df..c88e9f0671 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_sync.py index d67518933a..468cfbd0a7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_create_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_async.py index 05ec443054..a236e44250 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_sync.py index 869fe78e83..926efcf628 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_delete_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_async.py index 143c5cb65d..ce8ebe682e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_sync.py index ae9db26f1d..6eae5bb873 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_deploy_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_async.py index 15e8234059..5663e4f3af 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_sync.py index e752e9f95a..067d1d08ea 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_get_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_async.py index 20dca46dd6..7a2cff7b4c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_sync.py index e14c1d8315..032cbe0874 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_list_index_endpoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_async.py index 78301d56e9..d66322b82f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_sync.py index 0f33a22a16..23ca4416e9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_mutate_deployed_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_async.py index ff04c1935a..1bf565e06c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_sync.py index b4eb69f7ee..c70d1ed4a4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_undeploy_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_async.py index d96403570f..486242377e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_sync.py index 7b58b738b3..e5b947d06e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_endpoint_service_update_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_async.py b/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_async.py index 291734f571..ce9974438b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_sync.py index 2ec9b4230a..122b6369fe 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_create_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_async.py b/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_async.py index dba13aae1a..587b714d35 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_sync.py index c680ee0ec6..c6daa0949d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_delete_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_async.py b/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_async.py index ae77310ea0..35b30de8f7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_sync.py index e9841988f9..b4e9719a8d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_get_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_async.py b/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_async.py index e5b1b3b09b..694378b1fa 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_sync.py index 8ccab6b65c..6fae46de8a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_list_indexes_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_async.py b/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_async.py index 9b680158d1..20aad336eb 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_sync.py index 5cc00597e7..fc8fb08409 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_remove_datapoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_async.py b/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_async.py index 9ccdd29b2d..b354659635 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_sync.py index 109e22514c..83296bde38 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_update_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_async.py b/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_async.py index 20884ef539..1adcc9a3f9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_sync.py b/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_sync.py index 651ffe19b9..f9d75e798b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_index_service_upsert_datapoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_async.py index 7127f7a807..affdad38a1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_sync.py index bd5aeabf5c..72d9d29d78 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_async.py index 6e8ac13993..5fbc651fbe 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_sync.py index 7b0c30337b..0ac898ee22 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_async.py index 004338f93e..8437624af5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_sync.py index e6f28cb88d..b609f7993c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_async.py index b8ad6b5959..941440c0d8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py index b0683ed657..cfc2874f09 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_async.py index e7277ddef8..c960c64683 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_sync.py index 87556de6d7..7ffa04300a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_cancel_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_async.py index 2f73891e86..6183cc6413 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_sync.py index 532b993b95..3d09d92ac0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_async.py index 427b009eb9..3bb853d0bc 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_sync.py index 670843c7cf..fc00dc84a3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_async.py index 9aa6c30831..09257f7943 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_sync.py index 3d2c70676b..1be080032d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_async.py index 34bca4098d..98dda25b5b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_sync.py index 9fb146a791..b485ff5480 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_async.py index aebcdf1144..d3db4ac524 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_sync.py index 028abf1be8..2802f67541 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_async.py index 06131c411f..7c8c72d6de 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_sync.py index dbc4775269..3385d76c7b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_create_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_async.py index a69b2fc6d6..c504d56527 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_sync.py index 08aada294e..0a8cce7e11 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_async.py index 9c5a677edf..09940284f3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_sync.py index 4a09377edd..a8dd159450 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_async.py index dcff348347..69db8d53bc 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_sync.py index 53de431447..6f7aae052b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_async.py index feef32845e..cf2ee0ab8c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_sync.py index 17dead8944..185fc6855e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_async.py index e9ba50d67c..656e46d146 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_sync.py index 8504e80f39..23eee197b3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_async.py index e877b983f3..a16567cd92 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_sync.py index 2dc75272cd..c177cb1e44 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_delete_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_async.py index 33faeed192..2b55d06045 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_sync.py index 5dc444da68..83378a8354 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_async.py index 3a85b62799..f1ca9eebf3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_sync.py index f16aa3cfb6..677d85cec1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_async.py index 2ab0920f2f..36ed022e73 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_sync.py index 2e1f89519b..1d6a56caf5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_async.py index 5d666c34b7..e2ff686522 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_sync.py index 5cbf1cc933..8713769c2e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_async.py index d1bd1766f9..d636bffcc6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_sync.py index f382a5e8aa..3c2996919e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_async.py index f6391aa938..0dfcf971f4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_sync.py index ad043b2aff..f958e91006 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_async.py index ea9dce8e71..4d6b575b34 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_sync.py index cc083006c8..1be03925af 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_get_nas_trial_detail_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_async.py index 0b9f992e74..2a3ef52b0b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_sync.py index c85ff6115c..df8a3c1f56 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_batch_prediction_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_async.py index 4114247eb8..ae815613e4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_sync.py index 5d6713ff04..22c19d3d34 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_custom_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_async.py index bc6d31ca9c..677c85507e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_sync.py index db2d7c0566..8f9bcb480e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_data_labeling_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_async.py index 13f7730249..6f1f5f8471 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py index af3d8fd28f..173553ada0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_async.py index 323886159b..116fee40d7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py index aa5ed2cda5..8895cef699 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_async.py index bf580c08e7..c6136f490d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_sync.py index bc3e726467..7c6b44f639 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_async.py index 1b8b4ffdf2..c55fba8092 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_sync.py index ff9088f97f..1d887fc9b9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_list_nas_trial_details_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_async.py index 6541c6ef8a..ef92d887d6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_sync.py index 45a0e1d7e8..0b77e6483e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_pause_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_async.py index bbe6ed2a18..deef08d19c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_sync.py index e47f9b7519..c6e7d6cb3f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_resume_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py index e3166064df..dc9c782502 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py index 65814f1578..38bd029093 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_async.py index 822629a2f3..6b9fab6a55 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_sync.py index 321b8f8b2c..f4082dfdef 100644 --- a/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_job_service_update_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_async.py b/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_async.py index dbc7aebfc3..3cb60a8132 100644 --- a/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_sync.py b/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_sync.py index c221bdd8d5..e5b18b47df 100644 --- a/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_match_service_find_neighbors_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_async.py b/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_async.py index baa5dc9bd0..b10a69c205 100644 --- a/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_sync.py b/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_sync.py index a1e2b27e62..02c5d44c89 100644 --- a/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_match_service_read_index_datapoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_async.py index 15a97c758c..41a5f6d7ec 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_sync.py index 0e4eeb0638..b25ac051b6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_artifacts_and_executions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_async.py index 16a2df4fc8..5f23000195 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_sync.py index 946c2496ca..cb49b4e0a2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_context_children_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_async.py index a01c92f8be..d4e02e794f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_sync.py index 88652a6df1..530b4f4499 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_add_execution_events_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_async.py index 2c3300b0c7..33a1632fbb 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_sync.py index 450c30cc3b..2069180a7f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_async.py index 809688920b..828312df26 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_sync.py index e35a62669a..89ac2b7d4d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_async.py index 5febe404de..8edf4966ee 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_sync.py index 843ee8ee65..0d012a7976 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_async.py index ba0fde0ab4..183217204c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_sync.py index 3e7422996f..e25ab5d73b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_schema_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_async.py index c1878f4f5c..0983d87990 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_sync.py index 93eba15a93..04a44c14f4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_create_metadata_store_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_async.py index a61a0b5722..93a1213b7a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_sync.py index 8fe0789886..c5c1dd0dbd 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_async.py index 3de5f62a99..fb36ef8bb4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_sync.py index 50a9e1c686..059f8720b3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_async.py index 6e26c577a1..be9cd40206 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_sync.py index 1b634cdc79..975e1939ba 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_async.py index 1693cc476f..29dbc5c850 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_sync.py index 429c4e53fe..bd79c3c456 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_delete_metadata_store_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_async.py index 57402f5054..ef41c3cd92 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_sync.py index 3337a4e139..4f2c6a9ea7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_async.py index ae725a5b82..e83bf7dac6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_sync.py index 730ed4d50f..d69961bc1b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_async.py index 960007af7e..72215a0bba 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_sync.py index 6db96b9331..2886f47471 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_async.py index 8525d68b88..674cd07fc8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_sync.py index f94424b6ff..4d6e72d34a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_schema_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_async.py index 4fd5443ed8..6d2f2848cf 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_sync.py index 23bff9eba1..a48d6996c8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_get_metadata_store_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_async.py index 3e293bdbdf..4f1b70997a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_sync.py index 33fbfcfa75..339c8a9b22 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_artifacts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_async.py index 3e1a81eb95..71dfcbfd68 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_sync.py index 9092e018d8..397b7a2cd9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_contexts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_async.py index 72a289ca95..40c1522129 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_sync.py index 76a589ec0e..daf6396737 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_executions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_async.py index 4fcf12f5d6..7168327ee6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_sync.py index cfe37e11a4..c892ee3135 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_schemas_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_async.py index 971f1a649b..aea9b45312 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_sync.py index d75d60c809..e9bf300888 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_list_metadata_stores_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_async.py index 0bec67678a..1cbd47c367 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_sync.py index 0732969fa8..1df1849c6e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_artifacts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_async.py index 30715d7f37..0fe8559721 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_sync.py index dc7dba8d64..42e4c933e7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_contexts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_async.py index 35532b6d0f..08de01f93e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_sync.py index 50640fb5a8..4922b144a9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_purge_executions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_async.py index f43e116a6f..3216927bc2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py index 628cd69507..f26114d2fe 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_async.py index 9fed03e57d..0ac0bdefe3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_sync.py index 922f3617f0..c829ca46e0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_context_lineage_subgraph_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_async.py index 7f9270cc6f..ba8978e8cc 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py index 4d9854129a..084b0204e9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_async.py index efd878bc6f..954d516336 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_sync.py index 60d9cea88a..2f51e2701a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_remove_context_children_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_async.py index e4c218ad2b..05f00f37a0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_sync.py index 8eb8120090..18a3a8c2fd 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_async.py index 5d5c98e39e..9827f5a8ce 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_sync.py index bc13be5599..a52d33dc0d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_async.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_async.py index 8dde058cba..2f22f1c5d3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_sync.py b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_sync.py index bb60f8381b..b8da038be8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_metadata_service_update_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_async.py b/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_async.py index 75e0b6f11e..eb3b322bfc 100644 --- a/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_sync.py b/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_sync.py index 1cecefa5c1..b43be736c9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_migration_service_batch_migrate_resources_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_async.py b/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_async.py index eef4ed827b..81a36885a0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_sync.py b/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_sync.py index cad084d972..9a7d0a2f1b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_migration_service_search_migratable_resources_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_async.py b/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_async.py index 031cf50faf..128e0f17bf 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_sync.py index d84e4e5b38..1f9cf44383 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_garden_service_get_publisher_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_async.py index 6fd70a92a7..eb52d77524 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_sync.py index 4c5648c7bb..29651a22ff 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_evaluated_annotations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_async.py index 74c69c11cf..4861f80ff4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_sync.py index f223c5ba6e..9d29ed260f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_batch_import_model_evaluation_slices_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_async.py index f09ec60fff..2f8a585629 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_sync.py index 2946d16397..fee065cded 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_copy_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_async.py index 17fa6ce1cc..98f999989a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_sync.py index f476494029..9a3a0fafea 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_async.py index 75131f3c90..a5cadc76c0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_sync.py index b934e2fd3d..7053d0d64f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_delete_model_version_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_async.py index 91c0b220ff..7c6fce39b3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_sync.py index 61f9d6f639..242199e04e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_export_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_async.py index 7fcd11a93a..170b74abd3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_async.py index debb04108b..903ddbd74e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_async.py index a7b8371a97..0d638d294a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_sync.py index 3131e28263..f1da1fb9c4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_slice_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_sync.py index 2a365ca607..4b13794887 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_evaluation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_sync.py index e0eb10b193..9b21c9d76f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_get_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_async.py index 48574e1d7f..4296c82aa1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_sync.py index 4a5c1b333e..b0e7627c37 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_import_model_evaluation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_async.py index 1222afb2ff..eac341da51 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_sync.py index 00ee094ab0..ecec4fc6e1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluation_slices_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_async.py index 56a2e5f1d5..f12f2ac075 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_sync.py index 0a4b1ea676..3cf122e876 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_evaluations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_async.py index 6fb67e7396..b0b909d386 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_sync.py index 1069ca4fea..9c8edfc567 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_model_versions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_async.py index f9428a8e6d..3ebdfa91f1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_sync.py index 2560bdc002..780a19763b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_list_models_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_async.py index e515fed367..d85631d2ca 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_sync.py index 0981c28b7d..d0fa3ca65f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_merge_version_aliases_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_async.py new file mode 100644 index 0000000000..f3f1f5438c --- /dev/null +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_async.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 UpdateExplanationDataset +# 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-aiplatform + + +# [START aiplatform_v1_generated_ModelService_UpdateExplanationDataset_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 aiplatform_v1 + + +async def sample_update_explanation_dataset(): + # Create a client + client = aiplatform_v1.ModelServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1.UpdateExplanationDatasetRequest( + model="model_value", + ) + + # Make the request + operation = client.update_explanation_dataset(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + +# [END aiplatform_v1_generated_ModelService_UpdateExplanationDataset_async] diff --git a/samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_sync.py new file mode 100644 index 0000000000..03edbaec32 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_update_explanation_dataset_sync.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 UpdateExplanationDataset +# 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-aiplatform + + +# [START aiplatform_v1_generated_ModelService_UpdateExplanationDataset_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 aiplatform_v1 + + +def sample_update_explanation_dataset(): + # Create a client + client = aiplatform_v1.ModelServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1.UpdateExplanationDatasetRequest( + model="model_value", + ) + + # Make the request + operation = client.update_explanation_dataset(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END aiplatform_v1_generated_ModelService_UpdateExplanationDataset_sync] diff --git a/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_async.py index 4a142458f4..505c22daac 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_sync.py index 44913793f1..cc7bce0740 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_update_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_async.py b/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_async.py index f22f00d8fb..d358f1b556 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_sync.py b/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_sync.py index 313b295ac9..067fbc8fba 100644 --- a/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_model_service_upload_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_async.py index 0e2b04d901..b03e774966 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_sync.py index a88a143725..873c4c6a6a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_async.py index ec2aa263ed..251a491452 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_sync.py index 62dc1bc52b..a15e1adffa 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_cancel_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_async.py index f1030de763..846f19b1fa 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_sync.py index ec8425abff..1614c5cfdb 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_async.py index 7218080da2..c78c5799c1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_sync.py index de7e964367..6e478521b8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_create_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_async.py index de6ad49291..7370edded4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_sync.py index becc3def72..b0997567f2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_async.py index 2db9586410..60db546041 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_sync.py index 8cce960dbd..8fd2343c91 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_delete_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_async.py index e662aa956e..4e5be551c6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_sync.py index c399eb9aeb..0a0f532545 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_async.py index 38bacac2ea..5a14f0ddaf 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_sync.py index ddc6736dcd..b993cd8e09 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_get_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_async.py index 61d9f8c628..e26b4ee31b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_sync.py index 987a64cf9d..978b81b448 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_pipeline_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_async.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_async.py index 2db14d8fd2..786651948d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_sync.py b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_sync.py index aabeaf34b6..bda307273e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_pipeline_service_list_training_pipelines_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_async.py b/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_async.py index 6f6a6f4037..9f41f77aa2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_sync.py b/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_sync.py index 33730408ae..b414259551 100644 --- a/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_prediction_service_explain_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_async.py b/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_async.py index 28ce221373..082d467ce4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_sync.py b/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_sync.py index 779dcaa9b2..e95f15c20f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_prediction_service_predict_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_async.py b/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_async.py index a8ae1bb142..538baf9a19 100644 --- a/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_sync.py b/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_sync.py index 366aced80f..6e56386897 100644 --- a/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_prediction_service_raw_predict_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_async.py index 0937039490..c0ddf4767f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_sync.py index e876cd5e12..03e01539d5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_create_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_async.py index 3fa819c307..8e48f9c822 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_sync.py index 06c28a330a..182414917c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_delete_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_async.py index 31bb980a79..d12fc20c5d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_sync.py index 4c26bbf7ee..f52514cae4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_get_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_async.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_async.py index 5ab5a5603a..2014fe3512 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_sync.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_sync.py index 1af395928c..b18ac3787f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_list_specialist_pools_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_async.py index dd3376c3ef..972f1c7da1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_sync.py index 0e07aeb9b5..70d6ae50f7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_specialist_pool_service_update_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py index e310347c19..aef689f720 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py index dd62c05d90..bf76b440dc 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py index 6926d5db5e..b3fe4f6227 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py index 3606a481e9..ae160d6eed 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py index 7cd57a422b..9f85d0456e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py index 10fa3dc181..fe45237f55 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_async.py index 5bdcc31965..1097dcc1c0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_async.py index df1f3602be..731bfeb2d3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_sync.py index 322b92e827..51724192f7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_async.py index 066a569916..17a99bd8e1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_sync.py index 7c0f9aeef6..482f7c78b0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_sync.py index 75752bd56f..a347e12c1b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_async.py index d1612f73a6..0be00e823e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_sync.py index 2a3d523af4..335113104a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_create_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_async.py index 204c031a79..a895b4bbd8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_async.py index 61897ccde5..9b8643e67e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py index 6dcd2b8159..a8b1691240 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_async.py index 7a88fa7d83..616043f380 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_sync.py index 10c8f1922a..de92373727 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_sync.py index 2d072138e5..1f588e3df2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_async.py index 722bea96c4..8514ece02c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py index e63e1f7da4..d5e3e9178f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py index 59b1b05167..0ea8c7323c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py index 73564e93b0..cf489421f9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_async.py index a9be3d39bf..b89fa8b20c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_async.py index 31e431d70f..8e461a8f18 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_sync.py index 1eb6604972..e5dc96a070 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_async.py index bbb9bc7636..9408116688 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_sync.py index 1f8f7b483e..91326bee02 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_sync.py index 1a53c0bd55..89b49f12ec 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_async.py index 24610969c8..a9b20ae356 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_sync.py index 8ceb19defe..ec18772ab9 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_get_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_async.py index cc7fd1c99e..9d6293333c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_sync.py index c46afe4f62..705487ad56 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_experiments_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_async.py index e457a431a6..78f0664ce2 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_sync.py index 499a0d13c4..a242e52c47 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_runs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_async.py index adc1a684c2..4226d6bdd6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_sync.py index 135b939cec..f87d50ada0 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_async.py index a91c68df21..1bed2f8eb1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_sync.py index 441d10d9d6..ad292e4f2d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_list_tensorboards_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_async.py index 059b96ec05..4adcc06a2b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py index 7da12eae2f..4cddb8dbb5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py index 2c04700e01..dff9aaa2c1 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py index 5f0301830c..2149482845 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_async.py index 7fea08a261..44fdff301b 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_sync.py index 1abe9706a1..a35208aedd 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_read_tensorboard_usage_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_async.py index 386167e23d..5959cc0241 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_async.py index 94e848e479..c9e9b0841a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_sync.py index 63e549b6f1..f2e38abe3a 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_async.py index 8daffb3097..c795d32da6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_sync.py index 77fca91f58..109335f0f7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_sync.py index 5718f09a87..bf56f5bd31 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_async.py index 4d16ed7d37..7959911420 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_sync.py index e0e12771f2..a1a6106b8c 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_update_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py index b7a99a71bc..2ad7c1fd0f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py index 6c68e53b87..65f8256c30 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_async.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_async.py index e7fbaeffb3..26c82bd825 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_sync.py b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_sync.py index e7efdb28d6..b10866f1de 100644 --- a/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_tensorboard_service_write_tensorboard_run_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_async.py index db0f511da5..5d254cb428 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_sync.py index 05c7a43b1e..95a6393506 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_add_trial_measurement_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_async.py index 09cbf17c97..d6ccf3e933 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_sync.py index 7643aefb57..9835c2839f 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_check_trial_early_stopping_state_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_async.py index 13da201f23..eaac893b4e 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_sync.py index aa03054ef7..1fe538c6b4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_complete_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_async.py index 333e843aaa..f5bd9aadf8 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_sync.py index a58b88fc93..3952fd7873 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_async.py index 6aa6fda423..7cd8ce67bd 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_sync.py index ba7003380e..1ba8395bca 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_create_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_async.py index d4d6231645..7f02eb0cf7 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_sync.py index 95ce3fa50a..97d6c93edb 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_async.py index f7e4899eb8..9e32b9704d 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_sync.py index e54be10aa2..3be641bcc5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_delete_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_async.py index ac45b5bf11..a92616bf30 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_sync.py index 9ce2d84efc..ab0fe15bc5 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_async.py index c8cdca0d32..bba9b07846 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_sync.py index d78245aa1d..b85ba242d6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_get_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_async.py index 6ad46f3bae..92d4da4938 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_sync.py index cad411968c..8de70c9874 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_optimal_trials_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_async.py index 83dc86242e..f58d3056a3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_sync.py index 4f877f2c8e..1173c5b0d3 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_studies_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_async.py index e6178bd886..51f03ea897 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_sync.py index 7bbd0efe00..bb529bef51 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_list_trials_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_async.py index bcd2bf0818..eae6d5e787 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_sync.py index e44ca9a15f..be42494858 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_lookup_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_async.py index bb0c18876e..45f2b3fc87 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_sync.py index 88b4b1a300..03db0b69a4 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_stop_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_async.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_async.py index 0e8abb86cc..7d6cf266f6 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_async.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_sync.py b/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_sync.py index b3926815a3..05c4744cdf 100644 --- a/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_sync.py +++ b/samples/generated_samples/aiplatform_v1_generated_vizier_service_suggest_trials_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_async.py index e55940ab1e..9f188eb22f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_sync.py index f4bb18c888..4c0485f0d4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_create_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_async.py index 6e11508b8a..4166ee2fbb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_sync.py index 1d238ccdf6..a5f13e3b96 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_async.py new file mode 100644 index 0000000000..7b7be63da7 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_async.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 DeleteSavedQuery +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_DatasetService_DeleteSavedQuery_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 aiplatform_v1beta1 + + +async def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1beta1.DatasetServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_DatasetService_DeleteSavedQuery_async] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_sync.py new file mode 100644 index 0000000000..a824a49150 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_delete_saved_query_sync.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 DeleteSavedQuery +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_DatasetService_DeleteSavedQuery_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 aiplatform_v1beta1 + + +def sample_delete_saved_query(): + # Create a client + client = aiplatform_v1beta1.DatasetServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeleteSavedQueryRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_saved_query(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_DatasetService_DeleteSavedQuery_sync] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_async.py index 6cb90de97e..f31efd7ee1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_sync.py index 5fea492c82..4a3986ba40 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_export_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_async.py index abbb2a88ac..4241c61074 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_sync.py index 4df9052b68..51ae9b58db 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_annotation_spec_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_async.py index 3b0bbc1ded..8d8b695617 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_sync.py index 853545a53c..eb42ff2833 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_get_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_async.py index 042cbd1f4e..54d36d356c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_sync.py index ff288e6560..f6abf3c272 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_import_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_async.py index 06429ec0f3..f4c44cf936 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_sync.py index 8514b4221e..910009ce40 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_annotations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_async.py index 5d9002b7fb..9fb1adcb6d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_sync.py index c0e2bf7d3e..cd81d42f35 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_data_items_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_async.py index dce72ca725..b32e3c1cf3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_sync.py index 50d9fc57f0..9a0efc3b6e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_datasets_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_async.py index 0af3166f7b..1136cd91ef 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_sync.py index ba808970ae..a79451b1f5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_list_saved_queries_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_async.py index e0af240c8a..aa33963744 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_sync.py index 6b458c253e..55f785cd40 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_search_data_items_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_async.py index dc901a9ba5..437d8653e4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_sync.py index 6dd3ad3ce1..6f5aa33792 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_dataset_service_update_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_async.py index c5da6a7939..df0d0a0da8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_sync.py index 49dc0459db..1645cf2a1d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_create_deployment_resource_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_async.py index 7b4858babf..3111d3cedf 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_sync.py index 869d55c75a..20eea1890e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_delete_deployment_resource_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_async.py index e3dad995ea..cb163f3341 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_sync.py index aec0844ba8..7a4ab9c158 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_get_deployment_resource_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_async.py index d6f276dbad..0bcb5c6b2a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_sync.py index 56cd06f34d..b3c973770c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_list_deployment_resource_pools_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_async.py index cef4e41e89..f8ca8568be 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_sync.py index 7e90c44819..ecf08eaf7d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_deployment_resource_pool_service_query_deployed_models_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_async.py index 58f13db0eb..f2f6cca1fc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_sync.py index f7fc45c263..d707d7eca7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_create_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_async.py index 010bda8d33..f6f37ee381 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_sync.py index c5fe532588..93e8bfbae2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_delete_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_async.py index 8cd61325a5..97662eba2a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_sync.py index 66ae84c0f7..60e0a4ea3c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_deploy_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_async.py index 770b59a95f..777224d430 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_sync.py index 67beeb345a..845aa6c9e5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_get_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_async.py index 49684215a9..ae389d5f80 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_sync.py index 0a619ae4ca..a402db3736 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_list_endpoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_async.py index 7ff9ff385b..d7d2fc5842 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_sync.py index de5baff8c0..5cc6d10665 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_mutate_deployed_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_async.py index 123e9a5b4c..736f67c2ac 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_sync.py index eb53cf7a00..09012b14fd 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_undeploy_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_async.py index c51c131576..e03c49f74c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_sync.py index 57007f20e5..6e461554e7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_endpoint_service_update_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_async.py index ff78499ae5..ef0d7f78fa 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_sync.py index 85cdf27f4e..8907b87869 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_read_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py index 7f2522f0c6..e6a6a3434d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py index 1e13c7519a..bd895a40e1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_streaming_read_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_async.py index a75d89dd9d..577196a562 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_sync.py index 6e222c5ad1..016fef14eb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_online_serving_service_write_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_async.py index e27e6ff55c..045e676d61 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_sync.py index e0179730a4..c3ef9088b4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_create_features_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_async.py index 9896872aa5..530bc3c65f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_sync.py index 6715383fe7..f69da12fac 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_batch_read_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_async.py index be48457891..85fde1cad7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_sync.py index e76e790e5e..fdbb72c3e7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_async.py index 1e14e471bb..dd83289e9f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_sync.py index 3da7d63761..f64280b6d1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_async.py index ead2144c2b..ce7a0b7a22 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_sync.py index dc713eb52d..9ed2c9c4a2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_create_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_async.py index e5e8acc49a..ed26ad549d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_sync.py index 8b31b88160..9f3fea8116 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_async.py index f2fdd723f2..e2771654bc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_sync.py index c41948b5de..bb8b9b8b44 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_async.py index f512637777..bde1fedaca 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_sync.py index 28494e2454..a6b26217f3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_async.py index 9d3961b3dd..adcdf3ea79 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_sync.py index f063484e87..d9d97e9b03 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_delete_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_async.py index f87a0b1be8..27cf206b3d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_sync.py index c0adfecda8..ea18277dfd 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_export_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_async.py index f8ce99d220..df99779282 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_sync.py index fba2167447..262d8d350b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_async.py index ca96b177bb..b2da073168 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_sync.py index edb259dae6..2063c39efe 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_async.py index 0fed2afcf9..4d9b5e2bc1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_sync.py index 6ea6b8e760..b656cbb1ed 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_get_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_async.py index ff2bbc8669..8138a6b586 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_sync.py index 9877917260..f9871064eb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_import_feature_values_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_async.py index 2eb8ced046..e8729a335c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_sync.py index f87ef8fe1d..f03303171b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_entity_types_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_async.py index 0415bea309..e88f6eb3aa 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_sync.py index 039309c91f..346b32a1e0 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_features_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_async.py index 03e2b09960..cbfd5ca9dc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_sync.py index 8ac44e0816..67c910fef6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_list_featurestores_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_async.py index 5180c07f77..17d2640b9d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_sync.py index d4172a3a98..3f7f548973 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_search_features_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_async.py index 02d0ce86d1..9b79c6483c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_sync.py index 0596a85eaa..c79ef4e55f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_entity_type_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_async.py index 8ce4fd90db..ff37a1df07 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_sync.py index 6b89006626..9e169ffe33 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_feature_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_async.py index 30d19d10a4..9afb2e1c02 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_sync.py index 2038147872..01cbb0f7ca 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_featurestore_service_update_featurestore_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_async.py index a5b9b8e820..e172f9658f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_sync.py index a65ab68226..53c0d9b3c7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_create_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_async.py index 9bd0f64f54..e361fd4926 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_sync.py index 3845074a71..62482675e4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_delete_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_async.py index 265833bc69..583c7c48a4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_sync.py index 19835e06d5..9c8a95ede8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_deploy_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_async.py index 7ae09de451..e1d4688b4d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_sync.py index 00db01637e..16323b039f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_get_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_async.py index e8cccf5d11..76afce6e1b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_sync.py index a59926b921..e1f3b49c40 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_list_index_endpoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_async.py index db50af1abf..1fe9a05ba9 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_sync.py index 93dc9cafe9..5783d687a2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_mutate_deployed_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_async.py index 6a8963847a..1fdaeb2166 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_sync.py index acf640eec1..807f0af2ee 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_undeploy_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_async.py index 1dee5eb0d5..79aea2af76 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_sync.py index 6a91cc1f36..9e6f74dec8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_endpoint_service_update_index_endpoint_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_async.py index 1f64d5f005..d8d1442f54 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_sync.py index 3e8ad1fac7..76a7aaac40 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_create_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_async.py index ce5115ffad..a4c02c93b6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_sync.py index 95c7d583f1..94c01f3094 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_delete_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_async.py index c8fd880e30..b6a6dc35e6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_sync.py index 7da46bf11b..07c52556a6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_get_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_async.py index b818d16ed9..fa5e2eb776 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_sync.py index c3243da71e..98cde574e7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_list_indexes_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_async.py index 5a47d51b77..d752f4f54d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_sync.py index d6d7050cb2..a77215e702 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_remove_datapoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_async.py index 65a1c5da7c..c4aea8c952 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_sync.py index 691c3d2fd7..64c24a9c2f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_update_index_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_async.py index d6ac795e96..c5f7d6554b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_sync.py index 8689a50f10..4378b911c3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_index_service_upsert_datapoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_async.py index d5c42cdcdd..203e5f7cba 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_sync.py index da27b2c835..e41a618aee 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_async.py index 9488d0ac7e..bb17b0ed1e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_sync.py index f3f39a7006..42d4208d7a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_async.py index cd10f6aab6..b002eb8856 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_sync.py index 23802a45a5..4c08d02a29 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_async.py index 3d7d8fcd9c..85a9e539ac 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py index 5d7842d646..b227db6262 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_async.py index d35c1b4996..0f09a21458 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_sync.py index 4560576004..d661a9d88d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_cancel_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_async.py index 6f5bcdc403..3b274355bb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_sync.py index d9e459b1b0..fea0a20eb4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_async.py index c918414a04..6f4e72aeba 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_sync.py index e8ad25117f..9acbec80c0 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_async.py index 7447e53677..38c328e66d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_sync.py index d364ecc023..09a98dc130 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_async.py index c92ac7cdab..187167f70d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_sync.py index 49e8a3c678..070c5fff79 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_async.py index 1f5fe903a7..83de6c8662 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_sync.py index 8b23ed7c45..11ae3c5e66 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_async.py index 3019f70878..c9ffe565dd 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_sync.py index 58b2fa6c5f..7337ef1507 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_create_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_async.py index c78619df00..2dcff84460 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_sync.py index a572fbddf7..4820be7250 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_async.py index 0b3ac0d418..9536b5ef4a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_sync.py index ec6f56faf5..ef0eeb1f2e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_async.py index af405c8116..8648f26a91 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_sync.py index 71d60f49ee..7bbf845088 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_async.py index c6eb963e72..60f1998d56 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_sync.py index 4687b759e7..31028ccb9e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_async.py index 81567d77e5..85acdc0bff 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_sync.py index f077dda684..771061c69b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_async.py index c7274dfdd1..a48984aca4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_sync.py index 4ba8a8fa10..f5dbef3c4d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_delete_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_async.py index be157a1be8..de99d8d300 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_sync.py index 81693724e3..aa49be25d5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_batch_prediction_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_async.py index 48eb4ae961..75cade04bc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_sync.py index b9d0c86d10..d7cac068ae 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_custom_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_async.py index a40b00013a..e37559d10e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_sync.py index 4b3c97e573..0402a5f79e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_data_labeling_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_async.py index f467550100..74ab16e42e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_sync.py index fd6fe39ba7..7ab0d58978 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_hyperparameter_tuning_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_async.py index c43f47d6a4..0fc74e7eda 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_sync.py index 22ffa48733..37a2958b51 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_async.py index 8441b8a031..918023ccdc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_sync.py index d85c34be45..8c2e72bf2e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_async.py index b790b36408..a82a1e3046 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_sync.py index 90bce8eadc..2df266ce2e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_get_nas_trial_detail_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_async.py index 09302aa832..227788134e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_sync.py index 61c12afa67..c7c5a8803a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_batch_prediction_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_async.py index b51c61981b..dc7df69167 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_sync.py index 8155aeab75..c1f6cac4db 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_custom_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_async.py index 9ca4bd1e61..923801a5f2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_sync.py index bf99cfa065..5871a5bb75 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_data_labeling_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_async.py index b938a662a9..de20033b9d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py index ab553ffa6c..5a2ae481e3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_hyperparameter_tuning_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_async.py index c659474aa6..3d116b25dd 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py index d702fef23c..32091df93f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_model_deployment_monitoring_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_async.py index 888e2fe099..ae0d7b54ff 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_sync.py index 2513c03962..7fae801941 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_async.py index 787034a755..78227bf7d8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_sync.py index 2ba093dac0..f4a59a5d04 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_list_nas_trial_details_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_async.py index 79e037b5d1..d57475a7ba 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_sync.py index 3d10e991da..ed9a8d1674 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_pause_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_async.py index 416603c225..39f901254f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_sync.py index 2b7032ba03..ac412da141 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_resume_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py index e03f583491..d854c28f87 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py index 223180fd32..1159798361 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_search_model_deployment_monitoring_stats_anomalies_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_async.py index 2135759915..c5f31cf809 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_sync.py index b78bee268f..5651e7bcd3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_job_service_update_model_deployment_monitoring_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_async.py index 6aed7b4a3a..f526c84cd5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_sync.py index 15d6f6676f..8d6a4cf3ac 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_find_neighbors_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_async.py index a06f880caa..f711fae67e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_sync.py index 9886783f8c..434fae8dd7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_match_service_read_index_datapoints_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_async.py index 6b38ade4e4..7e1e78c9e8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_sync.py index a27b7a3362..ed513f8186 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_artifacts_and_executions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_async.py index ea10c62000..7505d68cae 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_sync.py index b630ca3d13..f5d329f7f2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_context_children_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_async.py index 3c6de6c1d8..ff8603b8c2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_sync.py index b1090bc6b9..4e4011df62 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_add_execution_events_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_async.py index 1e87a1c3e9..23ee2fd749 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_sync.py index 87630c50f7..8285341284 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_async.py index aa15a8229d..c39fc56d91 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_sync.py index 5fc9c9a378..922eb58c24 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_async.py index 933762ebd9..8923a8846a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_sync.py index fc6bc04553..3eea809ab5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_async.py index 35c71afd4f..f6f815af06 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_sync.py index 132a3da5d3..25cdac8a1e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_schema_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_async.py index 8d3b3d8b96..8a0b8a1b67 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_sync.py index 0734190bde..f7e954ed79 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_create_metadata_store_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_async.py index da357a4f85..7967d75c2c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_sync.py index 88e916f23b..118573f021 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_async.py index cfad4370fb..1122a32862 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_sync.py index a0ea9ddbad..f31028696f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_async.py index d0c466e6b7..5ac5e6678f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_sync.py index 8917ce87d1..5fc03fa340 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_async.py index 2a041e1615..83e38cf8d0 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_sync.py index 8309294959..fac2bba488 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_delete_metadata_store_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_async.py index 894e29599d..94ad26fdac 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_sync.py index 6db269e16c..84fbdf11f6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_async.py index 88e2b22d99..361ba05bff 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_sync.py index dc9554f9e2..0104906d94 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_async.py index 2c6e33f8e9..f210bf0b86 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_sync.py index 60b8e3df57..0d8bec1385 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_async.py index 7c8bc2817d..5aaea02568 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_sync.py index c9886412a8..294f12846f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_schema_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_async.py index 2d61453f3f..6db93d1591 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_sync.py index 8f69accd95..b7c71a228c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_get_metadata_store_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_async.py index 6a1bc1409d..af2ad5c696 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_sync.py index cc214b7df8..d1673cbcb4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_artifacts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_async.py index 2c51a86f21..b7fe9f77a2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_sync.py index 873a959fa3..fadcad459b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_contexts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_async.py index ea7fc56900..8fb85bad11 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_sync.py index ed1c00b933..0db7678f6c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_executions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_async.py index 696e42ff19..820bda9ec8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_sync.py index 0a206296f8..6a9f0a2883 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_schemas_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_async.py index eab53430dc..565a7b8512 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_sync.py index b389130dc2..871531984b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_list_metadata_stores_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_async.py index ad53111aac..52e3d65b2c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_sync.py index c09fe7bd7e..e451b8fdab 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_artifacts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_async.py index b298672126..21b849f6f1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_sync.py index 0d89a6736a..f9d09765a0 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_contexts_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_async.py index 60771d89bc..981b019a91 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_sync.py index c3003e656b..f98a2d3f26 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_purge_executions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_async.py index 6e00891249..b207c9e240 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py index 1ed49c57fa..43efa43a1b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_artifact_lineage_subgraph_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_async.py index 8ca26c5826..2818acb977 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_sync.py index caf0e4be79..9c32b8fcc5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_context_lineage_subgraph_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_async.py index a213056d49..68c72638ea 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py index e4d0189f1d..bf734b10a7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_query_execution_inputs_and_outputs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_async.py index 064b4512f2..49869ffc00 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_sync.py index cb072aad6f..dc3778847e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_remove_context_children_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_async.py index 51c8bf9dca..73f976d0fc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_sync.py index 32112c20be..ecfdf9432a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_artifact_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_async.py index acaf83652f..5c9853f44f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_sync.py index 9d3948100d..ecdce25ced 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_context_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_async.py index a2629d3045..2994d6966a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_sync.py index db108d6d27..1ba1890913 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_metadata_service_update_execution_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_async.py index d11aca8b9c..cf740a7249 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_sync.py index ddf9ce8bfb..99aa80851a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_batch_migrate_resources_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_async.py index 8480172d60..bc4c78910c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_sync.py index 03dc126813..cb1dab0a5f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_migration_service_search_migratable_resources_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_async.py index f0badaf688..01ac556ed6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_sync.py index 13163228ed..732cbe6c99 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_garden_service_get_publisher_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_async.py index 5723afdbe4..0f26e4c888 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_sync.py index 0d4e00410b..e0d9cc0ab6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_evaluated_annotations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_async.py index 74d0e3144c..08321f5a82 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_sync.py index 4fbbabf70d..79c6dbd003 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_batch_import_model_evaluation_slices_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_async.py index 764ad0ff68..84ae561d13 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_sync.py index bcb25c9442..da25d09998 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_copy_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_async.py index fcda77c104..5968b56a2b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_sync.py index 258800dca3..6fb2cf8080 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_async.py index 75275e3ae3..aefe6de628 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_sync.py index 1a682dddc3..b8e78a183d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_delete_model_version_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_async.py index b92e76cc05..c40d3f54e4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_sync.py index 086a25791f..42e8a9fd88 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_export_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_async.py index bf825285e0..be64e0872b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_async.py index 8ad58a1658..d61f172490 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_async.py index a1648dd7f6..02d27e641e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_sync.py index 729977eea3..88c27bdbc2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_slice_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_sync.py index 05bc2683de..9de1b448fb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_evaluation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_sync.py index 1728582f97..a43ac1b6c5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_get_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_async.py index 13c9a70049..cd4e781d0b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_sync.py index 7e741f7a8c..2e35fa5604 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_import_model_evaluation_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_async.py index cf04847bc7..b57ee2366e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_sync.py index 56581438dc..59989db56c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluation_slices_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_async.py index e78896e798..64de662c4b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_sync.py index 8c97fdd5d2..3f8dee2c18 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_evaluations_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_async.py index 8cab3574e8..7e2506aad7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_sync.py index e04c1742e1..f2903609e3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_model_versions_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_async.py index 9c4eacdd0a..aba98ee25d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_sync.py index 05e27d99f4..d7fc6e1617 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_list_models_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_async.py index 361b08eb57..a6155a0777 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_sync.py index 03b559e60f..ea2ca0849e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_merge_version_aliases_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_async.py index 63e3ce5a30..78500acb71 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_sync.py index d406c966cd..1ac0be4579 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_explanation_dataset_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_async.py index da4a0a68ce..8726040965 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_sync.py index 219ac3698e..a6a732315a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_update_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_async.py index 3313cedfe1..e063befb37 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_sync.py index 125713eb24..f8e38c6924 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_model_service_upload_model_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_async.py new file mode 100644 index 0000000000..bd9e6addf4 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_async.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 CreatePersistentResource +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_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 aiplatform_v1beta1 + + +async def sample_create_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.CreatePersistentResourceRequest( + parent="parent_value", + persistent_resource_id="persistent_resource_id_value", + ) + + # Make the request + operation = client.create_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_async] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_sync.py new file mode 100644 index 0000000000..abd0a9ccaa --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_sync.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 CreatePersistentResource +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_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 aiplatform_v1beta1 + + +def sample_create_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.CreatePersistentResourceRequest( + parent="parent_value", + persistent_resource_id="persistent_resource_id_value", + ) + + # Make the request + operation = client.create_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_sync] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_async.py new file mode 100644 index 0000000000..547cb032e7 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_async.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 DeletePersistentResource +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_DeletePersistentResource_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 aiplatform_v1beta1 + + +async def sample_delete_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeletePersistentResourceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = (await operation).result() + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_DeletePersistentResource_async] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_sync.py new file mode 100644 index 0000000000..3a03f7a6b6 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_sync.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 DeletePersistentResource +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_DeletePersistentResource_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 aiplatform_v1beta1 + + +def sample_delete_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.DeletePersistentResourceRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_persistent_resource(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_DeletePersistentResource_sync] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_async.py new file mode 100644 index 0000000000..3b005a590c --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_async.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 GetPersistentResource +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_GetPersistentResource_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 aiplatform_v1beta1 + + +async def sample_get_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.GetPersistentResourceRequest( + name="name_value", + ) + + # Make the request + response = await client.get_persistent_resource(request=request) + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_GetPersistentResource_async] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_sync.py new file mode 100644 index 0000000000..30f6617c2d --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 GetPersistentResource +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_GetPersistentResource_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 aiplatform_v1beta1 + + +def sample_get_persistent_resource(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.GetPersistentResourceRequest( + name="name_value", + ) + + # Make the request + response = client.get_persistent_resource(request=request) + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_GetPersistentResource_sync] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_async.py new file mode 100644 index 0000000000..f0370c36e5 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_async.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 ListPersistentResources +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_ListPersistentResources_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 aiplatform_v1beta1 + + +async def sample_list_persistent_resources(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ListPersistentResourcesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_persistent_resources(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_ListPersistentResources_async] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_sync.py new file mode 100644 index 0000000000..a258deb6c8 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_sync.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 ListPersistentResources +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_PersistentResourceService_ListPersistentResources_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 aiplatform_v1beta1 + + +def sample_list_persistent_resources(): + # Create a client + client = aiplatform_v1beta1.PersistentResourceServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ListPersistentResourcesRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_persistent_resources(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END aiplatform_v1beta1_generated_PersistentResourceService_ListPersistentResources_sync] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py index ccb38eaa7e..a95a019269 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py index fe9e1561fd..fb83845b17 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py index 7e96c1881e..5f3e7ec2ae 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py index de9a1d6863..fe8ce04d22 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py index d08fd92108..e3517168f9 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py index 63d1aa38fb..46a8c0b489 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py index 16bea0640f..6797e05c09 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py index b8e136041c..3444a6fcfe 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py index 01118b1814..76b9ff65e0 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py index e65ad669bc..d44bb572fc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py index 0b4b020803..9e4d499e17 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py index be0518ab58..fd7cdf0adb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py index 7119d6836b..107f67fe6c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_sync.py index d9fee85787..5909169aa1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_async.py index c06d64547b..66ad735e40 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_sync.py index 1c6c6c07f6..d3fc440162 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_get_training_pipeline_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_async.py index 31e8112786..bd69ef3ff0 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_sync.py index 330a6a8f99..7290c8682f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_pipeline_jobs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_async.py index eb0a8bc759..6a89c613bf 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_sync.py index 981b8b4ff3..f7f80f09c2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_pipeline_service_list_training_pipelines_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_async.py index a026654580..b754148b87 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_sync.py index 21e0e58f61..4e785f6299 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_explain_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_async.py index 011ae4d6cf..f63cb164d2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_sync.py index 451e990e10..4db9c90f74 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_predict_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_async.py index 3790f52935..ba628afcd7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_sync.py index ac2825f9e8..3872ae0aa3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_prediction_service_raw_predict_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_async.py index 9f5edb9fa8..a4f8e743c9 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_sync.py index 116a6a29d0..5444c95d7c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_create_schedule_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_async.py index 1e19227929..c5bcf2d415 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_sync.py index d02543370c..2723dcff4d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_delete_schedule_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_async.py index 7f3406497b..995e5a1169 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_sync.py index e3f294378c..e21268f52b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_get_schedule_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_async.py index c5a3e694c9..7871bbe717 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_sync.py index 9ed71e64e3..18cfb6fc96 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_list_schedules_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_async.py index 74906cb720..d51116c0e5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_sync.py index e9584707b9..4ba3faf86c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_pause_schedule_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_async.py index 5def3ffde8..b41199ffa1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_sync.py index 21543de509..14a2a1653f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_resume_schedule_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_async.py index 57742a33cc..a8ab15aa5a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_sync.py index 1de83791af..f8e49b847b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_schedule_service_update_schedule_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_async.py index 29159b3f3f..5dbcf0c8e1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_sync.py index 53c14b0b91..017980d994 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_create_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_async.py index 8fc45113da..7746d5a7d1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_sync.py index 565437d4ea..5fe0338cbc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_delete_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_async.py index 7084801a30..398268f93a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_sync.py index dabfd4b9f0..ce5edfc89c 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_get_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_async.py index 3655f8916e..e04f146faa 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_sync.py index 5eb2e66498..e51c096985 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_list_specialist_pools_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_async.py index 3bb21b123b..c69aa288bc 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_sync.py index a006048d15..f5e5653874 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_specialist_pool_service_update_specialist_pool_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py index dd86846965..2f8b6ce19e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py index d85472e6bd..6249b29693 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py index 00958331f7..60b986ee07 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py index 7aa4e63eaa..8b2a0b793a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py index 4522a928c8..d21fcef994 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py index 5e4637b52f..47afa25521 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py index 8cd2bb0a00..9e616945f7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py index 80dec776eb..fc92c45fd1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py index 57c08e34eb..2805b7101e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py index c3b074397d..d133569a02 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py index 9671fb836c..069c400897 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py index a747831c9d..574aeb0aad 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py index df13993b70..9084804861 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py index 0f03240ddb..cb0afdf9dd 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py index 636e23fd50..edb6327aa9 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py index a229dcf79a..cd83f449e9 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py index 4cacaa60ea..d12d25e237 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py index 54ff3a986e..aae6286a56 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py index c5e7b19913..9533ac4f35 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py index c80060133e..172ed51866 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py index 17a3eeacad..ca856de440 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py index 09f813c2a0..3bd33e4fc8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py index ee4569ad8b..60bd6b0325 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py index 27a1040ef3..e0826477fb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py index 793f7f1d78..15676c9f15 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py index 09abb2467d..c804045af3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py index 4ca601ce63..83c0fd2deb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py index b11d4f64ad..301f913cd7 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py index d807728e3e..56a9fa430a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py index 446553cfa4..a9941a0493 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py index 1f136607e2..de49b17af1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py index 70c975e3ea..c8d2303ea2 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py index 0a36460e16..ce4d6ad126 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py index 0dc6221c4f..08a3a8c223 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py index ab36e97829..9bd3b64104 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py index 0d335274da..1810e2fd6f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py index 3993a556cd..0277467b45 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py index a57044e875..4d0e23dc75 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py index 4565ed87af..07eed33a7a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py index bde8dc60ee..5bf6e410d8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py index 04205676ce..4653de7472 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py index 6bd44e5412..d521b77272 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_async.py new file mode 100644 index 0000000000..09b67e09ac --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_async.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 ReadTensorboardSize +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardSize_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 aiplatform_v1beta1 + + +async def sample_read_tensorboard_size(): + # Create a client + client = aiplatform_v1beta1.TensorboardServiceAsyncClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ReadTensorboardSizeRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = await client.read_tensorboard_size(request=request) + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardSize_async] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_sync.py new file mode 100644 index 0000000000..cef3747603 --- /dev/null +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_sync.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 ReadTensorboardSize +# 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-aiplatform + + +# [START aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardSize_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 aiplatform_v1beta1 + + +def sample_read_tensorboard_size(): + # Create a client + client = aiplatform_v1beta1.TensorboardServiceClient() + + # Initialize request argument(s) + request = aiplatform_v1beta1.ReadTensorboardSizeRequest( + tensorboard="tensorboard_value", + ) + + # Make the request + response = client.read_tensorboard_size(request=request) + + # Handle the response + print(response) + +# [END aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardSize_sync] diff --git a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py index fc97b21c34..8361a82e85 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py index 9fbf5bba28..42b8e2c31b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_time_series_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_async.py index 8b6fb8a4ca..3dd471558e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_sync.py index 87d4b54665..094021ce21 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_usage_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_async.py index 15b12f0a20..d1ca1409bd 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_async.py index 415fe13a27..0d0a80f1b9 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_sync.py index e53dafafcc..a51394fbc5 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_experiment_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_async.py index a318225e16..1f0b64164e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_sync.py index c3eca2f6f0..d40ef18953 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_run_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_sync.py index db4859f9fa..f1587d9639 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_async.py index 31fe3b0d2e..40d8021d64 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_sync.py index b0d68109d9..d9c915f3d6 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_update_tensorboard_time_series_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py index 2bb0d21ab3..4e62b624ce 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py index 515c4a107c..9d88b4a10b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_experiment_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_async.py index 5d80a0066c..91bbdb8be8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_sync.py index b9f5317347..efe568e932 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_tensorboard_service_write_tensorboard_run_data_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_async.py index 2f0a46f420..6daeb51f42 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_sync.py index 5f99f0ea97..45a0e55a2b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_add_trial_measurement_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_async.py index 87b1642e11..b28fd829a4 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_sync.py index ca53bad33c..ccea8b3fe8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_check_trial_early_stopping_state_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_async.py index a287d71370..00343c14a1 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_sync.py index cd51e8782f..d30f05fdf3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_complete_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_async.py index 1aabe663f7..c373377a6b 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_sync.py index 0006548891..fcae956693 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_async.py index e84b61d198..d057a12bb8 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_sync.py index bece4b19c4..8214d7c53d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_create_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_async.py index 4c034f06c4..ea76050178 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_sync.py index 16e55c7fc9..354f419e29 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_async.py index 430a17e2ad..abd2c68fc3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_sync.py index 95cbab5cdb..825174fca9 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_delete_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_async.py index 899eb0a98d..6da3e95c51 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_sync.py index 2342cccb31..a71063de5e 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_async.py index 0a3d6a804c..69d89b2420 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_sync.py index 9d697a89c4..780a269e53 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_get_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_async.py index 3402d74f13..87abf7d962 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_sync.py index ea190408f3..cde41b085f 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_optimal_trials_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_async.py index f5d53cea3f..9711b31f04 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_sync.py index 47c4033475..0ff2178cfe 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_studies_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_async.py index c3cb20b648..b7b1fd86fe 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_sync.py index 02a10b3476..381835fbfb 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_list_trials_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_async.py index bab1585f40..0aaea9d0f3 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_sync.py index 0664e5d627..eedf92f0fa 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_lookup_study_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_async.py index c15f38b58b..1d1de0b508 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_sync.py index c1ecc8e3f6..86f7c8ca4d 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_stop_trial_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_async.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_async.py index cdb94434a6..4a44496bf0 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_async.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_async.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_sync.py b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_sync.py index ec02eaad4c..9f10a5d86a 100644 --- a/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_sync.py +++ b/samples/generated_samples/aiplatform_v1beta1_generated_vizier_service_suggest_trials_sync.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json index 96f4ef43a1..f690028d51 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1.json @@ -341,6 +341,167 @@ ], "title": "aiplatform_v1_generated_dataset_service_delete_dataset_sync.py" }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1.DatasetServiceAsyncClient", + "shortName": "DatasetServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1.DatasetServiceAsyncClient.delete_saved_query", + "method": { + "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery", + "service": { + "fullName": "google.cloud.aiplatform.v1.DatasetService", + "shortName": "DatasetService" + }, + "shortName": "DeleteSavedQuery" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1.types.DeleteSavedQueryRequest" + }, + { + "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.api_core.operation_async.AsyncOperation", + "shortName": "delete_saved_query" + }, + "description": "Sample for DeleteSavedQuery", + "file": "aiplatform_v1_generated_dataset_service_delete_saved_query_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1_generated_DatasetService_DeleteSavedQuery_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": "aiplatform_v1_generated_dataset_service_delete_saved_query_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1.DatasetServiceClient", + "shortName": "DatasetServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1.DatasetServiceClient.delete_saved_query", + "method": { + "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery", + "service": { + "fullName": "google.cloud.aiplatform.v1.DatasetService", + "shortName": "DatasetService" + }, + "shortName": "DeleteSavedQuery" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1.types.DeleteSavedQueryRequest" + }, + { + "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.api_core.operation.Operation", + "shortName": "delete_saved_query" + }, + "description": "Sample for DeleteSavedQuery", + "file": "aiplatform_v1_generated_dataset_service_delete_saved_query_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1_generated_DatasetService_DeleteSavedQuery_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": "aiplatform_v1_generated_dataset_service_delete_saved_query_sync.py" + }, { "canonical": true, "clientMethod": { @@ -23971,6 +24132,167 @@ ], "title": "aiplatform_v1_generated_model_service_merge_version_aliases_sync.py" }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1.ModelServiceAsyncClient", + "shortName": "ModelServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1.ModelServiceAsyncClient.update_explanation_dataset", + "method": { + "fullName": "google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset", + "service": { + "fullName": "google.cloud.aiplatform.v1.ModelService", + "shortName": "ModelService" + }, + "shortName": "UpdateExplanationDataset" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1.types.UpdateExplanationDatasetRequest" + }, + { + "name": "model", + "type": "str" + }, + { + "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": "update_explanation_dataset" + }, + "description": "Sample for UpdateExplanationDataset", + "file": "aiplatform_v1_generated_model_service_update_explanation_dataset_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1_generated_ModelService_UpdateExplanationDataset_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": "aiplatform_v1_generated_model_service_update_explanation_dataset_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1.ModelServiceClient", + "shortName": "ModelServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1.ModelServiceClient.update_explanation_dataset", + "method": { + "fullName": "google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset", + "service": { + "fullName": "google.cloud.aiplatform.v1.ModelService", + "shortName": "ModelService" + }, + "shortName": "UpdateExplanationDataset" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1.types.UpdateExplanationDatasetRequest" + }, + { + "name": "model", + "type": "str" + }, + { + "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": "update_explanation_dataset" + }, + "description": "Sample for UpdateExplanationDataset", + "file": "aiplatform_v1_generated_model_service_update_explanation_dataset_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1_generated_ModelService_UpdateExplanationDataset_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": "aiplatform_v1_generated_model_service_update_explanation_dataset_sync.py" + }, { "canonical": true, "clientMethod": { diff --git a/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json index 92af63f24e..4acd88824f 100644 --- a/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ b/samples/generated_samples/snippet_metadata_google.cloud.aiplatform.v1beta1.json @@ -341,6 +341,167 @@ ], "title": "aiplatform_v1beta1_generated_dataset_service_delete_dataset_sync.py" }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.DatasetServiceAsyncClient", + "shortName": "DatasetServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.DatasetServiceAsyncClient.delete_saved_query", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteSavedQuery", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.DatasetService", + "shortName": "DatasetService" + }, + "shortName": "DeleteSavedQuery" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.DeleteSavedQueryRequest" + }, + { + "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.api_core.operation_async.AsyncOperation", + "shortName": "delete_saved_query" + }, + "description": "Sample for DeleteSavedQuery", + "file": "aiplatform_v1beta1_generated_dataset_service_delete_saved_query_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_DatasetService_DeleteSavedQuery_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": "aiplatform_v1beta1_generated_dataset_service_delete_saved_query_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.DatasetServiceClient", + "shortName": "DatasetServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.DatasetServiceClient.delete_saved_query", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteSavedQuery", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.DatasetService", + "shortName": "DatasetService" + }, + "shortName": "DeleteSavedQuery" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.DeleteSavedQueryRequest" + }, + { + "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.api_core.operation.Operation", + "shortName": "delete_saved_query" + }, + "description": "Sample for DeleteSavedQuery", + "file": "aiplatform_v1beta1_generated_dataset_service_delete_saved_query_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_DatasetService_DeleteSavedQuery_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": "aiplatform_v1beta1_generated_dataset_service_delete_saved_query_sync.py" + }, { "canonical": true, "clientMethod": { @@ -25296,25 +25457,33 @@ "clientMethod": { "async": true, "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", - "shortName": "PipelineServiceAsyncClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient", + "shortName": "PersistentResourceServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.cancel_pipeline_job", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient.create_persistent_resource", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CancelPipelineJob" + "shortName": "CreatePersistentResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CancelPipelineJobRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreatePersistentResourceRequest" }, { - "name": "name", + "name": "parent", + "type": "str" + }, + { + "name": "persistent_resource", + "type": "google.cloud.aiplatform_v1beta1.types.PersistentResource" + }, + { + "name": "persistent_resource_id", "type": "str" }, { @@ -25330,21 +25499,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "shortName": "cancel_pipeline_job" + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_persistent_resource" }, - "description": "Sample for CancelPipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py", + "description": "Sample for CreatePersistentResource", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_async", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_async", "segments": [ { - "end": 49, + "end": 56, "start": 27, "type": "FULL" }, { - "end": 49, + "end": 56, "start": 27, "type": "SHORT" }, @@ -25354,44 +25524,54 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 46, + "end": 53, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 50, + "end": 57, + "start": 54, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_async.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", - "shortName": "PipelineServiceClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient", + "shortName": "PersistentResourceServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.cancel_pipeline_job", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient.create_persistent_resource", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CancelPipelineJob" + "shortName": "CreatePersistentResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CancelPipelineJobRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreatePersistentResourceRequest" }, { - "name": "name", + "name": "parent", + "type": "str" + }, + { + "name": "persistent_resource", + "type": "google.cloud.aiplatform_v1beta1.types.PersistentResource" + }, + { + "name": "persistent_resource_id", "type": "str" }, { @@ -25407,21 +25587,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "shortName": "cancel_pipeline_job" + "resultType": "google.api_core.operation.Operation", + "shortName": "create_persistent_resource" }, - "description": "Sample for CancelPipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py", + "description": "Sample for CreatePersistentResource", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_sync", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_sync", "segments": [ { - "end": 49, + "end": 56, "start": 27, "type": "FULL" }, { - "end": 49, + "end": 56, "start": 27, "type": "SHORT" }, @@ -25431,42 +25612,44 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 45, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "start": 46, + "end": 53, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 50, + "end": 57, + "start": 54, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_create_persistent_resource_sync.py" }, { "canonical": true, "clientMethod": { "async": true, "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", - "shortName": "PipelineServiceAsyncClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient", + "shortName": "PersistentResourceServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.cancel_training_pipeline", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient.delete_persistent_resource", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResource", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CancelTrainingPipeline" + "shortName": "DeletePersistentResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CancelTrainingPipelineRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeletePersistentResourceRequest" }, { "name": "name", @@ -25485,21 +25668,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "shortName": "cancel_training_pipeline" + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "delete_persistent_resource" }, - "description": "Sample for CancelTrainingPipeline", - "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py", + "description": "Sample for DeletePersistentResource", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_async", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_DeletePersistentResource_async", "segments": [ { - "end": 49, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 49, + "end": 55, "start": 27, "type": "SHORT" }, @@ -25514,36 +25698,38 @@ "type": "REQUEST_INITIALIZATION" }, { + "end": 52, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 50, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_async.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", - "shortName": "PipelineServiceClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient", + "shortName": "PersistentResourceServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.cancel_training_pipeline", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient.delete_persistent_resource", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResource", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CancelTrainingPipeline" + "shortName": "DeletePersistentResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CancelTrainingPipelineRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeletePersistentResourceRequest" }, { "name": "name", @@ -25562,21 +25748,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "shortName": "cancel_training_pipeline" + "resultType": "google.api_core.operation.Operation", + "shortName": "delete_persistent_resource" }, - "description": "Sample for CancelTrainingPipeline", - "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py", + "description": "Sample for DeletePersistentResource", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_sync", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_DeletePersistentResource_sync", "segments": [ { - "end": 49, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 49, + "end": 55, "start": 27, "type": "SHORT" }, @@ -25591,48 +25778,42 @@ "type": "REQUEST_INITIALIZATION" }, { + "end": 52, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 50, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_delete_persistent_resource_sync.py" }, { "canonical": true, "clientMethod": { "async": true, "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", - "shortName": "PipelineServiceAsyncClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient", + "shortName": "PersistentResourceServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.create_pipeline_job", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient.get_persistent_resource", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CreatePipelineJob" + "shortName": "GetPersistentResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreatePipelineJobRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetPersistentResourceRequest" }, { - "name": "parent", - "type": "str" - }, - { - "name": "pipeline_job", - "type": "google.cloud.aiplatform_v1beta1.types.PipelineJob" - }, - { - "name": "pipeline_job_id", + "name": "name", "type": "str" }, { @@ -25648,14 +25829,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.PipelineJob", - "shortName": "create_pipeline_job" + "resultType": "google.cloud.aiplatform_v1beta1.types.PersistentResource", + "shortName": "get_persistent_resource" }, - "description": "Sample for CreatePipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py", + "description": "Sample for GetPersistentResource", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_async", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_GetPersistentResource_async", "segments": [ { "end": 51, @@ -25688,39 +25869,31 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_async.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", - "shortName": "PipelineServiceClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient", + "shortName": "PersistentResourceServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.create_pipeline_job", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient.get_persistent_resource", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CreatePipelineJob" + "shortName": "GetPersistentResource" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreatePipelineJobRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetPersistentResourceRequest" }, { - "name": "parent", - "type": "str" - }, - { - "name": "pipeline_job", - "type": "google.cloud.aiplatform_v1beta1.types.PipelineJob" - }, - { - "name": "pipeline_job_id", + "name": "name", "type": "str" }, { @@ -25736,14 +25909,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.PipelineJob", - "shortName": "create_pipeline_job" + "resultType": "google.cloud.aiplatform_v1beta1.types.PersistentResource", + "shortName": "get_persistent_resource" }, - "description": "Sample for CreatePipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py", + "description": "Sample for GetPersistentResource", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_sync", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_GetPersistentResource_sync", "segments": [ { "end": 51, @@ -25776,38 +25949,34 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_get_persistent_resource_sync.py" }, { "canonical": true, "clientMethod": { "async": true, "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", - "shortName": "PipelineServiceAsyncClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient", + "shortName": "PersistentResourceServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.create_training_pipeline", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceAsyncClient.list_persistent_resources", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResources", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CreateTrainingPipeline" + "shortName": "ListPersistentResources" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTrainingPipelineRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesRequest" }, { "name": "parent", "type": "str" }, - { - "name": "training_pipeline", - "type": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -25821,22 +25990,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline", - "shortName": "create_training_pipeline" + "resultType": "google.cloud.aiplatform_v1beta1.services.persistent_resource_service.pagers.ListPersistentResourcesAsyncPager", + "shortName": "list_persistent_resources" }, - "description": "Sample for CreateTrainingPipeline", - "file": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py", + "description": "Sample for ListPersistentResources", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_async", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_ListPersistentResources_async", "segments": [ { - "end": 57, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 57, + "end": 52, "start": 27, "type": "SHORT" }, @@ -25846,52 +26015,48 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 51, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 58, - "start": 55, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_async.py" }, { "canonical": true, "clientMethod": { "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", - "shortName": "PipelineServiceClient" + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient", + "shortName": "PersistentResourceServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.create_training_pipeline", + "fullName": "google.cloud.aiplatform_v1beta1.PersistentResourceServiceClient.list_persistent_resources", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline", + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResources", "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" + "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService", + "shortName": "PersistentResourceService" }, - "shortName": "CreateTrainingPipeline" + "shortName": "ListPersistentResources" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTrainingPipelineRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListPersistentResourcesRequest" }, { "name": "parent", "type": "str" }, - { - "name": "training_pipeline", - "type": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -25905,22 +26070,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline", - "shortName": "create_training_pipeline" + "resultType": "google.cloud.aiplatform_v1beta1.services.persistent_resource_service.pagers.ListPersistentResourcesPager", + "shortName": "list_persistent_resources" }, - "description": "Sample for CreateTrainingPipeline", - "file": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py", + "description": "Sample for ListPersistentResources", + "file": "aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_sync", + "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_ListPersistentResources_sync", "segments": [ { - "end": 57, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 57, + "end": 52, "start": 27, "type": "SHORT" }, @@ -25930,22 +26095,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 51, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 58, - "start": 55, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py" + "title": "aiplatform_v1beta1_generated_persistent_resource_service_list_persistent_resources_sync.py" }, { "canonical": true, @@ -25955,19 +26120,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", "shortName": "PipelineServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.delete_pipeline_job", + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.cancel_pipeline_job", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob", "service": { "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", "shortName": "PipelineService" }, - "shortName": "DeletePipelineJob" + "shortName": "CancelPipelineJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeletePipelineJobRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CancelPipelineJobRequest" }, { "name": "name", @@ -25986,22 +26151,21 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "delete_pipeline_job" + "shortName": "cancel_pipeline_job" }, - "description": "Sample for DeletePipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py", + "description": "Sample for CancelPipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_async", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_async", "segments": [ { - "end": 55, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 49, "start": 27, "type": "SHORT" }, @@ -26016,17 +26180,15 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 52, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 50, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py" + "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_async.py" }, { "canonical": true, @@ -26035,19 +26197,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", "shortName": "PipelineServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.delete_pipeline_job", + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.cancel_pipeline_job", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob", "service": { "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", "shortName": "PipelineService" }, - "shortName": "DeletePipelineJob" + "shortName": "CancelPipelineJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeletePipelineJobRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CancelPipelineJobRequest" }, { "name": "name", @@ -26066,22 +26228,21 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.api_core.operation.Operation", - "shortName": "delete_pipeline_job" + "shortName": "cancel_pipeline_job" }, - "description": "Sample for DeletePipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py", + "description": "Sample for CancelPipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_sync", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_sync", "segments": [ { - "end": 55, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 49, "start": 27, "type": "SHORT" }, @@ -26096,17 +26257,15 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 52, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 50, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py" + "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_pipeline_job_sync.py" }, { "canonical": true, @@ -26116,19 +26275,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", "shortName": "PipelineServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.delete_training_pipeline", + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.cancel_training_pipeline", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline", "service": { "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", "shortName": "PipelineService" }, - "shortName": "DeleteTrainingPipeline" + "shortName": "CancelTrainingPipeline" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTrainingPipelineRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CancelTrainingPipelineRequest" }, { "name": "name", @@ -26147,22 +26306,21 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "delete_training_pipeline" + "shortName": "cancel_training_pipeline" }, - "description": "Sample for DeleteTrainingPipeline", - "file": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py", + "description": "Sample for CancelTrainingPipeline", + "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_async", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_async", "segments": [ { - "end": 55, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 49, "start": 27, "type": "SHORT" }, @@ -26177,17 +26335,15 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 52, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 50, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py" + "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_async.py" }, { "canonical": true, @@ -26196,19 +26352,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", "shortName": "PipelineServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.delete_training_pipeline", + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.cancel_training_pipeline", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline", "service": { "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", "shortName": "PipelineService" }, - "shortName": "DeleteTrainingPipeline" + "shortName": "CancelTrainingPipeline" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTrainingPipelineRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CancelTrainingPipelineRequest" }, { "name": "name", @@ -26227,22 +26383,21 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.api_core.operation.Operation", - "shortName": "delete_training_pipeline" + "shortName": "cancel_training_pipeline" }, - "description": "Sample for DeleteTrainingPipeline", - "file": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py", + "description": "Sample for CancelTrainingPipeline", + "file": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_sync", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_sync", "segments": [ { - "end": 55, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 49, "start": 27, "type": "SHORT" }, @@ -26257,17 +26412,15 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 52, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 50, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py" + "title": "aiplatform_v1beta1_generated_pipeline_service_cancel_training_pipeline_sync.py" }, { "canonical": true, @@ -26277,102 +26430,30 @@ "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", "shortName": "PipelineServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.get_pipeline_job", + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.create_pipeline_job", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob", + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob", "service": { "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", "shortName": "PipelineService" }, - "shortName": "GetPipelineJob" + "shortName": "CreatePipelineJob" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetPipelineJobRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreatePipelineJobRequest" }, { - "name": "name", + "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.aiplatform_v1beta1.types.PipelineJob", - "shortName": "get_pipeline_job" - }, - "description": "Sample for GetPipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py", - "language": "PYTHON", - "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_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": "aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py" - }, - { - "canonical": true, - "clientMethod": { - "client": { - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", - "shortName": "PipelineServiceClient" - }, - "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.get_pipeline_job", - "method": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob", - "service": { - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", - "shortName": "PipelineService" - }, - "shortName": "GetPipelineJob" - }, - "parameters": [ - { - "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetPipelineJobRequest" + "name": "pipeline_job", + "type": "google.cloud.aiplatform_v1beta1.types.PipelineJob" }, { - "name": "name", + "name": "pipeline_job_id", "type": "str" }, { @@ -26389,13 +26470,753 @@ } ], "resultType": "google.cloud.aiplatform_v1beta1.types.PipelineJob", - "shortName": "get_pipeline_job" + "shortName": "create_pipeline_job" }, - "description": "Sample for GetPipelineJob", - "file": "aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_sync.py", + "description": "Sample for CreatePipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_sync", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_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": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", + "shortName": "PipelineServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.create_pipeline_job", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "CreatePipelineJob" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.CreatePipelineJobRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "pipeline_job", + "type": "google.cloud.aiplatform_v1beta1.types.PipelineJob" + }, + { + "name": "pipeline_job_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.aiplatform_v1beta1.types.PipelineJob", + "shortName": "create_pipeline_job" + }, + "description": "Sample for CreatePipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_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": "aiplatform_v1beta1_generated_pipeline_service_create_pipeline_job_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", + "shortName": "PipelineServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.create_training_pipeline", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "CreateTrainingPipeline" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.CreateTrainingPipelineRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "training_pipeline", + "type": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline", + "shortName": "create_training_pipeline" + }, + "description": "Sample for CreateTrainingPipeline", + "file": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_async", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 51, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 52, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ], + "title": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", + "shortName": "PipelineServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.create_training_pipeline", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "CreateTrainingPipeline" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.CreateTrainingPipelineRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "training_pipeline", + "type": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.aiplatform_v1beta1.types.TrainingPipeline", + "shortName": "create_training_pipeline" + }, + "description": "Sample for CreateTrainingPipeline", + "file": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_sync", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 51, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 52, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ], + "title": "aiplatform_v1beta1_generated_pipeline_service_create_training_pipeline_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", + "shortName": "PipelineServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.delete_pipeline_job", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "DeletePipelineJob" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.DeletePipelineJobRequest" + }, + { + "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.api_core.operation_async.AsyncOperation", + "shortName": "delete_pipeline_job" + }, + "description": "Sample for DeletePipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_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": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", + "shortName": "PipelineServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.delete_pipeline_job", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "DeletePipelineJob" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.DeletePipelineJobRequest" + }, + { + "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.api_core.operation.Operation", + "shortName": "delete_pipeline_job" + }, + "description": "Sample for DeletePipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_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": "aiplatform_v1beta1_generated_pipeline_service_delete_pipeline_job_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", + "shortName": "PipelineServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.delete_training_pipeline", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "DeleteTrainingPipeline" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTrainingPipelineRequest" + }, + { + "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.api_core.operation_async.AsyncOperation", + "shortName": "delete_training_pipeline" + }, + "description": "Sample for DeleteTrainingPipeline", + "file": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_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": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", + "shortName": "PipelineServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.delete_training_pipeline", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "DeleteTrainingPipeline" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTrainingPipelineRequest" + }, + { + "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.api_core.operation.Operation", + "shortName": "delete_training_pipeline" + }, + "description": "Sample for DeleteTrainingPipeline", + "file": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_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": "aiplatform_v1beta1_generated_pipeline_service_delete_training_pipeline_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient", + "shortName": "PipelineServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceAsyncClient.get_pipeline_job", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "GetPipelineJob" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.GetPipelineJobRequest" + }, + { + "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.aiplatform_v1beta1.types.PipelineJob", + "shortName": "get_pipeline_job" + }, + "description": "Sample for GetPipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_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": "aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient", + "shortName": "PipelineServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.PipelineServiceClient.get_pipeline_job", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.PipelineService", + "shortName": "PipelineService" + }, + "shortName": "GetPipelineJob" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.GetPipelineJobRequest" + }, + { + "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.aiplatform_v1beta1.types.PipelineJob", + "shortName": "get_pipeline_job" + }, + "description": "Sample for GetPipelineJob", + "file": "aiplatform_v1beta1_generated_pipeline_service_get_pipeline_job_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_sync", "segments": [ { "end": 51, @@ -29487,7 +30308,176 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_async.py" + }, + { + "canonical": true, + "clientMethod": { + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", + "shortName": "TensorboardServiceClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.batch_create_tensorboard_runs", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", + "shortName": "TensorboardService" + }, + "shortName": "BatchCreateTensorboardRuns" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardRunsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "requests", + "type": "MutableSequence[google.cloud.aiplatform_v1beta1.types.CreateTensorboardRunRequest]" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardRunsResponse", + "shortName": "batch_create_tensorboard_runs" + }, + "description": "Sample for BatchCreateTensorboardRuns", + "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardRuns_sync", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 51, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 52, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ], + "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py" + }, + { + "canonical": true, + "clientMethod": { + "async": true, + "client": { + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", + "shortName": "TensorboardServiceAsyncClient" + }, + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.batch_create_tensorboard_time_series", + "method": { + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries", + "service": { + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", + "shortName": "TensorboardService" + }, + "shortName": "BatchCreateTensorboardTimeSeries" + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "requests", + "type": "MutableSequence[google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest]" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesResponse", + "shortName": "batch_create_tensorboard_time_series" + }, + "description": "Sample for BatchCreateTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async", + "segments": [ + { + "end": 57, + "start": 27, + "type": "FULL" + }, + { + "end": 57, + "start": 27, + "type": "SHORT" + }, + { + "end": 40, + "start": 38, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 51, + "start": 41, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 54, + "start": 52, + "type": "REQUEST_EXECUTION" + }, + { + "end": 58, + "start": 55, + "type": "RESPONSE_HANDLING" + } + ], + "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py" }, { "canonical": true, @@ -29496,19 +30486,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.batch_create_tensorboard_runs", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.batch_create_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "BatchCreateTensorboardRuns" + "shortName": "BatchCreateTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardRunsRequest" + "type": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesRequest" }, { "name": "parent", @@ -29516,7 +30506,7 @@ }, { "name": "requests", - "type": "MutableSequence[google.cloud.aiplatform_v1beta1.types.CreateTensorboardRunRequest]" + "type": "MutableSequence[google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest]" }, { "name": "retry", @@ -29531,14 +30521,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardRunsResponse", - "shortName": "batch_create_tensorboard_runs" + "resultType": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesResponse", + "shortName": "batch_create_tensorboard_time_series" }, - "description": "Sample for BatchCreateTensorboardRuns", - "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py", + "description": "Sample for BatchCreateTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardRuns_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_sync", "segments": [ { "end": 57, @@ -29571,7 +30561,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_runs_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py" }, { "canonical": true, @@ -29581,28 +30571,24 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.batch_create_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.batch_read_tensorboard_time_series_data", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "BatchCreateTensorboardTimeSeries" + "shortName": "BatchReadTensorboardTimeSeriesData" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataRequest" }, { - "name": "parent", + "name": "tensorboard", "type": "str" }, - { - "name": "requests", - "type": "MutableSequence[google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest]" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29616,22 +30602,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesResponse", - "shortName": "batch_create_tensorboard_time_series" + "resultType": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataResponse", + "shortName": "batch_read_tensorboard_time_series_data" }, - "description": "Sample for BatchCreateTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py", + "description": "Sample for BatchReadTensorboardTimeSeriesData", + "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_async", "segments": [ { - "end": 57, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 57, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29641,22 +30627,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 51, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 58, - "start": 55, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py" }, { "canonical": true, @@ -29665,28 +30651,24 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.batch_create_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.batch_read_tensorboard_time_series_data", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "BatchCreateTensorboardTimeSeries" + "shortName": "BatchReadTensorboardTimeSeriesData" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataRequest" }, { - "name": "parent", + "name": "tensorboard", "type": "str" }, - { - "name": "requests", - "type": "MutableSequence[google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest]" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -29700,22 +30682,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.BatchCreateTensorboardTimeSeriesResponse", - "shortName": "batch_create_tensorboard_time_series" + "resultType": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataResponse", + "shortName": "batch_read_tensorboard_time_series_data" }, - "description": "Sample for BatchCreateTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py", + "description": "Sample for BatchReadTensorboardTimeSeriesData", + "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_sync", "segments": [ { - "end": 57, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 57, + "end": 52, "start": 27, "type": "SHORT" }, @@ -29725,22 +30707,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 51, + "end": 46, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 54, - "start": 52, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 58, - "start": 55, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_create_tensorboard_time_series_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py" }, { "canonical": true, @@ -29750,22 +30732,30 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.batch_read_tensorboard_time_series_data", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard_experiment", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "BatchReadTensorboardTimeSeriesData" + "shortName": "CreateTensorboardExperiment" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardExperimentRequest" }, { - "name": "tensorboard", + "name": "parent", + "type": "str" + }, + { + "name": "tensorboard_experiment", + "type": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment" + }, + { + "name": "tensorboard_experiment_id", "type": "str" }, { @@ -29781,14 +30771,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataResponse", - "shortName": "batch_read_tensorboard_time_series_data" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", + "shortName": "create_tensorboard_experiment" }, - "description": "Sample for BatchReadTensorboardTimeSeriesData", - "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py", + "description": "Sample for CreateTensorboardExperiment", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_async", "segments": [ { "end": 52, @@ -29821,7 +30811,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py" }, { "canonical": true, @@ -29830,22 +30820,30 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.batch_read_tensorboard_time_series_data", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard_experiment", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "BatchReadTensorboardTimeSeriesData" + "shortName": "CreateTensorboardExperiment" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardExperimentRequest" }, { - "name": "tensorboard", + "name": "parent", + "type": "str" + }, + { + "name": "tensorboard_experiment", + "type": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment" + }, + { + "name": "tensorboard_experiment_id", "type": "str" }, { @@ -29861,14 +30859,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.BatchReadTensorboardTimeSeriesDataResponse", - "shortName": "batch_read_tensorboard_time_series_data" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", + "shortName": "create_tensorboard_experiment" }, - "description": "Sample for BatchReadTensorboardTimeSeriesData", - "file": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py", + "description": "Sample for CreateTensorboardExperiment", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_sync", "segments": [ { "end": 52, @@ -29901,7 +30899,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py" }, { "canonical": true, @@ -29911,30 +30909,30 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard_experiment", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard_run", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboardExperiment" + "shortName": "CreateTensorboardRun" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardExperimentRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRunRequest" }, { "name": "parent", "type": "str" }, { - "name": "tensorboard_experiment", - "type": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment" + "name": "tensorboard_run", + "type": "google.cloud.aiplatform_v1beta1.types.TensorboardRun" }, { - "name": "tensorboard_experiment_id", + "name": "tensorboard_run_id", "type": "str" }, { @@ -29950,22 +30948,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", - "shortName": "create_tensorboard_experiment" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", + "shortName": "create_tensorboard_run" }, - "description": "Sample for CreateTensorboardExperiment", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py", + "description": "Sample for CreateTensorboardRun", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_async", "segments": [ { - "end": 52, + "end": 56, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 56, "start": 27, "type": "SHORT" }, @@ -29975,22 +30973,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 50, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 53, + "start": 51, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 57, + "start": 54, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py" }, { "canonical": true, @@ -29999,30 +30997,30 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard_experiment", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard_run", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboardExperiment" + "shortName": "CreateTensorboardRun" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardExperimentRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRunRequest" }, { "name": "parent", "type": "str" }, { - "name": "tensorboard_experiment", - "type": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment" + "name": "tensorboard_run", + "type": "google.cloud.aiplatform_v1beta1.types.TensorboardRun" }, { - "name": "tensorboard_experiment_id", + "name": "tensorboard_run_id", "type": "str" }, { @@ -30038,22 +31036,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", - "shortName": "create_tensorboard_experiment" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", + "shortName": "create_tensorboard_run" }, - "description": "Sample for CreateTensorboardExperiment", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py", + "description": "Sample for CreateTensorboardRun", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_sync", "segments": [ { - "end": 52, + "end": 56, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 56, "start": 27, "type": "SHORT" }, @@ -30063,22 +31061,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 50, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 47, + "end": 53, + "start": 51, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 57, + "start": 54, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_experiment_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py" }, { "canonical": true, @@ -30088,31 +31086,27 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard_run", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboardRun" + "shortName": "CreateTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRunRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest" }, { "name": "parent", "type": "str" }, { - "name": "tensorboard_run", - "type": "google.cloud.aiplatform_v1beta1.types.TensorboardRun" - }, - { - "name": "tensorboard_run_id", - "type": "str" + "name": "tensorboard_time_series", + "type": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries" }, { "name": "retry", @@ -30127,14 +31121,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", - "shortName": "create_tensorboard_run" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", + "shortName": "create_tensorboard_time_series" }, - "description": "Sample for CreateTensorboardRun", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py", + "description": "Sample for CreateTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_async", "segments": [ { "end": 56, @@ -30167,7 +31161,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py" }, { "canonical": true, @@ -30176,31 +31170,27 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard_run", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboardRun" + "shortName": "CreateTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRunRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest" }, { "name": "parent", "type": "str" }, { - "name": "tensorboard_run", - "type": "google.cloud.aiplatform_v1beta1.types.TensorboardRun" - }, - { - "name": "tensorboard_run_id", - "type": "str" + "name": "tensorboard_time_series", + "type": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries" }, { "name": "retry", @@ -30215,14 +31205,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", - "shortName": "create_tensorboard_run" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", + "shortName": "create_tensorboard_time_series" }, - "description": "Sample for CreateTensorboardRun", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py", + "description": "Sample for CreateTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_sync", "segments": [ { "end": 56, @@ -30255,7 +31245,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_run_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py" }, { "canonical": true, @@ -30265,27 +31255,27 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboardTimeSeries" + "shortName": "CreateTensorboard" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRequest" }, { "name": "parent", "type": "str" }, { - "name": "tensorboard_time_series", - "type": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries" + "name": "tensorboard", + "type": "google.cloud.aiplatform_v1beta1.types.Tensorboard" }, { "name": "retry", @@ -30300,22 +31290,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", - "shortName": "create_tensorboard_time_series" + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_tensorboard" }, - "description": "Sample for CreateTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py", + "description": "Sample for CreateTensorboard", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_async", "segments": [ { - "end": 56, + "end": 59, "start": 27, "type": "FULL" }, { - "end": 56, + "end": 59, "start": 27, "type": "SHORT" }, @@ -30325,22 +31315,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 50, + "end": 49, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 53, - "start": 51, + "end": 56, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 57, - "start": 54, + "end": 60, + "start": 57, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py" }, { "canonical": true, @@ -30349,27 +31339,27 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboardTimeSeries" + "shortName": "CreateTensorboard" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRequest" }, { "name": "parent", "type": "str" }, { - "name": "tensorboard_time_series", - "type": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries" + "name": "tensorboard", + "type": "google.cloud.aiplatform_v1beta1.types.Tensorboard" }, { "name": "retry", @@ -30384,22 +31374,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", - "shortName": "create_tensorboard_time_series" + "resultType": "google.api_core.operation.Operation", + "shortName": "create_tensorboard" }, - "description": "Sample for CreateTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py", + "description": "Sample for CreateTensorboard", + "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_sync", "segments": [ { - "end": 56, + "end": 59, "start": 27, "type": "FULL" }, { - "end": 56, + "end": 59, "start": 27, "type": "SHORT" }, @@ -30409,22 +31399,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 50, + "end": 49, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 53, - "start": 51, + "end": 56, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 57, - "start": 54, + "end": 60, + "start": 57, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_time_series_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py" }, { "canonical": true, @@ -30434,28 +31424,24 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.create_tensorboard", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard_experiment", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboard" + "shortName": "DeleteTensorboardExperiment" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardExperimentRequest" }, { - "name": "parent", + "name": "name", "type": "str" }, - { - "name": "tensorboard", - "type": "google.cloud.aiplatform_v1beta1.types.Tensorboard" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -30470,21 +31456,21 @@ } ], "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "create_tensorboard" + "shortName": "delete_tensorboard_experiment" }, - "description": "Sample for CreateTensorboard", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py", + "description": "Sample for DeleteTensorboardExperiment", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_async", "segments": [ { - "end": 59, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 59, + "end": 55, "start": 27, "type": "SHORT" }, @@ -30494,22 +31480,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 49, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 56, - "start": 50, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 60, - "start": 57, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py" }, { "canonical": true, @@ -30518,28 +31504,24 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.create_tensorboard", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard_experiment", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "CreateTensorboard" + "shortName": "DeleteTensorboardExperiment" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.CreateTensorboardRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardExperimentRequest" }, { - "name": "parent", + "name": "name", "type": "str" }, - { - "name": "tensorboard", - "type": "google.cloud.aiplatform_v1beta1.types.Tensorboard" - }, { "name": "retry", "type": "google.api_core.retry.Retry" @@ -30554,21 +31536,21 @@ } ], "resultType": "google.api_core.operation.Operation", - "shortName": "create_tensorboard" + "shortName": "delete_tensorboard_experiment" }, - "description": "Sample for CreateTensorboard", - "file": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py", + "description": "Sample for DeleteTensorboardExperiment", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_sync", "segments": [ { - "end": 59, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 59, + "end": 55, "start": 27, "type": "SHORT" }, @@ -30578,22 +31560,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 49, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 56, - "start": 50, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 60, - "start": 57, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_create_tensorboard_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py" }, { "canonical": true, @@ -30603,19 +31585,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard_experiment", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard_run", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboardExperiment" + "shortName": "DeleteTensorboardRun" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardExperimentRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRunRequest" }, { "name": "name", @@ -30635,13 +31617,13 @@ } ], "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "delete_tensorboard_experiment" + "shortName": "delete_tensorboard_run" }, - "description": "Sample for DeleteTensorboardExperiment", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py", + "description": "Sample for DeleteTensorboardRun", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_async", "segments": [ { "end": 55, @@ -30674,7 +31656,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py" }, { "canonical": true, @@ -30683,19 +31665,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard_experiment", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard_run", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboardExperiment" + "shortName": "DeleteTensorboardRun" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardExperimentRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRunRequest" }, { "name": "name", @@ -30715,13 +31697,13 @@ } ], "resultType": "google.api_core.operation.Operation", - "shortName": "delete_tensorboard_experiment" + "shortName": "delete_tensorboard_run" }, - "description": "Sample for DeleteTensorboardExperiment", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py", + "description": "Sample for DeleteTensorboardRun", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_sync", "segments": [ { "end": 55, @@ -30754,7 +31736,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_experiment_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py" }, { "canonical": true, @@ -30764,19 +31746,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard_run", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboardRun" + "shortName": "DeleteTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRunRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardTimeSeriesRequest" }, { "name": "name", @@ -30796,13 +31778,13 @@ } ], "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "delete_tensorboard_run" + "shortName": "delete_tensorboard_time_series" }, - "description": "Sample for DeleteTensorboardRun", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py", + "description": "Sample for DeleteTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_async", "segments": [ { "end": 55, @@ -30835,7 +31817,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py" }, { "canonical": true, @@ -30844,19 +31826,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard_run", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboardRun" + "shortName": "DeleteTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRunRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardTimeSeriesRequest" }, { "name": "name", @@ -30876,13 +31858,13 @@ } ], "resultType": "google.api_core.operation.Operation", - "shortName": "delete_tensorboard_run" + "shortName": "delete_tensorboard_time_series" }, - "description": "Sample for DeleteTensorboardRun", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py", + "description": "Sample for DeleteTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_sync", "segments": [ { "end": 55, @@ -30915,7 +31897,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_run_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py" }, { "canonical": true, @@ -30925,19 +31907,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboardTimeSeries" + "shortName": "DeleteTensorboard" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRequest" }, { "name": "name", @@ -30957,13 +31939,13 @@ } ], "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "delete_tensorboard_time_series" + "shortName": "delete_tensorboard" }, - "description": "Sample for DeleteTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py", + "description": "Sample for DeleteTensorboard", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_async", "segments": [ { "end": 55, @@ -30996,7 +31978,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py" }, { "canonical": true, @@ -31005,19 +31987,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboardTimeSeries" + "shortName": "DeleteTensorboard" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRequest" }, { "name": "name", @@ -31037,13 +32019,13 @@ } ], "resultType": "google.api_core.operation.Operation", - "shortName": "delete_tensorboard_time_series" + "shortName": "delete_tensorboard" }, - "description": "Sample for DeleteTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py", + "description": "Sample for DeleteTensorboard", + "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_sync", "segments": [ { "end": 55, @@ -31076,7 +32058,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_time_series_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py" }, { "canonical": true, @@ -31086,22 +32068,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.delete_tensorboard", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.export_tensorboard_time_series_data", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboard" + "shortName": "ExportTensorboardTimeSeriesData" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ExportTensorboardTimeSeriesDataRequest" }, { - "name": "name", + "name": "tensorboard_time_series", "type": "str" }, { @@ -31117,22 +32099,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.api_core.operation_async.AsyncOperation", - "shortName": "delete_tensorboard" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ExportTensorboardTimeSeriesDataAsyncPager", + "shortName": "export_tensorboard_time_series_data" }, - "description": "Sample for DeleteTensorboard", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py", + "description": "Sample for ExportTensorboardTimeSeriesData", + "file": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async", "segments": [ { - "end": 55, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 52, "start": 27, "type": "SHORT" }, @@ -31147,17 +32129,17 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 52, + "end": 48, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py" }, { "canonical": true, @@ -31166,22 +32148,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.delete_tensorboard", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.export_tensorboard_time_series_data", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "DeleteTensorboard" + "shortName": "ExportTensorboardTimeSeriesData" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.DeleteTensorboardRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ExportTensorboardTimeSeriesDataRequest" }, { - "name": "name", + "name": "tensorboard_time_series", "type": "str" }, { @@ -31197,22 +32179,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.api_core.operation.Operation", - "shortName": "delete_tensorboard" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ExportTensorboardTimeSeriesDataPager", + "shortName": "export_tensorboard_time_series_data" }, - "description": "Sample for DeleteTensorboard", - "file": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py", + "description": "Sample for ExportTensorboardTimeSeriesData", + "file": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_sync", "segments": [ { - "end": 55, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 55, + "end": 52, "start": 27, "type": "SHORT" }, @@ -31227,17 +32209,17 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 52, + "end": 48, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 56, - "start": 53, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_delete_tensorboard_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py" }, { "canonical": true, @@ -31247,22 +32229,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.export_tensorboard_time_series_data", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard_experiment", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ExportTensorboardTimeSeriesData" + "shortName": "GetTensorboardExperiment" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ExportTensorboardTimeSeriesDataRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardExperimentRequest" }, { - "name": "tensorboard_time_series", + "name": "name", "type": "str" }, { @@ -31278,22 +32260,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ExportTensorboardTimeSeriesDataAsyncPager", - "shortName": "export_tensorboard_time_series_data" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", + "shortName": "get_tensorboard_experiment" }, - "description": "Sample for ExportTensorboardTimeSeriesData", - "file": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py", + "description": "Sample for GetTensorboardExperiment", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_async", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -31313,12 +32295,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py" }, { "canonical": true, @@ -31327,22 +32309,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.export_tensorboard_time_series_data", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard_experiment", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ExportTensorboardTimeSeriesData" + "shortName": "GetTensorboardExperiment" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ExportTensorboardTimeSeriesDataRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardExperimentRequest" }, { - "name": "tensorboard_time_series", + "name": "name", "type": "str" }, { @@ -31358,22 +32340,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ExportTensorboardTimeSeriesDataPager", - "shortName": "export_tensorboard_time_series_data" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", + "shortName": "get_tensorboard_experiment" }, - "description": "Sample for ExportTensorboardTimeSeriesData", - "file": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py", + "description": "Sample for GetTensorboardExperiment", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -31393,12 +32375,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_export_tensorboard_time_series_data_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py" }, { "canonical": true, @@ -31408,19 +32390,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard_experiment", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard_run", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboardExperiment" + "shortName": "GetTensorboardRun" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardExperimentRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRunRequest" }, { "name": "name", @@ -31439,14 +32421,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", - "shortName": "get_tensorboard_experiment" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", + "shortName": "get_tensorboard_run" }, - "description": "Sample for GetTensorboardExperiment", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py", + "description": "Sample for GetTensorboardRun", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_async", "segments": [ { "end": 51, @@ -31479,7 +32461,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py" }, { "canonical": true, @@ -31488,19 +32470,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard_experiment", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard_run", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboardExperiment" + "shortName": "GetTensorboardRun" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardExperimentRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRunRequest" }, { "name": "name", @@ -31519,14 +32501,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardExperiment", - "shortName": "get_tensorboard_experiment" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", + "shortName": "get_tensorboard_run" }, - "description": "Sample for GetTensorboardExperiment", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py", + "description": "Sample for GetTensorboardRun", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_sync", "segments": [ { "end": 51, @@ -31559,7 +32541,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_experiment_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py" }, { "canonical": true, @@ -31569,19 +32551,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard_run", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboardRun" + "shortName": "GetTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRunRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardTimeSeriesRequest" }, { "name": "name", @@ -31600,14 +32582,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", - "shortName": "get_tensorboard_run" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", + "shortName": "get_tensorboard_time_series" }, - "description": "Sample for GetTensorboardRun", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py", + "description": "Sample for GetTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_async", "segments": [ { "end": 51, @@ -31640,7 +32622,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py" }, { "canonical": true, @@ -31649,19 +32631,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard_run", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboardRun" + "shortName": "GetTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRunRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardTimeSeriesRequest" }, { "name": "name", @@ -31680,14 +32662,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardRun", - "shortName": "get_tensorboard_run" + "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", + "shortName": "get_tensorboard_time_series" }, - "description": "Sample for GetTensorboardRun", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py", + "description": "Sample for GetTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_sync", "segments": [ { "end": 51, @@ -31720,7 +32702,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_run_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py" }, { "canonical": true, @@ -31730,19 +32712,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboardTimeSeries" + "shortName": "GetTensorboard" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRequest" }, { "name": "name", @@ -31761,14 +32743,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", - "shortName": "get_tensorboard_time_series" + "resultType": "google.cloud.aiplatform_v1beta1.types.Tensorboard", + "shortName": "get_tensorboard" }, - "description": "Sample for GetTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py", + "description": "Sample for GetTensorboard", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_async", "segments": [ { "end": 51, @@ -31801,7 +32783,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py" }, { "canonical": true, @@ -31810,19 +32792,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboardTimeSeries" + "shortName": "GetTensorboard" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRequest" }, { "name": "name", @@ -31841,14 +32823,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.TensorboardTimeSeries", - "shortName": "get_tensorboard_time_series" + "resultType": "google.cloud.aiplatform_v1beta1.types.Tensorboard", + "shortName": "get_tensorboard" }, - "description": "Sample for GetTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py", + "description": "Sample for GetTensorboard", + "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_sync", "segments": [ { "end": 51, @@ -31881,7 +32863,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_time_series_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py" }, { "canonical": true, @@ -31891,22 +32873,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.get_tensorboard", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboard_experiments", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboard" + "shortName": "ListTensorboardExperiments" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardExperimentsRequest" }, { - "name": "name", + "name": "parent", "type": "str" }, { @@ -31922,22 +32904,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.Tensorboard", - "shortName": "get_tensorboard" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardExperimentsAsyncPager", + "shortName": "list_tensorboard_experiments" }, - "description": "Sample for GetTensorboard", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py", + "description": "Sample for ListTensorboardExperiments", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_async", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -31957,12 +32939,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 53, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py" }, { "canonical": true, @@ -31971,22 +32953,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.get_tensorboard", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboard_experiments", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "GetTensorboard" + "shortName": "ListTensorboardExperiments" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.GetTensorboardRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardExperimentsRequest" }, { - "name": "name", + "name": "parent", "type": "str" }, { @@ -32002,22 +32984,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.types.Tensorboard", - "shortName": "get_tensorboard" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardExperimentsPager", + "shortName": "list_tensorboard_experiments" }, - "description": "Sample for GetTensorboard", - "file": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py", + "description": "Sample for ListTensorboardExperiments", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_sync", "segments": [ { - "end": 51, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 52, "start": 27, "type": "SHORT" }, @@ -32037,12 +33019,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 53, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_get_tensorboard_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py" }, { "canonical": true, @@ -32052,19 +33034,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboard_experiments", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboard_runs", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboardExperiments" + "shortName": "ListTensorboardRuns" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardExperimentsRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardRunsRequest" }, { "name": "parent", @@ -32083,14 +33065,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardExperimentsAsyncPager", - "shortName": "list_tensorboard_experiments" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardRunsAsyncPager", + "shortName": "list_tensorboard_runs" }, - "description": "Sample for ListTensorboardExperiments", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py", + "description": "Sample for ListTensorboardRuns", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_async", "segments": [ { "end": 52, @@ -32123,7 +33105,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py" }, { "canonical": true, @@ -32132,19 +33114,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboard_experiments", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboard_runs", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboardExperiments" + "shortName": "ListTensorboardRuns" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardExperimentsRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardRunsRequest" }, { "name": "parent", @@ -32163,14 +33145,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardExperimentsPager", - "shortName": "list_tensorboard_experiments" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardRunsPager", + "shortName": "list_tensorboard_runs" }, - "description": "Sample for ListTensorboardExperiments", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py", + "description": "Sample for ListTensorboardRuns", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_sync", "segments": [ { "end": 52, @@ -32203,7 +33185,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_experiments_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py" }, { "canonical": true, @@ -32213,19 +33195,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboard_runs", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboardRuns" + "shortName": "ListTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardRunsRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardTimeSeriesRequest" }, { "name": "parent", @@ -32244,14 +33226,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardRunsAsyncPager", - "shortName": "list_tensorboard_runs" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardTimeSeriesAsyncPager", + "shortName": "list_tensorboard_time_series" }, - "description": "Sample for ListTensorboardRuns", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py", + "description": "Sample for ListTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_async", "segments": [ { "end": 52, @@ -32284,7 +33266,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py" }, { "canonical": true, @@ -32293,19 +33275,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboard_runs", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboard_time_series", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboardRuns" + "shortName": "ListTensorboardTimeSeries" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardRunsRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardTimeSeriesRequest" }, { "name": "parent", @@ -32324,14 +33306,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardRunsPager", - "shortName": "list_tensorboard_runs" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardTimeSeriesPager", + "shortName": "list_tensorboard_time_series" }, - "description": "Sample for ListTensorboardRuns", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py", + "description": "Sample for ListTensorboardTimeSeries", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_sync", "segments": [ { "end": 52, @@ -32364,7 +33346,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_runs_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py" }, { "canonical": true, @@ -32374,19 +33356,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboards", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboardTimeSeries" + "shortName": "ListTensorboards" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardsRequest" }, { "name": "parent", @@ -32405,14 +33387,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardTimeSeriesAsyncPager", - "shortName": "list_tensorboard_time_series" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardsAsyncPager", + "shortName": "list_tensorboards" }, - "description": "Sample for ListTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py", + "description": "Sample for ListTensorboards", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_async", "segments": [ { "end": 52, @@ -32445,7 +33427,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py" }, { "canonical": true, @@ -32454,19 +33436,19 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboard_time_series", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboards", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboardTimeSeries" + "shortName": "ListTensorboards" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardTimeSeriesRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardsRequest" }, { "name": "parent", @@ -32485,14 +33467,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardTimeSeriesPager", - "shortName": "list_tensorboard_time_series" + "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardsPager", + "shortName": "list_tensorboards" }, - "description": "Sample for ListTensorboardTimeSeries", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py", + "description": "Sample for ListTensorboards", + "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_sync", "segments": [ { "end": 52, @@ -32525,7 +33507,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboard_time_series_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py" }, { "canonical": true, @@ -32535,22 +33517,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.list_tensorboards", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.read_tensorboard_blob_data", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboards" + "shortName": "ReadTensorboardBlobData" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardsRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataRequest" }, { - "name": "parent", + "name": "time_series", "type": "str" }, { @@ -32566,14 +33548,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardsAsyncPager", - "shortName": "list_tensorboards" + "resultType": "Iterable[google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataResponse]", + "shortName": "read_tensorboard_blob_data" }, - "description": "Sample for ListTensorboards", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py", + "description": "Sample for ReadTensorboardBlobData", + "file": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_async", "segments": [ { "end": 52, @@ -32606,7 +33588,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py" }, { "canonical": true, @@ -32615,22 +33597,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.list_tensorboards", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.read_tensorboard_blob_data", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ListTensorboards" + "shortName": "ReadTensorboardBlobData" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ListTensorboardsRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataRequest" }, { - "name": "parent", + "name": "time_series", "type": "str" }, { @@ -32646,14 +33628,14 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "google.cloud.aiplatform_v1beta1.services.tensorboard_service.pagers.ListTensorboardsPager", - "shortName": "list_tensorboards" + "resultType": "Iterable[google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataResponse]", + "shortName": "read_tensorboard_blob_data" }, - "description": "Sample for ListTensorboards", - "file": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py", + "description": "Sample for ReadTensorboardBlobData", + "file": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_sync", "segments": [ { "end": 52, @@ -32686,7 +33668,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_list_tensorboards_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py" }, { "canonical": true, @@ -32696,22 +33678,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient", "shortName": "TensorboardServiceAsyncClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.read_tensorboard_blob_data", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceAsyncClient.read_tensorboard_size", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ReadTensorboardBlobData" + "shortName": "ReadTensorboardSize" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeRequest" }, { - "name": "time_series", + "name": "tensorboard", "type": "str" }, { @@ -32727,22 +33709,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "Iterable[google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataResponse]", - "shortName": "read_tensorboard_blob_data" + "resultType": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeResponse", + "shortName": "read_tensorboard_size" }, - "description": "Sample for ReadTensorboardBlobData", - "file": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py", + "description": "Sample for ReadTensorboardSize", + "file": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_async", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardSize_async", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -32762,12 +33744,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_async.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_async.py" }, { "canonical": true, @@ -32776,22 +33758,22 @@ "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient", "shortName": "TensorboardServiceClient" }, - "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.read_tensorboard_blob_data", + "fullName": "google.cloud.aiplatform_v1beta1.TensorboardServiceClient.read_tensorboard_size", "method": { - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData", + "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize", "service": { "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService", "shortName": "TensorboardService" }, - "shortName": "ReadTensorboardBlobData" + "shortName": "ReadTensorboardSize" }, "parameters": [ { "name": "request", - "type": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataRequest" + "type": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeRequest" }, { - "name": "time_series", + "name": "tensorboard", "type": "str" }, { @@ -32807,22 +33789,22 @@ "type": "Sequence[Tuple[str, str]" } ], - "resultType": "Iterable[google.cloud.aiplatform_v1beta1.types.ReadTensorboardBlobDataResponse]", - "shortName": "read_tensorboard_blob_data" + "resultType": "google.cloud.aiplatform_v1beta1.types.ReadTensorboardSizeResponse", + "shortName": "read_tensorboard_size" }, - "description": "Sample for ReadTensorboardBlobData", - "file": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py", + "description": "Sample for ReadTensorboardSize", + "file": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_sync", + "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardSize_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -32842,12 +33824,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_blob_data_sync.py" + "title": "aiplatform_v1beta1_generated_tensorboard_service_read_tensorboard_size_sync.py" }, { "canonical": true, diff --git a/tests/__init__.py b/tests/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/__init__.py b/tests/unit/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/__init__.py b/tests/unit/gapic/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/__init__.py +++ b/tests/unit/gapic/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1/__init__.py b/tests/unit/gapic/aiplatform_v1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/aiplatform_v1/__init__.py +++ b/tests/unit/gapic/aiplatform_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1/test_dataset_service.py b/tests/unit/gapic/aiplatform_v1/test_dataset_service.py index 496400ef19..353c89c9f3 100644 --- a/tests/unit/gapic/aiplatform_v1/test_dataset_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_dataset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -965,6 +965,7 @@ def test_get_dataset(request_type, transport: str = "grpc"): display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -981,6 +982,7 @@ def test_get_dataset(request_type, transport: str = "grpc"): assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1023,6 +1025,7 @@ async def test_get_dataset_async( display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -1040,6 +1043,7 @@ async def test_get_dataset_async( assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1213,6 +1217,7 @@ def test_update_dataset(request_type, transport: str = "grpc"): display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -1229,6 +1234,7 @@ def test_update_dataset(request_type, transport: str = "grpc"): assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1271,6 +1277,7 @@ async def test_update_dataset_async( display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -1288,6 +1295,7 @@ async def test_update_dataset_async( assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1858,9 +1866,11 @@ async def test_list_datasets_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_datasets(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3012,9 +3022,11 @@ async def test_list_data_items_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_data_items(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3368,9 +3380,11 @@ async def test_search_data_items_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_data_items(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3811,14 +3825,257 @@ async def test_list_saved_queries_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_saved_queries(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token +@pytest.mark.parametrize( + "request_type", + [ + dataset_service.DeleteSavedQueryRequest, + dict, + ], +) +def test_delete_saved_query(request_type, transport: str = "grpc"): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/spam") + response = client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == dataset_service.DeleteSavedQueryRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +def test_delete_saved_query_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + client.delete_saved_query() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == dataset_service.DeleteSavedQueryRequest() + + +@pytest.mark.asyncio +async def test_delete_saved_query_async( + transport: str = "grpc_asyncio", + request_type=dataset_service.DeleteSavedQueryRequest, +): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + response = await client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == dataset_service.DeleteSavedQueryRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +@pytest.mark.asyncio +async def test_delete_saved_query_async_from_dict(): + await test_delete_saved_query_async(request_type=dict) + + +def test_delete_saved_query_field_headers(): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = dataset_service.DeleteSavedQueryRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + call.return_value = operations_pb2.Operation(name="operations/op") + client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_delete_saved_query_field_headers_async(): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = dataset_service.DeleteSavedQueryRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/op") + ) + await client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +def test_delete_saved_query_flattened(): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.delete_saved_query( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +def test_delete_saved_query_flattened_error(): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.delete_saved_query( + dataset_service.DeleteSavedQueryRequest(), + name="name_value", + ) + + +@pytest.mark.asyncio +async def test_delete_saved_query_flattened_async(): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.delete_saved_query( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_delete_saved_query_flattened_error_async(): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.delete_saved_query( + dataset_service.DeleteSavedQueryRequest(), + name="name_value", + ) + + @pytest.mark.parametrize( "request_type", [ @@ -4486,9 +4743,11 @@ async def test_list_annotations_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_annotations(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4641,6 +4900,7 @@ def test_dataset_service_base_transport(): "list_data_items", "search_data_items", "list_saved_queries", + "delete_saved_query", "get_annotation_spec", "list_annotations", "set_iam_policy", diff --git a/tests/unit/gapic/aiplatform_v1/test_endpoint_service.py b/tests/unit/gapic/aiplatform_v1/test_endpoint_service.py index a6d86a3be8..6c1b34d69c 100644 --- a/tests/unit/gapic/aiplatform_v1/test_endpoint_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1634,9 +1634,11 @@ async def test_list_endpoints_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_endpoints(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_featurestore_online_serving_service.py b/tests/unit/gapic/aiplatform_v1/test_featurestore_online_serving_service.py index 582c8dfba3..6618f9c105 100644 --- a/tests/unit/gapic/aiplatform_v1/test_featurestore_online_serving_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_featurestore_online_serving_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1/test_featurestore_service.py b/tests/unit/gapic/aiplatform_v1/test_featurestore_service.py index 0b20d153ac..57fddc9919 100644 --- a/tests/unit/gapic/aiplatform_v1/test_featurestore_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_featurestore_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1673,9 +1673,11 @@ async def test_list_featurestores_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_featurestores(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3124,9 +3126,11 @@ async def test_list_entity_types_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_entity_types(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4807,9 +4811,11 @@ async def test_list_features_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_features(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -6684,9 +6690,11 @@ async def test_search_features_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_features(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_index_endpoint_service.py b/tests/unit/gapic/aiplatform_v1/test_index_endpoint_service.py index c91226b6b3..604fac6836 100644 --- a/tests/unit/gapic/aiplatform_v1/test_index_endpoint_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_index_endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1686,9 +1686,11 @@ async def test_list_index_endpoints_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_index_endpoints(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_index_service.py b/tests/unit/gapic/aiplatform_v1/test_index_service.py index b61360ea16..05d1fd9db2 100644 --- a/tests/unit/gapic/aiplatform_v1/test_index_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_index_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1580,9 +1580,11 @@ async def test_list_indexes_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_indexes(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_job_service.py b/tests/unit/gapic/aiplatform_v1/test_job_service.py index 7ef170139e..5362e731eb 100644 --- a/tests/unit/gapic/aiplatform_v1/test_job_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_job_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1626,9 +1626,11 @@ async def test_list_custom_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_custom_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3110,9 +3112,11 @@ async def test_list_data_labeling_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_data_labeling_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4591,9 +4595,11 @@ async def test_list_hyperparameter_tuning_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_hyperparameter_tuning_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -5977,9 +5983,11 @@ async def test_list_nas_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_nas_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7115,9 +7123,11 @@ async def test_list_nas_trial_details_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_nas_trial_details(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -8130,9 +8140,11 @@ async def test_list_batch_prediction_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_batch_prediction_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9426,9 +9438,11 @@ async def test_search_model_deployment_monitoring_stats_anomalies_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_model_deployment_monitoring_stats_anomalies(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -10166,9 +10180,11 @@ async def test_list_model_deployment_monitoring_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_deployment_monitoring_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_match_service.py b/tests/unit/gapic/aiplatform_v1/test_match_service.py index dfbda4c0a8..61ceaac3ee 100644 --- a/tests/unit/gapic/aiplatform_v1/test_match_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_match_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1/test_metadata_service.py b/tests/unit/gapic/aiplatform_v1/test_metadata_service.py index 4cacdc1dd6..0cc031c4f6 100644 --- a/tests/unit/gapic/aiplatform_v1/test_metadata_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_metadata_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1670,9 +1670,11 @@ async def test_list_metadata_stores_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_metadata_stores(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2867,9 +2869,11 @@ async def test_list_artifacts_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_artifacts(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4533,9 +4537,11 @@ async def test_list_contexts_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_contexts(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7204,9 +7210,11 @@ async def test_list_executions_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_executions(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9418,9 +9426,11 @@ async def test_list_metadata_schemas_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_metadata_schemas(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_migration_service.py b/tests/unit/gapic/aiplatform_v1/test_migration_service.py index 8fc5db291f..fc6350f2f6 100644 --- a/tests/unit/gapic/aiplatform_v1/test_migration_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_migration_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1146,9 +1146,11 @@ async def test_search_migratable_resources_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_migratable_resources(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2030,22 +2032,19 @@ def test_parse_dataset_path(): def test_dataset_path(): project = "squid" - location = "clam" - dataset = "whelk" - expected = "projects/{project}/locations/{location}/datasets/{dataset}".format( + dataset = "clam" + expected = "projects/{project}/datasets/{dataset}".format( project=project, - location=location, dataset=dataset, ) - actual = MigrationServiceClient.dataset_path(project, location, dataset) + actual = MigrationServiceClient.dataset_path(project, dataset) assert expected == actual def test_parse_dataset_path(): expected = { - "project": "octopus", - "location": "oyster", - "dataset": "nudibranch", + "project": "whelk", + "dataset": "octopus", } path = MigrationServiceClient.dataset_path(**expected) @@ -2055,19 +2054,22 @@ def test_parse_dataset_path(): def test_dataset_path(): - project = "cuttlefish" - dataset = "mussel" - expected = "projects/{project}/datasets/{dataset}".format( + project = "oyster" + location = "nudibranch" + dataset = "cuttlefish" + expected = "projects/{project}/locations/{location}/datasets/{dataset}".format( project=project, + location=location, dataset=dataset, ) - actual = MigrationServiceClient.dataset_path(project, dataset) + actual = MigrationServiceClient.dataset_path(project, location, dataset) assert expected == actual def test_parse_dataset_path(): expected = { - "project": "winkle", + "project": "mussel", + "location": "winkle", "dataset": "nautilus", } path = MigrationServiceClient.dataset_path(**expected) diff --git a/tests/unit/gapic/aiplatform_v1/test_model_garden_service.py b/tests/unit/gapic/aiplatform_v1/test_model_garden_service.py index f558229a5b..629f929804 100644 --- a/tests/unit/gapic/aiplatform_v1/test_model_garden_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_model_garden_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1/test_model_service.py b/tests/unit/gapic/aiplatform_v1/test_model_service.py index d48b4fd6bd..5fc19af97a 100644 --- a/tests/unit/gapic/aiplatform_v1/test_model_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_model_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1646,9 +1646,11 @@ async def test_list_models_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_models(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2088,9 +2090,11 @@ async def test_list_model_versions_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_versions(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2410,6 +2414,247 @@ async def test_update_model_flattened_error_async(): ) +@pytest.mark.parametrize( + "request_type", + [ + model_service.UpdateExplanationDatasetRequest, + dict, + ], +) +def test_update_explanation_dataset(request_type, transport: str = "grpc"): + client = ModelServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.update_explanation_dataset), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/spam") + response = client.update_explanation_dataset(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == model_service.UpdateExplanationDatasetRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +def test_update_explanation_dataset_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = ModelServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.update_explanation_dataset), "__call__" + ) as call: + client.update_explanation_dataset() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == model_service.UpdateExplanationDatasetRequest() + + +@pytest.mark.asyncio +async def test_update_explanation_dataset_async( + transport: str = "grpc_asyncio", + request_type=model_service.UpdateExplanationDatasetRequest, +): + client = ModelServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.update_explanation_dataset), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + response = await client.update_explanation_dataset(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == model_service.UpdateExplanationDatasetRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +@pytest.mark.asyncio +async def test_update_explanation_dataset_async_from_dict(): + await test_update_explanation_dataset_async(request_type=dict) + + +def test_update_explanation_dataset_field_headers(): + client = ModelServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = model_service.UpdateExplanationDatasetRequest() + + request.model = "model_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.update_explanation_dataset), "__call__" + ) as call: + call.return_value = operations_pb2.Operation(name="operations/op") + client.update_explanation_dataset(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "model=model_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_update_explanation_dataset_field_headers_async(): + client = ModelServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = model_service.UpdateExplanationDatasetRequest() + + request.model = "model_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.update_explanation_dataset), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/op") + ) + await client.update_explanation_dataset(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "model=model_value", + ) in kw["metadata"] + + +def test_update_explanation_dataset_flattened(): + client = ModelServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.update_explanation_dataset), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.update_explanation_dataset( + model="model_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].model + mock_val = "model_value" + assert arg == mock_val + + +def test_update_explanation_dataset_flattened_error(): + client = ModelServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.update_explanation_dataset( + model_service.UpdateExplanationDatasetRequest(), + model="model_value", + ) + + +@pytest.mark.asyncio +async def test_update_explanation_dataset_flattened_async(): + client = ModelServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.update_explanation_dataset), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.update_explanation_dataset( + model="model_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].model + mock_val = "model_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_update_explanation_dataset_flattened_error_async(): + client = ModelServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.update_explanation_dataset( + model_service.UpdateExplanationDatasetRequest(), + model="model_value", + ) + + @pytest.mark.parametrize( "request_type", [ @@ -5221,9 +5466,11 @@ async def test_list_model_evaluations_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_evaluations(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -5920,9 +6167,11 @@ async def test_list_model_evaluation_slices_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_evaluation_slices(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -6070,6 +6319,7 @@ def test_model_service_base_transport(): "list_models", "list_model_versions", "update_model", + "update_explanation_dataset", "delete_model", "delete_model_version", "merge_version_aliases", diff --git a/tests/unit/gapic/aiplatform_v1/test_pipeline_service.py b/tests/unit/gapic/aiplatform_v1/test_pipeline_service.py index 45b6a4aa86..f547b1d7fe 100644 --- a/tests/unit/gapic/aiplatform_v1/test_pipeline_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_pipeline_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1708,9 +1708,11 @@ async def test_list_training_pipelines_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_training_pipelines(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2220,6 +2222,7 @@ def test_create_pipeline_job(request_type, transport: str = "grpc"): state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) response = client.create_pipeline_job(request) @@ -2236,6 +2239,7 @@ def test_create_pipeline_job(request_type, transport: str = "grpc"): assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -2283,6 +2287,7 @@ async def test_create_pipeline_job_async( state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) ) @@ -2300,6 +2305,7 @@ async def test_create_pipeline_job_async( assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -2505,6 +2511,7 @@ def test_get_pipeline_job(request_type, transport: str = "grpc"): state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) response = client.get_pipeline_job(request) @@ -2521,6 +2528,7 @@ def test_get_pipeline_job(request_type, transport: str = "grpc"): assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -2563,6 +2571,7 @@ async def test_get_pipeline_job_async( state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) ) @@ -2580,6 +2589,7 @@ async def test_get_pipeline_job_async( assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -3166,9 +3176,11 @@ async def test_list_pipeline_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_pipeline_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_prediction_service.py b/tests/unit/gapic/aiplatform_v1/test_prediction_service.py index 904176c41e..cc6f7dabec 100644 --- a/tests/unit/gapic/aiplatform_v1/test_prediction_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_prediction_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1/test_specialist_pool_service.py b/tests/unit/gapic/aiplatform_v1/test_specialist_pool_service.py index 3fbf01d383..927a7a9674 100644 --- a/tests/unit/gapic/aiplatform_v1/test_specialist_pool_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_specialist_pool_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1674,9 +1674,11 @@ async def test_list_specialist_pools_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_specialist_pools(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1/test_tensorboard_service.py b/tests/unit/gapic/aiplatform_v1/test_tensorboard_service.py index 1469bf12ff..0ae10d5741 100644 --- a/tests/unit/gapic/aiplatform_v1/test_tensorboard_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_tensorboard_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1237,247 +1237,6 @@ async def test_get_tensorboard_flattened_error_async(): ) -@pytest.mark.parametrize( - "request_type", - [ - tensorboard_service.ReadTensorboardUsageRequest, - dict, - ], -) -def test_read_tensorboard_usage(request_type, transport: str = "grpc"): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - transport=transport, - ) - - # Everything is optional in proto3 as far as the runtime is concerned, - # and we are mocking out the actual API, so just send an empty request. - request = request_type() - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - response = client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) == 1 - _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() - - # Establish that the response is the type that we expect. - assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) - - -def test_read_tensorboard_usage_empty_call(): - # This test is a coverage failsafe to make sure that totally empty calls, - # i.e. request == None and no flattened fields passed, work. - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - transport="grpc", - ) - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - client.read_tensorboard_usage() - call.assert_called() - _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_async( - transport: str = "grpc_asyncio", - request_type=tensorboard_service.ReadTensorboardUsageRequest, -): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - transport=transport, - ) - - # Everything is optional in proto3 as far as the runtime is concerned, - # and we are mocking out the actual API, so just send an empty request. - request = request_type() - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - tensorboard_service.ReadTensorboardUsageResponse() - ) - response = await client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) - _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() - - # Establish that the response is the type that we expect. - assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_async_from_dict(): - await test_read_tensorboard_usage_async(request_type=dict) - - -def test_read_tensorboard_usage_field_headers(): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Any value that is part of the HTTP/1.1 URI should be sent as - # a field header. Set these to a non-empty value. - request = tensorboard_service.ReadTensorboardUsageRequest() - - request.tensorboard = "tensorboard_value" - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) == 1 - _, args, _ = call.mock_calls[0] - assert args[0] == request - - # Establish that the field header was sent. - _, _, kw = call.mock_calls[0] - assert ( - "x-goog-request-params", - "tensorboard=tensorboard_value", - ) in kw["metadata"] - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_field_headers_async(): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Any value that is part of the HTTP/1.1 URI should be sent as - # a field header. Set these to a non-empty value. - request = tensorboard_service.ReadTensorboardUsageRequest() - - request.tensorboard = "tensorboard_value" - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - tensorboard_service.ReadTensorboardUsageResponse() - ) - await client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) - _, args, _ = call.mock_calls[0] - assert args[0] == request - - # Establish that the field header was sent. - _, _, kw = call.mock_calls[0] - assert ( - "x-goog-request-params", - "tensorboard=tensorboard_value", - ) in kw["metadata"] - - -def test_read_tensorboard_usage_flattened(): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - # Call the method with a truthy value for each flattened field, - # using the keyword arguments to the method. - client.read_tensorboard_usage( - tensorboard="tensorboard_value", - ) - - # Establish that the underlying call was made with the expected - # request object values. - assert len(call.mock_calls) == 1 - _, args, _ = call.mock_calls[0] - arg = args[0].tensorboard - mock_val = "tensorboard_value" - assert arg == mock_val - - -def test_read_tensorboard_usage_flattened_error(): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Attempting to call a method with both a request object and flattened - # fields is an error. - with pytest.raises(ValueError): - client.read_tensorboard_usage( - tensorboard_service.ReadTensorboardUsageRequest(), - tensorboard="tensorboard_value", - ) - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_flattened_async(): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - tensorboard_service.ReadTensorboardUsageResponse() - ) - # Call the method with a truthy value for each flattened field, - # using the keyword arguments to the method. - response = await client.read_tensorboard_usage( - tensorboard="tensorboard_value", - ) - - # Establish that the underlying call was made with the expected - # request object values. - assert len(call.mock_calls) - _, args, _ = call.mock_calls[0] - arg = args[0].tensorboard - mock_val = "tensorboard_value" - assert arg == mock_val - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_flattened_error_async(): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Attempting to call a method with both a request object and flattened - # fields is an error. - with pytest.raises(ValueError): - await client.read_tensorboard_usage( - tensorboard_service.ReadTensorboardUsageRequest(), - tensorboard="tensorboard_value", - ) - - @pytest.mark.parametrize( "request_type", [ @@ -2164,9 +1923,11 @@ async def test_list_tensorboards_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_tensorboards(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2413,6 +2174,247 @@ async def test_delete_tensorboard_flattened_error_async(): ) +@pytest.mark.parametrize( + "request_type", + [ + tensorboard_service.ReadTensorboardUsageRequest, + dict, + ], +) +def test_read_tensorboard_usage(request_type, transport: str = "grpc"): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + response = client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) + + +def test_read_tensorboard_usage_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + client.read_tensorboard_usage() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_async( + transport: str = "grpc_asyncio", + request_type=tensorboard_service.ReadTensorboardUsageRequest, +): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + tensorboard_service.ReadTensorboardUsageResponse() + ) + response = await client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_async_from_dict(): + await test_read_tensorboard_usage_async(request_type=dict) + + +def test_read_tensorboard_usage_field_headers(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = tensorboard_service.ReadTensorboardUsageRequest() + + request.tensorboard = "tensorboard_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "tensorboard=tensorboard_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_field_headers_async(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = tensorboard_service.ReadTensorboardUsageRequest() + + request.tensorboard = "tensorboard_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + tensorboard_service.ReadTensorboardUsageResponse() + ) + await client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "tensorboard=tensorboard_value", + ) in kw["metadata"] + + +def test_read_tensorboard_usage_flattened(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.read_tensorboard_usage( + tensorboard="tensorboard_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].tensorboard + mock_val = "tensorboard_value" + assert arg == mock_val + + +def test_read_tensorboard_usage_flattened_error(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.read_tensorboard_usage( + tensorboard_service.ReadTensorboardUsageRequest(), + tensorboard="tensorboard_value", + ) + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_flattened_async(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + tensorboard_service.ReadTensorboardUsageResponse() + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.read_tensorboard_usage( + tensorboard="tensorboard_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].tensorboard + mock_val = "tensorboard_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_flattened_error_async(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.read_tensorboard_usage( + tensorboard_service.ReadTensorboardUsageRequest(), + tensorboard="tensorboard_value", + ) + + @pytest.mark.parametrize( "request_type", [ @@ -3688,9 +3690,11 @@ async def test_list_tensorboard_experiments_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_tensorboard_experiments(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -5442,9 +5446,11 @@ async def test_list_tensorboard_runs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_tensorboard_runs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7286,9 +7292,11 @@ async def test_list_tensorboard_time_series_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_tensorboard_time_series(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9289,9 +9297,11 @@ async def test_export_tensorboard_time_series_data_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.export_tensorboard_time_series_data(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9436,10 +9446,10 @@ def test_tensorboard_service_base_transport(): methods = ( "create_tensorboard", "get_tensorboard", - "read_tensorboard_usage", "update_tensorboard", "list_tensorboards", "delete_tensorboard", + "read_tensorboard_usage", "create_tensorboard_experiment", "get_tensorboard_experiment", "update_tensorboard_experiment", diff --git a/tests/unit/gapic/aiplatform_v1/test_vizier_service.py b/tests/unit/gapic/aiplatform_v1/test_vizier_service.py index 93577f18e9..1a6ef457fc 100644 --- a/tests/unit/gapic/aiplatform_v1/test_vizier_service.py +++ b/tests/unit/gapic/aiplatform_v1/test_vizier_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1596,9 +1596,11 @@ async def test_list_studies_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_studies(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3126,9 +3128,11 @@ async def test_list_trials_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_trials(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/__init__.py b/tests/unit/gapic/aiplatform_v1beta1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/__init__.py +++ b/tests/unit/gapic/aiplatform_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1beta1/test_dataset_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_dataset_service.py index 0ae9897217..d1ed4ac200 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_dataset_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_dataset_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -967,6 +967,7 @@ def test_get_dataset(request_type, transport: str = "grpc"): display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -983,6 +984,7 @@ def test_get_dataset(request_type, transport: str = "grpc"): assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1025,6 +1027,7 @@ async def test_get_dataset_async( display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -1042,6 +1045,7 @@ async def test_get_dataset_async( assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1215,6 +1219,7 @@ def test_update_dataset(request_type, transport: str = "grpc"): display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -1231,6 +1236,7 @@ def test_update_dataset(request_type, transport: str = "grpc"): assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1273,6 +1279,7 @@ async def test_update_dataset_async( display_name="display_name_value", description="description_value", metadata_schema_uri="metadata_schema_uri_value", + data_item_count=1584, etag="etag_value", metadata_artifact="metadata_artifact_value", ) @@ -1290,6 +1297,7 @@ async def test_update_dataset_async( assert response.display_name == "display_name_value" assert response.description == "description_value" assert response.metadata_schema_uri == "metadata_schema_uri_value" + assert response.data_item_count == 1584 assert response.etag == "etag_value" assert response.metadata_artifact == "metadata_artifact_value" @@ -1860,9 +1868,11 @@ async def test_list_datasets_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_datasets(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3014,9 +3024,11 @@ async def test_list_data_items_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_data_items(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3370,9 +3382,11 @@ async def test_search_data_items_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_data_items(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3813,14 +3827,257 @@ async def test_list_saved_queries_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_saved_queries(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token +@pytest.mark.parametrize( + "request_type", + [ + dataset_service.DeleteSavedQueryRequest, + dict, + ], +) +def test_delete_saved_query(request_type, transport: str = "grpc"): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/spam") + response = client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == dataset_service.DeleteSavedQueryRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +def test_delete_saved_query_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + client.delete_saved_query() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == dataset_service.DeleteSavedQueryRequest() + + +@pytest.mark.asyncio +async def test_delete_saved_query_async( + transport: str = "grpc_asyncio", + request_type=dataset_service.DeleteSavedQueryRequest, +): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + response = await client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == dataset_service.DeleteSavedQueryRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +@pytest.mark.asyncio +async def test_delete_saved_query_async_from_dict(): + await test_delete_saved_query_async(request_type=dict) + + +def test_delete_saved_query_field_headers(): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = dataset_service.DeleteSavedQueryRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + call.return_value = operations_pb2.Operation(name="operations/op") + client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_delete_saved_query_field_headers_async(): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = dataset_service.DeleteSavedQueryRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/op") + ) + await client.delete_saved_query(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +def test_delete_saved_query_flattened(): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.delete_saved_query( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +def test_delete_saved_query_flattened_error(): + client = DatasetServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.delete_saved_query( + dataset_service.DeleteSavedQueryRequest(), + name="name_value", + ) + + +@pytest.mark.asyncio +async def test_delete_saved_query_flattened_async(): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_saved_query), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.delete_saved_query( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_delete_saved_query_flattened_error_async(): + client = DatasetServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.delete_saved_query( + dataset_service.DeleteSavedQueryRequest(), + name="name_value", + ) + + @pytest.mark.parametrize( "request_type", [ @@ -4488,9 +4745,11 @@ async def test_list_annotations_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_annotations(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4643,6 +4902,7 @@ def test_dataset_service_base_transport(): "list_data_items", "search_data_items", "list_saved_queries", + "delete_saved_query", "get_annotation_spec", "list_annotations", "set_iam_policy", diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_deployment_resource_pool_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_deployment_resource_pool_service.py index 656b34a936..5bef8c6e85 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_deployment_resource_pool_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_deployment_resource_pool_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1737,9 +1737,11 @@ async def test_list_deployment_resource_pools_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_deployment_resource_pools(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2448,9 +2450,11 @@ async def test_query_deployed_models_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.query_deployed_models(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_endpoint_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_endpoint_service.py index 5be074e237..119c5434db 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_endpoint_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1636,9 +1636,11 @@ async def test_list_endpoints_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_endpoints(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_online_serving_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_online_serving_service.py index 7ad48592b9..355c62618d 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_online_serving_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_online_serving_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_service.py index 362ed05932..5b63bd9d18 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_featurestore_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1674,9 +1674,11 @@ async def test_list_featurestores_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_featurestores(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3125,9 +3127,11 @@ async def test_list_entity_types_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_entity_types(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4808,9 +4812,11 @@ async def test_list_features_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_features(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -6685,9 +6691,11 @@ async def test_search_features_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_features(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_index_endpoint_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_index_endpoint_service.py index 6585f089bf..5543bb022f 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_index_endpoint_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_index_endpoint_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1686,9 +1686,11 @@ async def test_list_index_endpoints_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_index_endpoints(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_index_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_index_service.py index 283f7f10aa..2a186fdac9 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_index_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_index_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1582,9 +1582,11 @@ async def test_list_indexes_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_indexes(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_job_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_job_service.py index 6736a16778..4cd59f4d3d 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_job_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_job_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1629,9 +1629,11 @@ async def test_list_custom_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_custom_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3113,9 +3115,11 @@ async def test_list_data_labeling_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_data_labeling_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4594,9 +4598,11 @@ async def test_list_hyperparameter_tuning_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_hyperparameter_tuning_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -5980,9 +5986,11 @@ async def test_list_nas_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_nas_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7118,9 +7126,11 @@ async def test_list_nas_trial_details_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_nas_trial_details(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -8133,9 +8143,11 @@ async def test_list_batch_prediction_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_batch_prediction_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9429,9 +9441,11 @@ async def test_search_model_deployment_monitoring_stats_anomalies_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_model_deployment_monitoring_stats_anomalies(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -10169,9 +10183,11 @@ async def test_list_model_deployment_monitoring_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_deployment_monitoring_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -12066,10 +12082,38 @@ def test_parse_notification_channel_path(): assert expected == actual -def test_tensorboard_path(): +def test_persistent_resource_path(): project = "cuttlefish" location = "mussel" - tensorboard = "winkle" + persistent_resource = "winkle" + expected = "projects/{project}/locations/{location}/persistentResources/{persistent_resource}".format( + project=project, + location=location, + persistent_resource=persistent_resource, + ) + actual = JobServiceClient.persistent_resource_path( + project, location, persistent_resource + ) + assert expected == actual + + +def test_parse_persistent_resource_path(): + expected = { + "project": "nautilus", + "location": "scallop", + "persistent_resource": "abalone", + } + path = JobServiceClient.persistent_resource_path(**expected) + + # Check that the path construction is reversible. + actual = JobServiceClient.parse_persistent_resource_path(path) + assert expected == actual + + +def test_tensorboard_path(): + project = "squid" + location = "clam" + tensorboard = "whelk" expected = ( "projects/{project}/locations/{location}/tensorboards/{tensorboard}".format( project=project, @@ -12083,9 +12127,9 @@ def test_tensorboard_path(): def test_parse_tensorboard_path(): expected = { - "project": "nautilus", - "location": "scallop", - "tensorboard": "abalone", + "project": "octopus", + "location": "oyster", + "tensorboard": "nudibranch", } path = JobServiceClient.tensorboard_path(**expected) @@ -12095,10 +12139,10 @@ def test_parse_tensorboard_path(): def test_trial_path(): - project = "squid" - location = "clam" - study = "whelk" - trial = "octopus" + project = "cuttlefish" + location = "mussel" + study = "winkle" + trial = "nautilus" expected = ( "projects/{project}/locations/{location}/studies/{study}/trials/{trial}".format( project=project, @@ -12113,10 +12157,10 @@ def test_trial_path(): def test_parse_trial_path(): expected = { - "project": "oyster", - "location": "nudibranch", - "study": "cuttlefish", - "trial": "mussel", + "project": "scallop", + "location": "abalone", + "study": "squid", + "trial": "clam", } path = JobServiceClient.trial_path(**expected) @@ -12126,7 +12170,7 @@ def test_parse_trial_path(): def test_common_billing_account_path(): - billing_account = "winkle" + billing_account = "whelk" expected = "billingAccounts/{billing_account}".format( billing_account=billing_account, ) @@ -12136,7 +12180,7 @@ def test_common_billing_account_path(): def test_parse_common_billing_account_path(): expected = { - "billing_account": "nautilus", + "billing_account": "octopus", } path = JobServiceClient.common_billing_account_path(**expected) @@ -12146,7 +12190,7 @@ def test_parse_common_billing_account_path(): def test_common_folder_path(): - folder = "scallop" + folder = "oyster" expected = "folders/{folder}".format( folder=folder, ) @@ -12156,7 +12200,7 @@ def test_common_folder_path(): def test_parse_common_folder_path(): expected = { - "folder": "abalone", + "folder": "nudibranch", } path = JobServiceClient.common_folder_path(**expected) @@ -12166,7 +12210,7 @@ def test_parse_common_folder_path(): def test_common_organization_path(): - organization = "squid" + organization = "cuttlefish" expected = "organizations/{organization}".format( organization=organization, ) @@ -12176,7 +12220,7 @@ def test_common_organization_path(): def test_parse_common_organization_path(): expected = { - "organization": "clam", + "organization": "mussel", } path = JobServiceClient.common_organization_path(**expected) @@ -12186,7 +12230,7 @@ def test_parse_common_organization_path(): def test_common_project_path(): - project = "whelk" + project = "winkle" expected = "projects/{project}".format( project=project, ) @@ -12196,7 +12240,7 @@ def test_common_project_path(): def test_parse_common_project_path(): expected = { - "project": "octopus", + "project": "nautilus", } path = JobServiceClient.common_project_path(**expected) @@ -12206,8 +12250,8 @@ def test_parse_common_project_path(): def test_common_location_path(): - project = "oyster" - location = "nudibranch" + project = "scallop" + location = "abalone" expected = "projects/{project}/locations/{location}".format( project=project, location=location, @@ -12218,8 +12262,8 @@ def test_common_location_path(): def test_parse_common_location_path(): expected = { - "project": "cuttlefish", - "location": "mussel", + "project": "squid", + "location": "clam", } path = JobServiceClient.common_location_path(**expected) diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_match_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_match_service.py index 3e31dbe205..45d3419658 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_match_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_match_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1beta1/test_metadata_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_metadata_service.py index 0dbf6b56be..fc720ce0f0 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_metadata_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_metadata_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1672,9 +1672,11 @@ async def test_list_metadata_stores_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_metadata_stores(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2869,9 +2871,11 @@ async def test_list_artifacts_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_artifacts(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -4535,9 +4539,11 @@ async def test_list_contexts_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_contexts(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7206,9 +7212,11 @@ async def test_list_executions_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_executions(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9420,9 +9428,11 @@ async def test_list_metadata_schemas_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_metadata_schemas(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py index 7c36d84b95..62cf6a5c91 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_migration_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1148,9 +1148,11 @@ async def test_search_migratable_resources_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.search_migratable_resources(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2006,19 +2008,22 @@ def test_parse_annotated_dataset_path(): def test_dataset_path(): project = "cuttlefish" - dataset = "mussel" - expected = "projects/{project}/datasets/{dataset}".format( + location = "mussel" + dataset = "winkle" + expected = "projects/{project}/locations/{location}/datasets/{dataset}".format( project=project, + location=location, dataset=dataset, ) - actual = MigrationServiceClient.dataset_path(project, dataset) + actual = MigrationServiceClient.dataset_path(project, location, dataset) assert expected == actual def test_parse_dataset_path(): expected = { - "project": "winkle", - "dataset": "nautilus", + "project": "nautilus", + "location": "scallop", + "dataset": "abalone", } path = MigrationServiceClient.dataset_path(**expected) @@ -2028,9 +2033,9 @@ def test_parse_dataset_path(): def test_dataset_path(): - project = "scallop" - location = "abalone" - dataset = "squid" + project = "squid" + location = "clam" + dataset = "whelk" expected = "projects/{project}/locations/{location}/datasets/{dataset}".format( project=project, location=location, @@ -2042,9 +2047,9 @@ def test_dataset_path(): def test_parse_dataset_path(): expected = { - "project": "clam", - "location": "whelk", - "dataset": "octopus", + "project": "octopus", + "location": "oyster", + "dataset": "nudibranch", } path = MigrationServiceClient.dataset_path(**expected) @@ -2054,22 +2059,19 @@ def test_parse_dataset_path(): def test_dataset_path(): - project = "oyster" - location = "nudibranch" - dataset = "cuttlefish" - expected = "projects/{project}/locations/{location}/datasets/{dataset}".format( + project = "cuttlefish" + dataset = "mussel" + expected = "projects/{project}/datasets/{dataset}".format( project=project, - location=location, dataset=dataset, ) - actual = MigrationServiceClient.dataset_path(project, location, dataset) + actual = MigrationServiceClient.dataset_path(project, dataset) assert expected == actual def test_parse_dataset_path(): expected = { - "project": "mussel", - "location": "winkle", + "project": "winkle", "dataset": "nautilus", } path = MigrationServiceClient.dataset_path(**expected) diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_model_garden_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_model_garden_service.py index a80a63eed1..a6e5303aa0 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_model_garden_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_model_garden_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1beta1/test_model_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_model_service.py index 20e72eea51..e075961c4e 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_model_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_model_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1646,9 +1646,11 @@ async def test_list_models_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_models(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2088,9 +2090,11 @@ async def test_list_model_versions_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_versions(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -5438,9 +5442,11 @@ async def test_list_model_evaluations_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_evaluations(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -6137,9 +6143,11 @@ async def test_list_model_evaluation_slices_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_model_evaluation_slices(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_persistent_resource_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_persistent_resource_service.py new file mode 100644 index 0000000000..4a44c56cde --- /dev/null +++ b/tests/unit/gapic/aiplatform_v1beta1/test_persistent_resource_service.py @@ -0,0 +1,4280 @@ +# -*- coding: utf-8 -*- +# Copyright 2023 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 + +# try/except added for compatibility with python < 3.8 +try: + from unittest import mock + from unittest.mock import AsyncMock # pragma: NO COVER +except ImportError: # pragma: NO COVER + import mock + +import grpc +from grpc.experimental import aio +import math +import pytest +from proto.marshal.rules.dates import DurationRule, TimestampRule +from proto.marshal.rules import wrappers + +from google.api_core import client_options +from google.api_core import exceptions as core_exceptions +from google.api_core import future +from google.api_core import gapic_v1 +from google.api_core import grpc_helpers +from google.api_core import grpc_helpers_async +from google.api_core import operation +from google.api_core import operation_async # type: ignore +from google.api_core import operations_v1 +from google.api_core import path_template +from google.auth import credentials as ga_credentials +from google.auth.exceptions import MutualTLSChannelError +from google.cloud.aiplatform_v1beta1.services.persistent_resource_service import ( + PersistentResourceServiceAsyncClient, +) +from google.cloud.aiplatform_v1beta1.services.persistent_resource_service import ( + PersistentResourceServiceClient, +) +from google.cloud.aiplatform_v1beta1.services.persistent_resource_service import pagers +from google.cloud.aiplatform_v1beta1.services.persistent_resource_service import ( + transports, +) +from google.cloud.aiplatform_v1beta1.types import accelerator_type +from google.cloud.aiplatform_v1beta1.types import encryption_spec +from google.cloud.aiplatform_v1beta1.types import machine_resources +from google.cloud.aiplatform_v1beta1.types import operation as gca_operation +from google.cloud.aiplatform_v1beta1.types import persistent_resource +from google.cloud.aiplatform_v1beta1.types import ( + persistent_resource as gca_persistent_resource, +) +from google.cloud.aiplatform_v1beta1.types import persistent_resource_service +from google.cloud.location import locations_pb2 +from google.iam.v1 import iam_policy_pb2 # type: ignore +from google.iam.v1 import options_pb2 # type: ignore +from google.iam.v1 import policy_pb2 # type: ignore +from google.longrunning import operations_pb2 +from google.oauth2 import service_account +from google.protobuf import any_pb2 # type: ignore +from google.protobuf import empty_pb2 # type: ignore +from google.protobuf import timestamp_pb2 # type: ignore +from google.rpc import status_pb2 # type: ignore +import google.auth + + +def client_cert_source_callback(): + return b"cert bytes", b"key bytes" + + +# If default endpoint is localhost, then default mtls endpoint will be the same. +# This method modifies the default endpoint so the client can produce a different +# mtls endpoint for endpoint testing purposes. +def modify_default_endpoint(client): + return ( + "foo.googleapis.com" + if ("localhost" in client.DEFAULT_ENDPOINT) + else client.DEFAULT_ENDPOINT + ) + + +def test__get_default_mtls_endpoint(): + api_endpoint = "example.googleapis.com" + api_mtls_endpoint = "example.mtls.googleapis.com" + sandbox_endpoint = "example.sandbox.googleapis.com" + sandbox_mtls_endpoint = "example.mtls.sandbox.googleapis.com" + non_googleapi = "api.example.com" + + assert PersistentResourceServiceClient._get_default_mtls_endpoint(None) is None + assert ( + PersistentResourceServiceClient._get_default_mtls_endpoint(api_endpoint) + == api_mtls_endpoint + ) + assert ( + PersistentResourceServiceClient._get_default_mtls_endpoint(api_mtls_endpoint) + == api_mtls_endpoint + ) + assert ( + PersistentResourceServiceClient._get_default_mtls_endpoint(sandbox_endpoint) + == sandbox_mtls_endpoint + ) + assert ( + PersistentResourceServiceClient._get_default_mtls_endpoint( + sandbox_mtls_endpoint + ) + == sandbox_mtls_endpoint + ) + assert ( + PersistentResourceServiceClient._get_default_mtls_endpoint(non_googleapi) + == non_googleapi + ) + + +@pytest.mark.parametrize( + "client_class,transport_name", + [ + (PersistentResourceServiceClient, "grpc"), + (PersistentResourceServiceAsyncClient, "grpc_asyncio"), + ], +) +def test_persistent_resource_service_client_from_service_account_info( + client_class, transport_name +): + creds = ga_credentials.AnonymousCredentials() + with mock.patch.object( + service_account.Credentials, "from_service_account_info" + ) as factory: + factory.return_value = creds + info = {"valid": True} + client = client_class.from_service_account_info(info, transport=transport_name) + assert client.transport._credentials == creds + assert isinstance(client, client_class) + + assert client.transport._host == ("aiplatform.googleapis.com:443") + + +@pytest.mark.parametrize( + "transport_class,transport_name", + [ + (transports.PersistentResourceServiceGrpcTransport, "grpc"), + (transports.PersistentResourceServiceGrpcAsyncIOTransport, "grpc_asyncio"), + ], +) +def test_persistent_resource_service_client_service_account_always_use_jwt( + transport_class, transport_name +): + with mock.patch.object( + service_account.Credentials, "with_always_use_jwt_access", create=True + ) as use_jwt: + creds = service_account.Credentials(None, None, None) + transport = transport_class(credentials=creds, always_use_jwt_access=True) + use_jwt.assert_called_once_with(True) + + with mock.patch.object( + service_account.Credentials, "with_always_use_jwt_access", create=True + ) as use_jwt: + creds = service_account.Credentials(None, None, None) + transport = transport_class(credentials=creds, always_use_jwt_access=False) + use_jwt.assert_not_called() + + +@pytest.mark.parametrize( + "client_class,transport_name", + [ + (PersistentResourceServiceClient, "grpc"), + (PersistentResourceServiceAsyncClient, "grpc_asyncio"), + ], +) +def test_persistent_resource_service_client_from_service_account_file( + client_class, transport_name +): + creds = ga_credentials.AnonymousCredentials() + with mock.patch.object( + service_account.Credentials, "from_service_account_file" + ) as factory: + factory.return_value = creds + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) + assert client.transport._credentials == creds + assert isinstance(client, client_class) + + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) + assert client.transport._credentials == creds + assert isinstance(client, client_class) + + assert client.transport._host == ("aiplatform.googleapis.com:443") + + +def test_persistent_resource_service_client_get_transport_class(): + transport = PersistentResourceServiceClient.get_transport_class() + available_transports = [ + transports.PersistentResourceServiceGrpcTransport, + ] + assert transport in available_transports + + transport = PersistentResourceServiceClient.get_transport_class("grpc") + assert transport == transports.PersistentResourceServiceGrpcTransport + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name", + [ + ( + PersistentResourceServiceClient, + transports.PersistentResourceServiceGrpcTransport, + "grpc", + ), + ( + PersistentResourceServiceAsyncClient, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + "grpc_asyncio", + ), + ], +) +@mock.patch.object( + PersistentResourceServiceClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(PersistentResourceServiceClient), +) +@mock.patch.object( + PersistentResourceServiceAsyncClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(PersistentResourceServiceAsyncClient), +) +def test_persistent_resource_service_client_client_options( + client_class, transport_class, transport_name +): + # Check that if channel is provided we won't create a new one. + with mock.patch.object( + PersistentResourceServiceClient, "get_transport_class" + ) as gtc: + transport = transport_class(credentials=ga_credentials.AnonymousCredentials()) + client = client_class(transport=transport) + gtc.assert_not_called() + + # Check that if channel is provided via str we will create a new one. + with mock.patch.object( + PersistentResourceServiceClient, "get_transport_class" + ) as gtc: + client = client_class(transport=transport_name) + gtc.assert_called() + + # Check the case api_endpoint is provided. + options = client_options.ClientOptions(api_endpoint="squid.clam.whelk") + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(transport=transport_name, client_options=options) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host="squid.clam.whelk", + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is + # "never". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}): + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT is + # "always". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}): + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_MTLS_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case api_endpoint is not provided and GOOGLE_API_USE_MTLS_ENDPOINT has + # unsupported value. + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "Unsupported"}): + with pytest.raises(MutualTLSChannelError): + client = client_class(transport=transport_name) + + # Check the case GOOGLE_API_USE_CLIENT_CERTIFICATE has unsupported value. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "Unsupported"} + ): + with pytest.raises(ValueError): + client = client_class(transport=transport_name) + + # Check the case quota_project_id is provided + options = client_options.ClientOptions(quota_project_id="octopus") + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id="octopus", + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + # Check the case api_endpoint is provided + options = client_options.ClientOptions( + api_audience="https://language.googleapis.com" + ) + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience="https://language.googleapis.com", + ) + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name,use_client_cert_env", + [ + ( + PersistentResourceServiceClient, + transports.PersistentResourceServiceGrpcTransport, + "grpc", + "true", + ), + ( + PersistentResourceServiceAsyncClient, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + "grpc_asyncio", + "true", + ), + ( + PersistentResourceServiceClient, + transports.PersistentResourceServiceGrpcTransport, + "grpc", + "false", + ), + ( + PersistentResourceServiceAsyncClient, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + "grpc_asyncio", + "false", + ), + ], +) +@mock.patch.object( + PersistentResourceServiceClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(PersistentResourceServiceClient), +) +@mock.patch.object( + PersistentResourceServiceAsyncClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(PersistentResourceServiceAsyncClient), +) +@mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "auto"}) +def test_persistent_resource_service_client_mtls_env_auto( + client_class, transport_class, transport_name, use_client_cert_env +): + # This tests the endpoint autoswitch behavior. Endpoint is autoswitched to the default + # mtls endpoint, if GOOGLE_API_USE_CLIENT_CERTIFICATE is "true" and client cert exists. + + # Check the case client_cert_source is provided. Whether client cert is used depends on + # GOOGLE_API_USE_CLIENT_CERTIFICATE value. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env} + ): + options = client_options.ClientOptions( + client_cert_source=client_cert_source_callback + ) + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + + if use_client_cert_env == "false": + expected_client_cert_source = None + expected_host = client.DEFAULT_ENDPOINT + else: + expected_client_cert_source = client_cert_source_callback + expected_host = client.DEFAULT_MTLS_ENDPOINT + + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=expected_host, + scopes=None, + client_cert_source_for_mtls=expected_client_cert_source, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case ADC client cert is provided. Whether client cert is used depends on + # GOOGLE_API_USE_CLIENT_CERTIFICATE value. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env} + ): + with mock.patch.object(transport_class, "__init__") as patched: + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=True, + ): + with mock.patch( + "google.auth.transport.mtls.default_client_cert_source", + return_value=client_cert_source_callback, + ): + if use_client_cert_env == "false": + expected_host = client.DEFAULT_ENDPOINT + expected_client_cert_source = None + else: + expected_host = client.DEFAULT_MTLS_ENDPOINT + expected_client_cert_source = client_cert_source_callback + + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=expected_host, + scopes=None, + client_cert_source_for_mtls=expected_client_cert_source, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # Check the case client_cert_source and ADC client cert are not provided. + with mock.patch.dict( + os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": use_client_cert_env} + ): + with mock.patch.object(transport_class, "__init__") as patched: + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=False, + ): + patched.return_value = None + client = client_class(transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + +@pytest.mark.parametrize( + "client_class", + [PersistentResourceServiceClient, PersistentResourceServiceAsyncClient], +) +@mock.patch.object( + PersistentResourceServiceClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(PersistentResourceServiceClient), +) +@mock.patch.object( + PersistentResourceServiceAsyncClient, + "DEFAULT_ENDPOINT", + modify_default_endpoint(PersistentResourceServiceAsyncClient), +) +def test_persistent_resource_service_client_get_mtls_endpoint_and_cert_source( + client_class, +): + mock_client_cert_source = mock.Mock() + + # Test the case GOOGLE_API_USE_CLIENT_CERTIFICATE is "true". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}): + mock_api_endpoint = "foo" + options = client_options.ClientOptions( + client_cert_source=mock_client_cert_source, api_endpoint=mock_api_endpoint + ) + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source( + options + ) + assert api_endpoint == mock_api_endpoint + assert cert_source == mock_client_cert_source + + # Test the case GOOGLE_API_USE_CLIENT_CERTIFICATE is "false". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "false"}): + mock_client_cert_source = mock.Mock() + mock_api_endpoint = "foo" + options = client_options.ClientOptions( + client_cert_source=mock_client_cert_source, api_endpoint=mock_api_endpoint + ) + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source( + options + ) + assert api_endpoint == mock_api_endpoint + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "never". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "never"}): + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_ENDPOINT + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "always". + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_MTLS_ENDPOINT": "always"}): + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_MTLS_ENDPOINT + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "auto" and default cert doesn't exist. + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}): + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=False, + ): + api_endpoint, cert_source = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_ENDPOINT + assert cert_source is None + + # Test the case GOOGLE_API_USE_MTLS_ENDPOINT is "auto" and default cert exists. + with mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"}): + with mock.patch( + "google.auth.transport.mtls.has_default_client_cert_source", + return_value=True, + ): + with mock.patch( + "google.auth.transport.mtls.default_client_cert_source", + return_value=mock_client_cert_source, + ): + ( + api_endpoint, + cert_source, + ) = client_class.get_mtls_endpoint_and_cert_source() + assert api_endpoint == client_class.DEFAULT_MTLS_ENDPOINT + assert cert_source == mock_client_cert_source + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name", + [ + ( + PersistentResourceServiceClient, + transports.PersistentResourceServiceGrpcTransport, + "grpc", + ), + ( + PersistentResourceServiceAsyncClient, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + "grpc_asyncio", + ), + ], +) +def test_persistent_resource_service_client_client_options_scopes( + client_class, transport_class, transport_name +): + # Check the case scopes are provided. + options = client_options.ClientOptions( + scopes=["1", "2"], + ) + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=["1", "2"], + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name,grpc_helpers", + [ + ( + PersistentResourceServiceClient, + transports.PersistentResourceServiceGrpcTransport, + "grpc", + grpc_helpers, + ), + ( + PersistentResourceServiceAsyncClient, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + "grpc_asyncio", + grpc_helpers_async, + ), + ], +) +def test_persistent_resource_service_client_client_options_credentials_file( + client_class, transport_class, transport_name, grpc_helpers +): + # Check the case credentials file is provided. + options = client_options.ClientOptions(credentials_file="credentials.json") + + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file="credentials.json", + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + +def test_persistent_resource_service_client_client_options_from_dict(): + with mock.patch( + "google.cloud.aiplatform_v1beta1.services.persistent_resource_service.transports.PersistentResourceServiceGrpcTransport.__init__" + ) as grpc_transport: + grpc_transport.return_value = None + client = PersistentResourceServiceClient( + client_options={"api_endpoint": "squid.clam.whelk"} + ) + grpc_transport.assert_called_once_with( + credentials=None, + credentials_file=None, + host="squid.clam.whelk", + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + +@pytest.mark.parametrize( + "client_class,transport_class,transport_name,grpc_helpers", + [ + ( + PersistentResourceServiceClient, + transports.PersistentResourceServiceGrpcTransport, + "grpc", + grpc_helpers, + ), + ( + PersistentResourceServiceAsyncClient, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + "grpc_asyncio", + grpc_helpers_async, + ), + ], +) +def test_persistent_resource_service_client_create_channel_credentials_file( + client_class, transport_class, transport_name, grpc_helpers +): + # Check the case credentials file is provided. + options = client_options.ClientOptions(credentials_file="credentials.json") + + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options, transport=transport_name) + patched.assert_called_once_with( + credentials=None, + credentials_file="credentials.json", + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) + + # test that the credentials from file are saved and used as the credentials. + with mock.patch.object( + google.auth, "load_credentials_from_file", autospec=True + ) as load_creds, mock.patch.object( + google.auth, "default", autospec=True + ) as adc, mock.patch.object( + grpc_helpers, "create_channel" + ) as create_channel: + creds = ga_credentials.AnonymousCredentials() + file_creds = ga_credentials.AnonymousCredentials() + load_creds.return_value = (file_creds, None) + adc.return_value = (creds, None) + client = client_class(client_options=options, transport=transport_name) + create_channel.assert_called_with( + "aiplatform.googleapis.com:443", + credentials=file_creds, + credentials_file=None, + quota_project_id=None, + default_scopes=("https://www.googleapis.com/auth/cloud-platform",), + scopes=None, + default_host="aiplatform.googleapis.com", + ssl_credentials=None, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], + ) + + +@pytest.mark.parametrize( + "request_type", + [ + persistent_resource_service.CreatePersistentResourceRequest, + dict, + ], +) +def test_create_persistent_resource(request_type, transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.create_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/spam") + response = client.create_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.CreatePersistentResourceRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +def test_create_persistent_resource_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.create_persistent_resource), "__call__" + ) as call: + client.create_persistent_resource() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.CreatePersistentResourceRequest() + + +@pytest.mark.asyncio +async def test_create_persistent_resource_async( + transport: str = "grpc_asyncio", + request_type=persistent_resource_service.CreatePersistentResourceRequest, +): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.create_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + response = await client.create_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.CreatePersistentResourceRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +@pytest.mark.asyncio +async def test_create_persistent_resource_async_from_dict(): + await test_create_persistent_resource_async(request_type=dict) + + +def test_create_persistent_resource_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.CreatePersistentResourceRequest() + + request.parent = "parent_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.create_persistent_resource), "__call__" + ) as call: + call.return_value = operations_pb2.Operation(name="operations/op") + client.create_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "parent=parent_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_create_persistent_resource_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.CreatePersistentResourceRequest() + + request.parent = "parent_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.create_persistent_resource), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/op") + ) + await client.create_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "parent=parent_value", + ) in kw["metadata"] + + +def test_create_persistent_resource_flattened(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.create_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.create_persistent_resource( + parent="parent_value", + persistent_resource=gca_persistent_resource.PersistentResource( + name="name_value" + ), + persistent_resource_id="persistent_resource_id_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].persistent_resource + mock_val = gca_persistent_resource.PersistentResource(name="name_value") + assert arg == mock_val + arg = args[0].persistent_resource_id + mock_val = "persistent_resource_id_value" + assert arg == mock_val + + +def test_create_persistent_resource_flattened_error(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.create_persistent_resource( + persistent_resource_service.CreatePersistentResourceRequest(), + parent="parent_value", + persistent_resource=gca_persistent_resource.PersistentResource( + name="name_value" + ), + persistent_resource_id="persistent_resource_id_value", + ) + + +@pytest.mark.asyncio +async def test_create_persistent_resource_flattened_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.create_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.create_persistent_resource( + parent="parent_value", + persistent_resource=gca_persistent_resource.PersistentResource( + name="name_value" + ), + persistent_resource_id="persistent_resource_id_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].persistent_resource + mock_val = gca_persistent_resource.PersistentResource(name="name_value") + assert arg == mock_val + arg = args[0].persistent_resource_id + mock_val = "persistent_resource_id_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_create_persistent_resource_flattened_error_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.create_persistent_resource( + persistent_resource_service.CreatePersistentResourceRequest(), + parent="parent_value", + persistent_resource=gca_persistent_resource.PersistentResource( + name="name_value" + ), + persistent_resource_id="persistent_resource_id_value", + ) + + +@pytest.mark.parametrize( + "request_type", + [ + persistent_resource_service.GetPersistentResourceRequest, + dict, + ], +) +def test_get_persistent_resource(request_type, transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.get_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = persistent_resource.PersistentResource( + name="name_value", + display_name="display_name_value", + state=persistent_resource.PersistentResource.State.PROVISIONING, + network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], + ) + response = client.get_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.GetPersistentResourceRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, persistent_resource.PersistentResource) + assert response.name == "name_value" + assert response.display_name == "display_name_value" + assert response.state == persistent_resource.PersistentResource.State.PROVISIONING + assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] + + +def test_get_persistent_resource_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.get_persistent_resource), "__call__" + ) as call: + client.get_persistent_resource() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.GetPersistentResourceRequest() + + +@pytest.mark.asyncio +async def test_get_persistent_resource_async( + transport: str = "grpc_asyncio", + request_type=persistent_resource_service.GetPersistentResourceRequest, +): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.get_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + persistent_resource.PersistentResource( + name="name_value", + display_name="display_name_value", + state=persistent_resource.PersistentResource.State.PROVISIONING, + network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], + ) + ) + response = await client.get_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.GetPersistentResourceRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, persistent_resource.PersistentResource) + assert response.name == "name_value" + assert response.display_name == "display_name_value" + assert response.state == persistent_resource.PersistentResource.State.PROVISIONING + assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] + + +@pytest.mark.asyncio +async def test_get_persistent_resource_async_from_dict(): + await test_get_persistent_resource_async(request_type=dict) + + +def test_get_persistent_resource_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.GetPersistentResourceRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.get_persistent_resource), "__call__" + ) as call: + call.return_value = persistent_resource.PersistentResource() + client.get_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_get_persistent_resource_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.GetPersistentResourceRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.get_persistent_resource), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + persistent_resource.PersistentResource() + ) + await client.get_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +def test_get_persistent_resource_flattened(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.get_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = persistent_resource.PersistentResource() + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.get_persistent_resource( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +def test_get_persistent_resource_flattened_error(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.get_persistent_resource( + persistent_resource_service.GetPersistentResourceRequest(), + name="name_value", + ) + + +@pytest.mark.asyncio +async def test_get_persistent_resource_flattened_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.get_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = persistent_resource.PersistentResource() + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + persistent_resource.PersistentResource() + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.get_persistent_resource( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_get_persistent_resource_flattened_error_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.get_persistent_resource( + persistent_resource_service.GetPersistentResourceRequest(), + name="name_value", + ) + + +@pytest.mark.parametrize( + "request_type", + [ + persistent_resource_service.ListPersistentResourcesRequest, + dict, + ], +) +def test_list_persistent_resources(request_type, transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = persistent_resource_service.ListPersistentResourcesResponse( + next_page_token="next_page_token_value", + ) + response = client.list_persistent_resources(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.ListPersistentResourcesRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, pagers.ListPersistentResourcesPager) + assert response.next_page_token == "next_page_token_value" + + +def test_list_persistent_resources_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + client.list_persistent_resources() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.ListPersistentResourcesRequest() + + +@pytest.mark.asyncio +async def test_list_persistent_resources_async( + transport: str = "grpc_asyncio", + request_type=persistent_resource_service.ListPersistentResourcesRequest, +): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + persistent_resource_service.ListPersistentResourcesResponse( + next_page_token="next_page_token_value", + ) + ) + response = await client.list_persistent_resources(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.ListPersistentResourcesRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, pagers.ListPersistentResourcesAsyncPager) + assert response.next_page_token == "next_page_token_value" + + +@pytest.mark.asyncio +async def test_list_persistent_resources_async_from_dict(): + await test_list_persistent_resources_async(request_type=dict) + + +def test_list_persistent_resources_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.ListPersistentResourcesRequest() + + request.parent = "parent_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + call.return_value = ( + persistent_resource_service.ListPersistentResourcesResponse() + ) + client.list_persistent_resources(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "parent=parent_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_list_persistent_resources_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.ListPersistentResourcesRequest() + + request.parent = "parent_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + persistent_resource_service.ListPersistentResourcesResponse() + ) + await client.list_persistent_resources(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "parent=parent_value", + ) in kw["metadata"] + + +def test_list_persistent_resources_flattened(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = ( + persistent_resource_service.ListPersistentResourcesResponse() + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.list_persistent_resources( + parent="parent_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + + +def test_list_persistent_resources_flattened_error(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.list_persistent_resources( + persistent_resource_service.ListPersistentResourcesRequest(), + parent="parent_value", + ) + + +@pytest.mark.asyncio +async def test_list_persistent_resources_flattened_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = ( + persistent_resource_service.ListPersistentResourcesResponse() + ) + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + persistent_resource_service.ListPersistentResourcesResponse() + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.list_persistent_resources( + parent="parent_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_list_persistent_resources_flattened_error_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.list_persistent_resources( + persistent_resource_service.ListPersistentResourcesRequest(), + parent="parent_value", + ) + + +def test_list_persistent_resources_pager(transport_name: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials, + transport=transport_name, + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + # Set the response to a series of pages. + call.side_effect = ( + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + next_page_token="abc", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[], + next_page_token="def", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + ], + next_page_token="ghi", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + ), + RuntimeError, + ) + + metadata = () + metadata = tuple(metadata) + ( + gapic_v1.routing_header.to_grpc_metadata((("parent", ""),)), + ) + pager = client.list_persistent_resources(request={}) + + assert pager._metadata == metadata + + results = list(pager) + assert len(results) == 6 + assert all( + isinstance(i, persistent_resource.PersistentResource) for i in results + ) + + +def test_list_persistent_resources_pages(transport_name: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials, + transport=transport_name, + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), "__call__" + ) as call: + # Set the response to a series of pages. + call.side_effect = ( + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + next_page_token="abc", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[], + next_page_token="def", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + ], + next_page_token="ghi", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + ), + RuntimeError, + ) + pages = list(client.list_persistent_resources(request={}).pages) + for page_, token in zip(pages, ["abc", "def", "ghi", ""]): + assert page_.raw_page.next_page_token == token + + +@pytest.mark.asyncio +async def test_list_persistent_resources_async_pager(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials, + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), + "__call__", + new_callable=mock.AsyncMock, + ) as call: + # Set the response to a series of pages. + call.side_effect = ( + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + next_page_token="abc", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[], + next_page_token="def", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + ], + next_page_token="ghi", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + ), + RuntimeError, + ) + async_pager = await client.list_persistent_resources( + request={}, + ) + assert async_pager.next_page_token == "abc" + responses = [] + async for response in async_pager: # pragma: no branch + responses.append(response) + + assert len(responses) == 6 + assert all( + isinstance(i, persistent_resource.PersistentResource) for i in responses + ) + + +@pytest.mark.asyncio +async def test_list_persistent_resources_async_pages(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials, + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_persistent_resources), + "__call__", + new_callable=mock.AsyncMock, + ) as call: + # Set the response to a series of pages. + call.side_effect = ( + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + next_page_token="abc", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[], + next_page_token="def", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + ], + next_page_token="ghi", + ), + persistent_resource_service.ListPersistentResourcesResponse( + persistent_resources=[ + persistent_resource.PersistentResource(), + persistent_resource.PersistentResource(), + ], + ), + RuntimeError, + ) + pages = [] + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch + await client.list_persistent_resources(request={}) + ).pages: + pages.append(page_) + for page_, token in zip(pages, ["abc", "def", "ghi", ""]): + assert page_.raw_page.next_page_token == token + + +@pytest.mark.parametrize( + "request_type", + [ + persistent_resource_service.DeletePersistentResourceRequest, + dict, + ], +) +def test_delete_persistent_resource(request_type, transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/spam") + response = client.delete_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.DeletePersistentResourceRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +def test_delete_persistent_resource_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_persistent_resource), "__call__" + ) as call: + client.delete_persistent_resource() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.DeletePersistentResourceRequest() + + +@pytest.mark.asyncio +async def test_delete_persistent_resource_async( + transport: str = "grpc_asyncio", + request_type=persistent_resource_service.DeletePersistentResourceRequest, +): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + response = await client.delete_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == persistent_resource_service.DeletePersistentResourceRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +@pytest.mark.asyncio +async def test_delete_persistent_resource_async_from_dict(): + await test_delete_persistent_resource_async(request_type=dict) + + +def test_delete_persistent_resource_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.DeletePersistentResourceRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_persistent_resource), "__call__" + ) as call: + call.return_value = operations_pb2.Operation(name="operations/op") + client.delete_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_delete_persistent_resource_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = persistent_resource_service.DeletePersistentResourceRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_persistent_resource), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/op") + ) + await client.delete_persistent_resource(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +def test_delete_persistent_resource_flattened(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.delete_persistent_resource( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +def test_delete_persistent_resource_flattened_error(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.delete_persistent_resource( + persistent_resource_service.DeletePersistentResourceRequest(), + name="name_value", + ) + + +@pytest.mark.asyncio +async def test_delete_persistent_resource_flattened_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_persistent_resource), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.delete_persistent_resource( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_delete_persistent_resource_flattened_error_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.delete_persistent_resource( + persistent_resource_service.DeletePersistentResourceRequest(), + name="name_value", + ) + + +def test_credentials_transport_error(): + # It is an error to provide credentials and a transport instance. + transport = transports.PersistentResourceServiceGrpcTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # It is an error to provide a credentials file and a transport instance. + transport = transports.PersistentResourceServiceGrpcTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = PersistentResourceServiceClient( + client_options={"credentials_file": "credentials.json"}, + transport=transport, + ) + + # It is an error to provide an api_key and a transport instance. + transport = transports.PersistentResourceServiceGrpcTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + options = client_options.ClientOptions() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = PersistentResourceServiceClient( + client_options=options, + transport=transport, + ) + + # It is an error to provide an api_key and a credential. + options = mock.Mock() + options.api_key = "api_key" + with pytest.raises(ValueError): + client = PersistentResourceServiceClient( + client_options=options, credentials=ga_credentials.AnonymousCredentials() + ) + + # It is an error to provide scopes and a transport instance. + transport = transports.PersistentResourceServiceGrpcTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + with pytest.raises(ValueError): + client = PersistentResourceServiceClient( + client_options={"scopes": ["1", "2"]}, + transport=transport, + ) + + +def test_transport_instance(): + # A client may be instantiated with a custom transport instance. + transport = transports.PersistentResourceServiceGrpcTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + client = PersistentResourceServiceClient(transport=transport) + assert client.transport is transport + + +def test_transport_get_channel(): + # A client may be instantiated with a custom transport instance. + transport = transports.PersistentResourceServiceGrpcTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + channel = transport.grpc_channel + assert channel + + transport = transports.PersistentResourceServiceGrpcAsyncIOTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + channel = transport.grpc_channel + assert channel + + +@pytest.mark.parametrize( + "transport_class", + [ + transports.PersistentResourceServiceGrpcTransport, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + ], +) +def test_transport_adc(transport_class): + # Test default credentials are used if not provided. + with mock.patch.object(google.auth, "default") as adc: + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + transport_class() + adc.assert_called_once() + + +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + ], +) +def test_transport_kind(transport_name): + transport = PersistentResourceServiceClient.get_transport_class(transport_name)( + credentials=ga_credentials.AnonymousCredentials(), + ) + assert transport.kind == transport_name + + +def test_transport_grpc_default(): + # A client should use the gRPC transport by default. + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + assert isinstance( + client.transport, + transports.PersistentResourceServiceGrpcTransport, + ) + + +def test_persistent_resource_service_base_transport_error(): + # Passing both a credentials object and credentials_file should raise an error + with pytest.raises(core_exceptions.DuplicateCredentialArgs): + transport = transports.PersistentResourceServiceTransport( + credentials=ga_credentials.AnonymousCredentials(), + credentials_file="credentials.json", + ) + + +def test_persistent_resource_service_base_transport(): + # Instantiate the base transport. + with mock.patch( + "google.cloud.aiplatform_v1beta1.services.persistent_resource_service.transports.PersistentResourceServiceTransport.__init__" + ) as Transport: + Transport.return_value = None + transport = transports.PersistentResourceServiceTransport( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Every method on the transport should just blindly + # raise NotImplementedError. + methods = ( + "create_persistent_resource", + "get_persistent_resource", + "list_persistent_resources", + "delete_persistent_resource", + "set_iam_policy", + "get_iam_policy", + "test_iam_permissions", + "get_location", + "list_locations", + "get_operation", + "wait_operation", + "cancel_operation", + "delete_operation", + "list_operations", + ) + for method in methods: + with pytest.raises(NotImplementedError): + getattr(transport, method)(request=object()) + + with pytest.raises(NotImplementedError): + transport.close() + + # Additionally, the LRO client (a property) should + # also raise NotImplementedError + with pytest.raises(NotImplementedError): + transport.operations_client + + # Catch all for all remaining methods and properties + remainder = [ + "kind", + ] + for r in remainder: + with pytest.raises(NotImplementedError): + getattr(transport, r)() + + +def test_persistent_resource_service_base_transport_with_credentials_file(): + # Instantiate the base transport with a credentials file + with mock.patch.object( + google.auth, "load_credentials_from_file", autospec=True + ) as load_creds, mock.patch( + "google.cloud.aiplatform_v1beta1.services.persistent_resource_service.transports.PersistentResourceServiceTransport._prep_wrapped_messages" + ) as Transport: + Transport.return_value = None + load_creds.return_value = (ga_credentials.AnonymousCredentials(), None) + transport = transports.PersistentResourceServiceTransport( + credentials_file="credentials.json", + quota_project_id="octopus", + ) + load_creds.assert_called_once_with( + "credentials.json", + scopes=None, + default_scopes=("https://www.googleapis.com/auth/cloud-platform",), + quota_project_id="octopus", + ) + + +def test_persistent_resource_service_base_transport_with_adc(): + # Test the default credentials are used if credentials and credentials_file are None. + with mock.patch.object(google.auth, "default", autospec=True) as adc, mock.patch( + "google.cloud.aiplatform_v1beta1.services.persistent_resource_service.transports.PersistentResourceServiceTransport._prep_wrapped_messages" + ) as Transport: + Transport.return_value = None + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + transport = transports.PersistentResourceServiceTransport() + adc.assert_called_once() + + +def test_persistent_resource_service_auth_adc(): + # If no credentials are provided, we should use ADC credentials. + with mock.patch.object(google.auth, "default", autospec=True) as adc: + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + PersistentResourceServiceClient() + adc.assert_called_once_with( + scopes=None, + default_scopes=("https://www.googleapis.com/auth/cloud-platform",), + quota_project_id=None, + ) + + +@pytest.mark.parametrize( + "transport_class", + [ + transports.PersistentResourceServiceGrpcTransport, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + ], +) +def test_persistent_resource_service_transport_auth_adc(transport_class): + # If credentials and host are not provided, the transport class should use + # ADC credentials. + with mock.patch.object(google.auth, "default", autospec=True) as adc: + adc.return_value = (ga_credentials.AnonymousCredentials(), None) + transport_class(quota_project_id="octopus", scopes=["1", "2"]) + adc.assert_called_once_with( + scopes=["1", "2"], + default_scopes=("https://www.googleapis.com/auth/cloud-platform",), + quota_project_id="octopus", + ) + + +@pytest.mark.parametrize( + "transport_class", + [ + transports.PersistentResourceServiceGrpcTransport, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + ], +) +def test_persistent_resource_service_transport_auth_gdch_credentials(transport_class): + host = "https://language.com" + api_audience_tests = [None, "https://language2.com"] + api_audience_expect = [host, "https://language2.com"] + for t, e in zip(api_audience_tests, api_audience_expect): + with mock.patch.object(google.auth, "default", autospec=True) as adc: + gdch_mock = mock.MagicMock() + type(gdch_mock).with_gdch_audience = mock.PropertyMock( + return_value=gdch_mock + ) + adc.return_value = (gdch_mock, None) + transport_class(host=host, api_audience=t) + gdch_mock.with_gdch_audience.assert_called_once_with(e) + + +@pytest.mark.parametrize( + "transport_class,grpc_helpers", + [ + (transports.PersistentResourceServiceGrpcTransport, grpc_helpers), + (transports.PersistentResourceServiceGrpcAsyncIOTransport, grpc_helpers_async), + ], +) +def test_persistent_resource_service_transport_create_channel( + transport_class, grpc_helpers +): + # If credentials and host are not provided, the transport class should use + # ADC credentials. + with mock.patch.object( + google.auth, "default", autospec=True + ) as adc, mock.patch.object( + grpc_helpers, "create_channel", autospec=True + ) as create_channel: + creds = ga_credentials.AnonymousCredentials() + adc.return_value = (creds, None) + transport_class(quota_project_id="octopus", scopes=["1", "2"]) + + create_channel.assert_called_with( + "aiplatform.googleapis.com:443", + credentials=creds, + credentials_file=None, + quota_project_id="octopus", + default_scopes=("https://www.googleapis.com/auth/cloud-platform",), + scopes=["1", "2"], + default_host="aiplatform.googleapis.com", + ssl_credentials=None, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], + ) + + +@pytest.mark.parametrize( + "transport_class", + [ + transports.PersistentResourceServiceGrpcTransport, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + ], +) +def test_persistent_resource_service_grpc_transport_client_cert_source_for_mtls( + transport_class, +): + cred = ga_credentials.AnonymousCredentials() + + # Check ssl_channel_credentials is used if provided. + with mock.patch.object(transport_class, "create_channel") as mock_create_channel: + mock_ssl_channel_creds = mock.Mock() + transport_class( + host="squid.clam.whelk", + credentials=cred, + ssl_channel_credentials=mock_ssl_channel_creds, + ) + mock_create_channel.assert_called_once_with( + "squid.clam.whelk:443", + credentials=cred, + credentials_file=None, + scopes=None, + ssl_credentials=mock_ssl_channel_creds, + quota_project_id=None, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], + ) + + # Check if ssl_channel_credentials is not provided, then client_cert_source_for_mtls + # is used. + with mock.patch.object(transport_class, "create_channel", return_value=mock.Mock()): + with mock.patch("grpc.ssl_channel_credentials") as mock_ssl_cred: + transport_class( + credentials=cred, + client_cert_source_for_mtls=client_cert_source_callback, + ) + expected_cert, expected_key = client_cert_source_callback() + mock_ssl_cred.assert_called_once_with( + certificate_chain=expected_cert, private_key=expected_key + ) + + +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_persistent_resource_service_host_no_port(transport_name): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + client_options=client_options.ClientOptions( + api_endpoint="aiplatform.googleapis.com" + ), + transport=transport_name, + ) + assert client.transport._host == ("aiplatform.googleapis.com:443") + + +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_persistent_resource_service_host_with_port(transport_name): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + client_options=client_options.ClientOptions( + api_endpoint="aiplatform.googleapis.com:8000" + ), + transport=transport_name, + ) + assert client.transport._host == ("aiplatform.googleapis.com:8000") + + +def test_persistent_resource_service_grpc_transport_channel(): + channel = grpc.secure_channel("http://localhost/", grpc.local_channel_credentials()) + + # Check that channel is used if provided. + transport = transports.PersistentResourceServiceGrpcTransport( + host="squid.clam.whelk", + channel=channel, + ) + assert transport.grpc_channel == channel + assert transport._host == "squid.clam.whelk:443" + assert transport._ssl_channel_credentials == None + + +def test_persistent_resource_service_grpc_asyncio_transport_channel(): + channel = aio.secure_channel("http://localhost/", grpc.local_channel_credentials()) + + # Check that channel is used if provided. + transport = transports.PersistentResourceServiceGrpcAsyncIOTransport( + host="squid.clam.whelk", + channel=channel, + ) + assert transport.grpc_channel == channel + assert transport._host == "squid.clam.whelk:443" + assert transport._ssl_channel_credentials == None + + +# Remove this test when deprecated arguments (api_mtls_endpoint, client_cert_source) are +# removed from grpc/grpc_asyncio transport constructor. +@pytest.mark.parametrize( + "transport_class", + [ + transports.PersistentResourceServiceGrpcTransport, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + ], +) +def test_persistent_resource_service_transport_channel_mtls_with_client_cert_source( + transport_class, +): + with mock.patch( + "grpc.ssl_channel_credentials", autospec=True + ) as grpc_ssl_channel_cred: + with mock.patch.object( + transport_class, "create_channel" + ) as grpc_create_channel: + mock_ssl_cred = mock.Mock() + grpc_ssl_channel_cred.return_value = mock_ssl_cred + + mock_grpc_channel = mock.Mock() + grpc_create_channel.return_value = mock_grpc_channel + + cred = ga_credentials.AnonymousCredentials() + with pytest.warns(DeprecationWarning): + with mock.patch.object(google.auth, "default") as adc: + adc.return_value = (cred, None) + transport = transport_class( + host="squid.clam.whelk", + api_mtls_endpoint="mtls.squid.clam.whelk", + client_cert_source=client_cert_source_callback, + ) + adc.assert_called_once() + + grpc_ssl_channel_cred.assert_called_once_with( + certificate_chain=b"cert bytes", private_key=b"key bytes" + ) + grpc_create_channel.assert_called_once_with( + "mtls.squid.clam.whelk:443", + credentials=cred, + credentials_file=None, + scopes=None, + ssl_credentials=mock_ssl_cred, + quota_project_id=None, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], + ) + assert transport.grpc_channel == mock_grpc_channel + assert transport._ssl_channel_credentials == mock_ssl_cred + + +# Remove this test when deprecated arguments (api_mtls_endpoint, client_cert_source) are +# removed from grpc/grpc_asyncio transport constructor. +@pytest.mark.parametrize( + "transport_class", + [ + transports.PersistentResourceServiceGrpcTransport, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + ], +) +def test_persistent_resource_service_transport_channel_mtls_with_adc(transport_class): + mock_ssl_cred = mock.Mock() + with mock.patch.multiple( + "google.auth.transport.grpc.SslCredentials", + __init__=mock.Mock(return_value=None), + ssl_credentials=mock.PropertyMock(return_value=mock_ssl_cred), + ): + with mock.patch.object( + transport_class, "create_channel" + ) as grpc_create_channel: + mock_grpc_channel = mock.Mock() + grpc_create_channel.return_value = mock_grpc_channel + mock_cred = mock.Mock() + + with pytest.warns(DeprecationWarning): + transport = transport_class( + host="squid.clam.whelk", + credentials=mock_cred, + api_mtls_endpoint="mtls.squid.clam.whelk", + client_cert_source=None, + ) + + grpc_create_channel.assert_called_once_with( + "mtls.squid.clam.whelk:443", + credentials=mock_cred, + credentials_file=None, + scopes=None, + ssl_credentials=mock_ssl_cred, + quota_project_id=None, + options=[ + ("grpc.max_send_message_length", -1), + ("grpc.max_receive_message_length", -1), + ], + ) + assert transport.grpc_channel == mock_grpc_channel + + +def test_persistent_resource_service_grpc_lro_client(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + transport = client.transport + + # Ensure that we have a api-core operations client. + assert isinstance( + transport.operations_client, + operations_v1.OperationsClient, + ) + + # Ensure that subsequent calls to the property send the exact same object. + assert transport.operations_client is transport.operations_client + + +def test_persistent_resource_service_grpc_lro_async_client(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc_asyncio", + ) + transport = client.transport + + # Ensure that we have a api-core operations client. + assert isinstance( + transport.operations_client, + operations_v1.OperationsAsyncClient, + ) + + # Ensure that subsequent calls to the property send the exact same object. + assert transport.operations_client is transport.operations_client + + +def test_network_path(): + project = "squid" + network = "clam" + expected = "projects/{project}/global/networks/{network}".format( + project=project, + network=network, + ) + actual = PersistentResourceServiceClient.network_path(project, network) + assert expected == actual + + +def test_parse_network_path(): + expected = { + "project": "whelk", + "network": "octopus", + } + path = PersistentResourceServiceClient.network_path(**expected) + + # Check that the path construction is reversible. + actual = PersistentResourceServiceClient.parse_network_path(path) + assert expected == actual + + +def test_persistent_resource_path(): + project = "oyster" + location = "nudibranch" + persistent_resource = "cuttlefish" + expected = "projects/{project}/locations/{location}/persistentResources/{persistent_resource}".format( + project=project, + location=location, + persistent_resource=persistent_resource, + ) + actual = PersistentResourceServiceClient.persistent_resource_path( + project, location, persistent_resource + ) + assert expected == actual + + +def test_parse_persistent_resource_path(): + expected = { + "project": "mussel", + "location": "winkle", + "persistent_resource": "nautilus", + } + path = PersistentResourceServiceClient.persistent_resource_path(**expected) + + # Check that the path construction is reversible. + actual = PersistentResourceServiceClient.parse_persistent_resource_path(path) + assert expected == actual + + +def test_common_billing_account_path(): + billing_account = "scallop" + expected = "billingAccounts/{billing_account}".format( + billing_account=billing_account, + ) + actual = PersistentResourceServiceClient.common_billing_account_path( + billing_account + ) + assert expected == actual + + +def test_parse_common_billing_account_path(): + expected = { + "billing_account": "abalone", + } + path = PersistentResourceServiceClient.common_billing_account_path(**expected) + + # Check that the path construction is reversible. + actual = PersistentResourceServiceClient.parse_common_billing_account_path(path) + assert expected == actual + + +def test_common_folder_path(): + folder = "squid" + expected = "folders/{folder}".format( + folder=folder, + ) + actual = PersistentResourceServiceClient.common_folder_path(folder) + assert expected == actual + + +def test_parse_common_folder_path(): + expected = { + "folder": "clam", + } + path = PersistentResourceServiceClient.common_folder_path(**expected) + + # Check that the path construction is reversible. + actual = PersistentResourceServiceClient.parse_common_folder_path(path) + assert expected == actual + + +def test_common_organization_path(): + organization = "whelk" + expected = "organizations/{organization}".format( + organization=organization, + ) + actual = PersistentResourceServiceClient.common_organization_path(organization) + assert expected == actual + + +def test_parse_common_organization_path(): + expected = { + "organization": "octopus", + } + path = PersistentResourceServiceClient.common_organization_path(**expected) + + # Check that the path construction is reversible. + actual = PersistentResourceServiceClient.parse_common_organization_path(path) + assert expected == actual + + +def test_common_project_path(): + project = "oyster" + expected = "projects/{project}".format( + project=project, + ) + actual = PersistentResourceServiceClient.common_project_path(project) + assert expected == actual + + +def test_parse_common_project_path(): + expected = { + "project": "nudibranch", + } + path = PersistentResourceServiceClient.common_project_path(**expected) + + # Check that the path construction is reversible. + actual = PersistentResourceServiceClient.parse_common_project_path(path) + assert expected == actual + + +def test_common_location_path(): + project = "cuttlefish" + location = "mussel" + expected = "projects/{project}/locations/{location}".format( + project=project, + location=location, + ) + actual = PersistentResourceServiceClient.common_location_path(project, location) + assert expected == actual + + +def test_parse_common_location_path(): + expected = { + "project": "winkle", + "location": "nautilus", + } + path = PersistentResourceServiceClient.common_location_path(**expected) + + # Check that the path construction is reversible. + actual = PersistentResourceServiceClient.parse_common_location_path(path) + assert expected == actual + + +def test_client_with_default_client_info(): + client_info = gapic_v1.client_info.ClientInfo() + + with mock.patch.object( + transports.PersistentResourceServiceTransport, "_prep_wrapped_messages" + ) as prep: + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + client_info=client_info, + ) + prep.assert_called_once_with(client_info) + + with mock.patch.object( + transports.PersistentResourceServiceTransport, "_prep_wrapped_messages" + ) as prep: + transport_class = PersistentResourceServiceClient.get_transport_class() + transport = transport_class( + credentials=ga_credentials.AnonymousCredentials(), + client_info=client_info, + ) + prep.assert_called_once_with(client_info) + + +@pytest.mark.asyncio +async def test_transport_close_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc_asyncio", + ) + with mock.patch.object( + type(getattr(client.transport, "grpc_channel")), "close" + ) as close: + async with client: + close.assert_not_called() + close.assert_called_once() + + +def test_delete_operation(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.DeleteOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.delete_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = None + response = client.delete_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert response is None + + +@pytest.mark.asyncio +async def test_delete_operation_async(transport: str = "grpc"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.DeleteOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.delete_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + response = await client.delete_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert response is None + + +def test_delete_operation_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.DeleteOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.delete_operation), "__call__") as call: + call.return_value = None + + client.delete_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_delete_operation_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.DeleteOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.delete_operation), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + await client.delete_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +def test_delete_operation_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.delete_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = None + + response = client.delete_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_delete_operation_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.delete_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + response = await client.delete_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +def test_cancel_operation(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.CancelOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.cancel_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = None + response = client.cancel_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert response is None + + +@pytest.mark.asyncio +async def test_cancel_operation_async(transport: str = "grpc"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.CancelOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.cancel_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + response = await client.cancel_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert response is None + + +def test_cancel_operation_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.CancelOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.cancel_operation), "__call__") as call: + call.return_value = None + + client.cancel_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_cancel_operation_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.CancelOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.cancel_operation), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + await client.cancel_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +def test_cancel_operation_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.cancel_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = None + + response = client.cancel_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_cancel_operation_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.cancel_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + response = await client.cancel_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +def test_wait_operation(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.WaitOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.wait_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation() + response = client.wait_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, operations_pb2.Operation) + + +@pytest.mark.asyncio +async def test_wait_operation(transport: str = "grpc"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.WaitOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.wait_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation() + ) + response = await client.wait_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, operations_pb2.Operation) + + +def test_wait_operation_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.WaitOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.wait_operation), "__call__") as call: + call.return_value = operations_pb2.Operation() + + client.wait_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_wait_operation_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.WaitOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.wait_operation), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation() + ) + await client.wait_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +def test_wait_operation_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.wait_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation() + + response = client.wait_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_wait_operation_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.wait_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation() + ) + response = await client.wait_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +def test_get_operation(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.GetOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation() + response = client.get_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, operations_pb2.Operation) + + +@pytest.mark.asyncio +async def test_get_operation_async(transport: str = "grpc"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.GetOperationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation() + ) + response = await client.get_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, operations_pb2.Operation) + + +def test_get_operation_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.GetOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_operation), "__call__") as call: + call.return_value = operations_pb2.Operation() + + client.get_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_get_operation_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.GetOperationRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_operation), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation() + ) + await client.get_operation(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +def test_get_operation_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation() + + response = client.get_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_get_operation_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_operation), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation() + ) + response = await client.get_operation( + request={ + "name": "locations", + } + ) + call.assert_called() + + +def test_list_operations(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.ListOperationsRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_operations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.ListOperationsResponse() + response = client.list_operations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, operations_pb2.ListOperationsResponse) + + +@pytest.mark.asyncio +async def test_list_operations_async(transport: str = "grpc"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = operations_pb2.ListOperationsRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_operations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.ListOperationsResponse() + ) + response = await client.list_operations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, operations_pb2.ListOperationsResponse) + + +def test_list_operations_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.ListOperationsRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_operations), "__call__") as call: + call.return_value = operations_pb2.ListOperationsResponse() + + client.list_operations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_list_operations_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = operations_pb2.ListOperationsRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_operations), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.ListOperationsResponse() + ) + await client.list_operations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +def test_list_operations_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_operations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.ListOperationsResponse() + + response = client.list_operations( + request={ + "name": "locations", + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_list_operations_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_operations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.ListOperationsResponse() + ) + response = await client.list_operations( + request={ + "name": "locations", + } + ) + call.assert_called() + + +def test_list_locations(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = locations_pb2.ListLocationsRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = locations_pb2.ListLocationsResponse() + response = client.list_locations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, locations_pb2.ListLocationsResponse) + + +@pytest.mark.asyncio +async def test_list_locations_async(transport: str = "grpc"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = locations_pb2.ListLocationsRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + locations_pb2.ListLocationsResponse() + ) + response = await client.list_locations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, locations_pb2.ListLocationsResponse) + + +def test_list_locations_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = locations_pb2.ListLocationsRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + call.return_value = locations_pb2.ListLocationsResponse() + + client.list_locations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_list_locations_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = locations_pb2.ListLocationsRequest() + request.name = "locations" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + locations_pb2.ListLocationsResponse() + ) + await client.list_locations(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations", + ) in kw["metadata"] + + +def test_list_locations_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = locations_pb2.ListLocationsResponse() + + response = client.list_locations( + request={ + "name": "locations", + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_list_locations_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + locations_pb2.ListLocationsResponse() + ) + response = await client.list_locations( + request={ + "name": "locations", + } + ) + call.assert_called() + + +def test_get_location(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = locations_pb2.GetLocationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_location), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = locations_pb2.Location() + response = client.get_location(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, locations_pb2.Location) + + +@pytest.mark.asyncio +async def test_get_location_async(transport: str = "grpc_asyncio"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = locations_pb2.GetLocationRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_location), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + locations_pb2.Location() + ) + response = await client.get_location(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, locations_pb2.Location) + + +def test_get_location_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials() + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = locations_pb2.GetLocationRequest() + request.name = "locations/abc" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_location), "__call__") as call: + call.return_value = locations_pb2.Location() + + client.get_location(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations/abc", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_get_location_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials() + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = locations_pb2.GetLocationRequest() + request.name = "locations/abc" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_location), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + locations_pb2.Location() + ) + await client.get_location(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=locations/abc", + ) in kw["metadata"] + + +def test_get_location_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = locations_pb2.Location() + + response = client.get_location( + request={ + "name": "locations/abc", + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_get_location_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.list_locations), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + locations_pb2.Location() + ) + response = await client.get_location( + request={ + "name": "locations", + } + ) + call.assert_called() + + +def test_set_iam_policy(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = iam_policy_pb2.SetIamPolicyRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = policy_pb2.Policy( + version=774, + etag=b"etag_blob", + ) + response = client.set_iam_policy(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, policy_pb2.Policy) + + assert response.version == 774 + + assert response.etag == b"etag_blob" + + +@pytest.mark.asyncio +async def test_set_iam_policy_async(transport: str = "grpc_asyncio"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = iam_policy_pb2.SetIamPolicyRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + policy_pb2.Policy( + version=774, + etag=b"etag_blob", + ) + ) + response = await client.set_iam_policy(request) + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, policy_pb2.Policy) + + assert response.version == 774 + + assert response.etag == b"etag_blob" + + +def test_set_iam_policy_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = iam_policy_pb2.SetIamPolicyRequest() + request.resource = "resource/value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + call.return_value = policy_pb2.Policy() + + client.set_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "resource=resource/value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_set_iam_policy_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = iam_policy_pb2.SetIamPolicyRequest() + request.resource = "resource/value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy()) + + await client.set_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "resource=resource/value", + ) in kw["metadata"] + + +def test_set_iam_policy_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = policy_pb2.Policy() + + response = client.set_iam_policy( + request={ + "resource": "resource_value", + "policy": policy_pb2.Policy(version=774), + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_set_iam_policy_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.set_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy()) + + response = await client.set_iam_policy( + request={ + "resource": "resource_value", + "policy": policy_pb2.Policy(version=774), + } + ) + call.assert_called() + + +def test_get_iam_policy(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = iam_policy_pb2.GetIamPolicyRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = policy_pb2.Policy( + version=774, + etag=b"etag_blob", + ) + + response = client.get_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, policy_pb2.Policy) + + assert response.version == 774 + + assert response.etag == b"etag_blob" + + +@pytest.mark.asyncio +async def test_get_iam_policy_async(transport: str = "grpc_asyncio"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = iam_policy_pb2.GetIamPolicyRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + policy_pb2.Policy( + version=774, + etag=b"etag_blob", + ) + ) + + response = await client.get_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, policy_pb2.Policy) + + assert response.version == 774 + + assert response.etag == b"etag_blob" + + +def test_get_iam_policy_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = iam_policy_pb2.GetIamPolicyRequest() + request.resource = "resource/value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + call.return_value = policy_pb2.Policy() + + client.get_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "resource=resource/value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_get_iam_policy_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = iam_policy_pb2.GetIamPolicyRequest() + request.resource = "resource/value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy()) + + await client.get_iam_policy(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "resource=resource/value", + ) in kw["metadata"] + + +def test_get_iam_policy_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = policy_pb2.Policy() + + response = client.get_iam_policy( + request={ + "resource": "resource_value", + "options": options_pb2.GetPolicyOptions(requested_policy_version=2598), + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_get_iam_policy_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object(type(client.transport.get_iam_policy), "__call__") as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(policy_pb2.Policy()) + + response = await client.get_iam_policy( + request={ + "resource": "resource_value", + "options": options_pb2.GetPolicyOptions(requested_policy_version=2598), + } + ) + call.assert_called() + + +def test_test_iam_permissions(transport: str = "grpc"): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = iam_policy_pb2.TestIamPermissionsRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = iam_policy_pb2.TestIamPermissionsResponse( + permissions=["permissions_value"], + ) + + response = client.test_iam_permissions(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, iam_policy_pb2.TestIamPermissionsResponse) + + assert response.permissions == ["permissions_value"] + + +@pytest.mark.asyncio +async def test_test_iam_permissions_async(transport: str = "grpc_asyncio"): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = iam_policy_pb2.TestIamPermissionsRequest() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + iam_policy_pb2.TestIamPermissionsResponse( + permissions=["permissions_value"], + ) + ) + + response = await client.test_iam_permissions(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + + assert args[0] == request + + # Establish that the response is the type that we expect. + assert isinstance(response, iam_policy_pb2.TestIamPermissionsResponse) + + assert response.permissions == ["permissions_value"] + + +def test_test_iam_permissions_field_headers(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = iam_policy_pb2.TestIamPermissionsRequest() + request.resource = "resource/value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + call.return_value = iam_policy_pb2.TestIamPermissionsResponse() + + client.test_iam_permissions(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "resource=resource/value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_test_iam_permissions_field_headers_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = iam_policy_pb2.TestIamPermissionsRequest() + request.resource = "resource/value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + iam_policy_pb2.TestIamPermissionsResponse() + ) + + await client.test_iam_permissions(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "resource=resource/value", + ) in kw["metadata"] + + +def test_test_iam_permissions_from_dict(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = iam_policy_pb2.TestIamPermissionsResponse() + + response = client.test_iam_permissions( + request={ + "resource": "resource_value", + "permissions": ["permissions_value"], + } + ) + call.assert_called() + + +@pytest.mark.asyncio +async def test_test_iam_permissions_from_dict_async(): + client = PersistentResourceServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.test_iam_permissions), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + iam_policy_pb2.TestIamPermissionsResponse() + ) + + response = await client.test_iam_permissions( + request={ + "resource": "resource_value", + "permissions": ["permissions_value"], + } + ) + call.assert_called() + + +def test_transport_close(): + transports = { + "grpc": "_grpc_channel", + } + + for transport, close_name in transports.items(): + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), transport=transport + ) + with mock.patch.object( + type(getattr(client.transport, close_name)), "close" + ) as close: + with client: + close.assert_not_called() + close.assert_called_once() + + +def test_client_ctx(): + transports = [ + "grpc", + ] + for transport in transports: + client = PersistentResourceServiceClient( + credentials=ga_credentials.AnonymousCredentials(), transport=transport + ) + # Test client calls underlying transport. + with mock.patch.object(type(client.transport), "close") as close: + close.assert_not_called() + with client: + pass + close.assert_called() + + +@pytest.mark.parametrize( + "client_class,transport_class", + [ + ( + PersistentResourceServiceClient, + transports.PersistentResourceServiceGrpcTransport, + ), + ( + PersistentResourceServiceAsyncClient, + transports.PersistentResourceServiceGrpcAsyncIOTransport, + ), + ], +) +def test_api_key_credentials(client_class, transport_class): + with mock.patch.object( + google.auth._default, "get_api_key_credentials", create=True + ) as get_api_key_credentials: + mock_cred = mock.Mock() + get_api_key_credentials.return_value = mock_cred + options = client_options.ClientOptions() + options.api_key = "api_key" + with mock.patch.object(transport_class, "__init__") as patched: + patched.return_value = None + client = client_class(client_options=options) + patched.assert_called_once_with( + credentials=mock_cred, + credentials_file=None, + host=client.DEFAULT_ENDPOINT, + scopes=None, + client_cert_source_for_mtls=None, + quota_project_id=None, + client_info=transports.base.DEFAULT_CLIENT_INFO, + always_use_jwt_access=True, + api_audience=None, + ) diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_pipeline_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_pipeline_service.py index 6f262d5fd2..ecac2496fe 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_pipeline_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_pipeline_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1712,9 +1712,11 @@ async def test_list_training_pipelines_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_training_pipelines(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2224,6 +2226,7 @@ def test_create_pipeline_job(request_type, transport: str = "grpc"): state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) response = client.create_pipeline_job(request) @@ -2240,6 +2243,7 @@ def test_create_pipeline_job(request_type, transport: str = "grpc"): assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -2287,6 +2291,7 @@ async def test_create_pipeline_job_async( state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) ) @@ -2304,6 +2309,7 @@ async def test_create_pipeline_job_async( assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -2509,6 +2515,7 @@ def test_get_pipeline_job(request_type, transport: str = "grpc"): state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) response = client.get_pipeline_job(request) @@ -2525,6 +2532,7 @@ def test_get_pipeline_job(request_type, transport: str = "grpc"): assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -2567,6 +2575,7 @@ async def test_get_pipeline_job_async( state=pipeline_state.PipelineState.PIPELINE_STATE_QUEUED, service_account="service_account_value", network="network_value", + reserved_ip_ranges=["reserved_ip_ranges_value"], template_uri="template_uri_value", ) ) @@ -2584,6 +2593,7 @@ async def test_get_pipeline_job_async( assert response.state == pipeline_state.PipelineState.PIPELINE_STATE_QUEUED assert response.service_account == "service_account_value" assert response.network == "network_value" + assert response.reserved_ip_ranges == ["reserved_ip_ranges_value"] assert response.template_uri == "template_uri_value" @@ -3170,9 +3180,11 @@ async def test_list_pipeline_jobs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_pipeline_jobs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_prediction_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_prediction_service.py index ff83fc4318..ba6d14d736 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_prediction_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_prediction_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/aiplatform_v1beta1/test_schedule_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_schedule_service.py index 850b7a3cf6..19585009b9 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_schedule_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_schedule_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -755,9 +755,6 @@ def test_create_schedule(request_type, transport: str = "grpc"): allow_queueing=True, catch_up=True, cron="cron_value", - create_pipeline_job_request=pipeline_service.CreatePipelineJobRequest( - parent="parent_value" - ), ) response = client.create_schedule(request) @@ -1255,9 +1252,6 @@ def test_get_schedule(request_type, transport: str = "grpc"): allow_queueing=True, catch_up=True, cron="cron_value", - create_pipeline_job_request=pipeline_service.CreatePipelineJobRequest( - parent="parent_value" - ), ) response = client.get_schedule(request) @@ -1897,9 +1891,11 @@ async def test_list_schedules_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_schedules(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2385,9 +2381,6 @@ def test_update_schedule(request_type, transport: str = "grpc"): allow_queueing=True, catch_up=True, cron="cron_value", - create_pipeline_job_request=pipeline_service.CreatePipelineJobRequest( - parent="parent_value" - ), ) response = client.update_schedule(request) diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_specialist_pool_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_specialist_pool_service.py index 14d399ff57..43c732e651 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_specialist_pool_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_specialist_pool_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1674,9 +1674,11 @@ async def test_list_specialist_pools_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_specialist_pools(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_tensorboard_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_tensorboard_service.py index d6c8ff55b5..cfa370810f 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_tensorboard_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_tensorboard_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1234,247 +1234,6 @@ async def test_get_tensorboard_flattened_error_async(): ) -@pytest.mark.parametrize( - "request_type", - [ - tensorboard_service.ReadTensorboardUsageRequest, - dict, - ], -) -def test_read_tensorboard_usage(request_type, transport: str = "grpc"): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - transport=transport, - ) - - # Everything is optional in proto3 as far as the runtime is concerned, - # and we are mocking out the actual API, so just send an empty request. - request = request_type() - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - response = client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) == 1 - _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() - - # Establish that the response is the type that we expect. - assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) - - -def test_read_tensorboard_usage_empty_call(): - # This test is a coverage failsafe to make sure that totally empty calls, - # i.e. request == None and no flattened fields passed, work. - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - transport="grpc", - ) - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - client.read_tensorboard_usage() - call.assert_called() - _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_async( - transport: str = "grpc_asyncio", - request_type=tensorboard_service.ReadTensorboardUsageRequest, -): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - transport=transport, - ) - - # Everything is optional in proto3 as far as the runtime is concerned, - # and we are mocking out the actual API, so just send an empty request. - request = request_type() - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - tensorboard_service.ReadTensorboardUsageResponse() - ) - response = await client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) - _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() - - # Establish that the response is the type that we expect. - assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_async_from_dict(): - await test_read_tensorboard_usage_async(request_type=dict) - - -def test_read_tensorboard_usage_field_headers(): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Any value that is part of the HTTP/1.1 URI should be sent as - # a field header. Set these to a non-empty value. - request = tensorboard_service.ReadTensorboardUsageRequest() - - request.tensorboard = "tensorboard_value" - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) == 1 - _, args, _ = call.mock_calls[0] - assert args[0] == request - - # Establish that the field header was sent. - _, _, kw = call.mock_calls[0] - assert ( - "x-goog-request-params", - "tensorboard=tensorboard_value", - ) in kw["metadata"] - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_field_headers_async(): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Any value that is part of the HTTP/1.1 URI should be sent as - # a field header. Set these to a non-empty value. - request = tensorboard_service.ReadTensorboardUsageRequest() - - request.tensorboard = "tensorboard_value" - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - tensorboard_service.ReadTensorboardUsageResponse() - ) - await client.read_tensorboard_usage(request) - - # Establish that the underlying gRPC stub method was called. - assert len(call.mock_calls) - _, args, _ = call.mock_calls[0] - assert args[0] == request - - # Establish that the field header was sent. - _, _, kw = call.mock_calls[0] - assert ( - "x-goog-request-params", - "tensorboard=tensorboard_value", - ) in kw["metadata"] - - -def test_read_tensorboard_usage_flattened(): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - # Call the method with a truthy value for each flattened field, - # using the keyword arguments to the method. - client.read_tensorboard_usage( - tensorboard="tensorboard_value", - ) - - # Establish that the underlying call was made with the expected - # request object values. - assert len(call.mock_calls) == 1 - _, args, _ = call.mock_calls[0] - arg = args[0].tensorboard - mock_val = "tensorboard_value" - assert arg == mock_val - - -def test_read_tensorboard_usage_flattened_error(): - client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Attempting to call a method with both a request object and flattened - # fields is an error. - with pytest.raises(ValueError): - client.read_tensorboard_usage( - tensorboard_service.ReadTensorboardUsageRequest(), - tensorboard="tensorboard_value", - ) - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_flattened_async(): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.read_tensorboard_usage), "__call__" - ) as call: - # Designate an appropriate return value for the call. - call.return_value = tensorboard_service.ReadTensorboardUsageResponse() - - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - tensorboard_service.ReadTensorboardUsageResponse() - ) - # Call the method with a truthy value for each flattened field, - # using the keyword arguments to the method. - response = await client.read_tensorboard_usage( - tensorboard="tensorboard_value", - ) - - # Establish that the underlying call was made with the expected - # request object values. - assert len(call.mock_calls) - _, args, _ = call.mock_calls[0] - arg = args[0].tensorboard - mock_val = "tensorboard_value" - assert arg == mock_val - - -@pytest.mark.asyncio -async def test_read_tensorboard_usage_flattened_error_async(): - client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials(), - ) - - # Attempting to call a method with both a request object and flattened - # fields is an error. - with pytest.raises(ValueError): - await client.read_tensorboard_usage( - tensorboard_service.ReadTensorboardUsageRequest(), - tensorboard="tensorboard_value", - ) - - @pytest.mark.parametrize( "request_type", [ @@ -2020,163 +1779,647 @@ def test_list_tensorboards_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = list(pager) - assert len(results) == 6 - assert all(isinstance(i, tensorboard.Tensorboard) for i in results) + results = list(pager) + assert len(results) == 6 + assert all(isinstance(i, tensorboard.Tensorboard) for i in results) + + +def test_list_tensorboards_pages(transport_name: str = "grpc"): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials, + transport=transport_name, + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_tensorboards), "__call__" + ) as call: + # Set the response to a series of pages. + call.side_effect = ( + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + ], + next_page_token="abc", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[], + next_page_token="def", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + ], + next_page_token="ghi", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + ], + ), + RuntimeError, + ) + pages = list(client.list_tensorboards(request={}).pages) + for page_, token in zip(pages, ["abc", "def", "ghi", ""]): + assert page_.raw_page.next_page_token == token + + +@pytest.mark.asyncio +async def test_list_tensorboards_async_pager(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials, + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_tensorboards), + "__call__", + new_callable=mock.AsyncMock, + ) as call: + # Set the response to a series of pages. + call.side_effect = ( + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + ], + next_page_token="abc", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[], + next_page_token="def", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + ], + next_page_token="ghi", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + ], + ), + RuntimeError, + ) + async_pager = await client.list_tensorboards( + request={}, + ) + assert async_pager.next_page_token == "abc" + responses = [] + async for response in async_pager: # pragma: no branch + responses.append(response) + + assert len(responses) == 6 + assert all(isinstance(i, tensorboard.Tensorboard) for i in responses) + + +@pytest.mark.asyncio +async def test_list_tensorboards_async_pages(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials, + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.list_tensorboards), + "__call__", + new_callable=mock.AsyncMock, + ) as call: + # Set the response to a series of pages. + call.side_effect = ( + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + ], + next_page_token="abc", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[], + next_page_token="def", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + ], + next_page_token="ghi", + ), + tensorboard_service.ListTensorboardsResponse( + tensorboards=[ + tensorboard.Tensorboard(), + tensorboard.Tensorboard(), + ], + ), + RuntimeError, + ) + pages = [] + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch + await client.list_tensorboards(request={}) + ).pages: + pages.append(page_) + for page_, token in zip(pages, ["abc", "def", "ghi", ""]): + assert page_.raw_page.next_page_token == token + + +@pytest.mark.parametrize( + "request_type", + [ + tensorboard_service.DeleteTensorboardRequest, + dict, + ], +) +def test_delete_tensorboard(request_type, transport: str = "grpc"): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_tensorboard), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/spam") + response = client.delete_tensorboard(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.DeleteTensorboardRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +def test_delete_tensorboard_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_tensorboard), "__call__" + ) as call: + client.delete_tensorboard() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.DeleteTensorboardRequest() + + +@pytest.mark.asyncio +async def test_delete_tensorboard_async( + transport: str = "grpc_asyncio", + request_type=tensorboard_service.DeleteTensorboardRequest, +): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_tensorboard), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + response = await client.delete_tensorboard(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.DeleteTensorboardRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, future.Future) + + +@pytest.mark.asyncio +async def test_delete_tensorboard_async_from_dict(): + await test_delete_tensorboard_async(request_type=dict) + + +def test_delete_tensorboard_field_headers(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = tensorboard_service.DeleteTensorboardRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_tensorboard), "__call__" + ) as call: + call.return_value = operations_pb2.Operation(name="operations/op") + client.delete_tensorboard(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_delete_tensorboard_field_headers_async(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = tensorboard_service.DeleteTensorboardRequest() + + request.name = "name_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_tensorboard), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/op") + ) + await client.delete_tensorboard(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "name=name_value", + ) in kw["metadata"] + + +def test_delete_tensorboard_flattened(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_tensorboard), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.delete_tensorboard( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +def test_delete_tensorboard_flattened_error(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.delete_tensorboard( + tensorboard_service.DeleteTensorboardRequest(), + name="name_value", + ) + + +@pytest.mark.asyncio +async def test_delete_tensorboard_flattened_async(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.delete_tensorboard), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = operations_pb2.Operation(name="operations/op") + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + operations_pb2.Operation(name="operations/spam") + ) + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.delete_tensorboard( + name="name_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val + + +@pytest.mark.asyncio +async def test_delete_tensorboard_flattened_error_async(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.delete_tensorboard( + tensorboard_service.DeleteTensorboardRequest(), + name="name_value", + ) + + +@pytest.mark.parametrize( + "request_type", + [ + tensorboard_service.ReadTensorboardUsageRequest, + dict, + ], +) +def test_read_tensorboard_usage(request_type, transport: str = "grpc"): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + response = client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) + + +def test_read_tensorboard_usage_empty_call(): + # This test is a coverage failsafe to make sure that totally empty calls, + # i.e. request == None and no flattened fields passed, work. + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + transport="grpc", + ) + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + client.read_tensorboard_usage() + call.assert_called() + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_async( + transport: str = "grpc_asyncio", + request_type=tensorboard_service.ReadTensorboardUsageRequest, +): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + transport=transport, + ) + + # Everything is optional in proto3 as far as the runtime is concerned, + # and we are mocking out the actual API, so just send an empty request. + request = request_type() + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + # Designate an appropriate return value for the call. + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + tensorboard_service.ReadTensorboardUsageResponse() + ) + response = await client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == tensorboard_service.ReadTensorboardUsageRequest() + + # Establish that the response is the type that we expect. + assert isinstance(response, tensorboard_service.ReadTensorboardUsageResponse) + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_async_from_dict(): + await test_read_tensorboard_usage_async(request_type=dict) + + +def test_read_tensorboard_usage_field_headers(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = tensorboard_service.ReadTensorboardUsageRequest() + + request.tensorboard = "tensorboard_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "tensorboard=tensorboard_value", + ) in kw["metadata"] + + +@pytest.mark.asyncio +async def test_read_tensorboard_usage_field_headers_async(): + client = TensorboardServiceAsyncClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Any value that is part of the HTTP/1.1 URI should be sent as + # a field header. Set these to a non-empty value. + request = tensorboard_service.ReadTensorboardUsageRequest() + + request.tensorboard = "tensorboard_value" + + # Mock the actual call within the gRPC stub, and fake the request. + with mock.patch.object( + type(client.transport.read_tensorboard_usage), "__call__" + ) as call: + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + tensorboard_service.ReadTensorboardUsageResponse() + ) + await client.read_tensorboard_usage(request) + + # Establish that the underlying gRPC stub method was called. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + assert args[0] == request + + # Establish that the field header was sent. + _, _, kw = call.mock_calls[0] + assert ( + "x-goog-request-params", + "tensorboard=tensorboard_value", + ) in kw["metadata"] -def test_list_tensorboards_pages(transport_name: str = "grpc"): +def test_read_tensorboard_usage_flattened(): client = TensorboardServiceClient( - credentials=ga_credentials.AnonymousCredentials, - transport=transport_name, + credentials=ga_credentials.AnonymousCredentials(), ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.list_tensorboards), "__call__" + type(client.transport.read_tensorboard_usage), "__call__" ) as call: - # Set the response to a series of pages. - call.side_effect = ( - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - ], - next_page_token="abc", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[], - next_page_token="def", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - ], - next_page_token="ghi", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - ], - ), - RuntimeError, + # Designate an appropriate return value for the call. + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + client.read_tensorboard_usage( + tensorboard="tensorboard_value", + ) + + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) == 1 + _, args, _ = call.mock_calls[0] + arg = args[0].tensorboard + mock_val = "tensorboard_value" + assert arg == mock_val + + +def test_read_tensorboard_usage_flattened_error(): + client = TensorboardServiceClient( + credentials=ga_credentials.AnonymousCredentials(), + ) + + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + client.read_tensorboard_usage( + tensorboard_service.ReadTensorboardUsageRequest(), + tensorboard="tensorboard_value", ) - pages = list(client.list_tensorboards(request={}).pages) - for page_, token in zip(pages, ["abc", "def", "ghi", ""]): - assert page_.raw_page.next_page_token == token @pytest.mark.asyncio -async def test_list_tensorboards_async_pager(): +async def test_read_tensorboard_usage_flattened_async(): client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials, + credentials=ga_credentials.AnonymousCredentials(), ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.list_tensorboards), - "__call__", - new_callable=mock.AsyncMock, + type(client.transport.read_tensorboard_usage), "__call__" ) as call: - # Set the response to a series of pages. - call.side_effect = ( - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - ], - next_page_token="abc", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[], - next_page_token="def", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - ], - next_page_token="ghi", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - ], - ), - RuntimeError, + # Designate an appropriate return value for the call. + call.return_value = tensorboard_service.ReadTensorboardUsageResponse() + + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( + tensorboard_service.ReadTensorboardUsageResponse() ) - async_pager = await client.list_tensorboards( - request={}, + # Call the method with a truthy value for each flattened field, + # using the keyword arguments to the method. + response = await client.read_tensorboard_usage( + tensorboard="tensorboard_value", ) - assert async_pager.next_page_token == "abc" - responses = [] - async for response in async_pager: # pragma: no branch - responses.append(response) - assert len(responses) == 6 - assert all(isinstance(i, tensorboard.Tensorboard) for i in responses) + # Establish that the underlying call was made with the expected + # request object values. + assert len(call.mock_calls) + _, args, _ = call.mock_calls[0] + arg = args[0].tensorboard + mock_val = "tensorboard_value" + assert arg == mock_val @pytest.mark.asyncio -async def test_list_tensorboards_async_pages(): +async def test_read_tensorboard_usage_flattened_error_async(): client = TensorboardServiceAsyncClient( - credentials=ga_credentials.AnonymousCredentials, + credentials=ga_credentials.AnonymousCredentials(), ) - # Mock the actual call within the gRPC stub, and fake the request. - with mock.patch.object( - type(client.transport.list_tensorboards), - "__call__", - new_callable=mock.AsyncMock, - ) as call: - # Set the response to a series of pages. - call.side_effect = ( - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - ], - next_page_token="abc", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[], - next_page_token="def", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - ], - next_page_token="ghi", - ), - tensorboard_service.ListTensorboardsResponse( - tensorboards=[ - tensorboard.Tensorboard(), - tensorboard.Tensorboard(), - ], - ), - RuntimeError, + # Attempting to call a method with both a request object and flattened + # fields is an error. + with pytest.raises(ValueError): + await client.read_tensorboard_usage( + tensorboard_service.ReadTensorboardUsageRequest(), + tensorboard="tensorboard_value", ) - pages = [] - async for page_ in ( - await client.list_tensorboards(request={}) - ).pages: # pragma: no branch - pages.append(page_) - for page_, token in zip(pages, ["abc", "def", "ghi", ""]): - assert page_.raw_page.next_page_token == token @pytest.mark.parametrize( "request_type", [ - tensorboard_service.DeleteTensorboardRequest, + tensorboard_service.ReadTensorboardSizeRequest, dict, ], ) -def test_delete_tensorboard(request_type, transport: str = "grpc"): +def test_read_tensorboard_size(request_type, transport: str = "grpc"): client = TensorboardServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport=transport, @@ -2188,22 +2431,25 @@ def test_delete_tensorboard(request_type, transport: str = "grpc"): # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.delete_tensorboard), "__call__" + type(client.transport.read_tensorboard_size), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = operations_pb2.Operation(name="operations/spam") - response = client.delete_tensorboard(request) + call.return_value = tensorboard_service.ReadTensorboardSizeResponse( + storage_size_byte=1826, + ) + response = client.read_tensorboard_size(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.DeleteTensorboardRequest() + assert args[0] == tensorboard_service.ReadTensorboardSizeRequest() # Establish that the response is the type that we expect. - assert isinstance(response, future.Future) + assert isinstance(response, tensorboard_service.ReadTensorboardSizeResponse) + assert response.storage_size_byte == 1826 -def test_delete_tensorboard_empty_call(): +def test_read_tensorboard_size_empty_call(): # This test is a coverage failsafe to make sure that totally empty calls, # i.e. request == None and no flattened fields passed, work. client = TensorboardServiceClient( @@ -2213,18 +2459,18 @@ def test_delete_tensorboard_empty_call(): # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.delete_tensorboard), "__call__" + type(client.transport.read_tensorboard_size), "__call__" ) as call: - client.delete_tensorboard() + client.read_tensorboard_size() call.assert_called() _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.DeleteTensorboardRequest() + assert args[0] == tensorboard_service.ReadTensorboardSizeRequest() @pytest.mark.asyncio -async def test_delete_tensorboard_async( +async def test_read_tensorboard_size_async( transport: str = "grpc_asyncio", - request_type=tensorboard_service.DeleteTensorboardRequest, + request_type=tensorboard_service.ReadTensorboardSizeRequest, ): client = TensorboardServiceAsyncClient( credentials=ga_credentials.AnonymousCredentials(), @@ -2237,45 +2483,48 @@ async def test_delete_tensorboard_async( # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.delete_tensorboard), "__call__" + type(client.transport.read_tensorboard_size), "__call__" ) as call: # Designate an appropriate return value for the call. call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - operations_pb2.Operation(name="operations/spam") + tensorboard_service.ReadTensorboardSizeResponse( + storage_size_byte=1826, + ) ) - response = await client.delete_tensorboard(request) + response = await client.read_tensorboard_size(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0] == tensorboard_service.DeleteTensorboardRequest() + assert args[0] == tensorboard_service.ReadTensorboardSizeRequest() # Establish that the response is the type that we expect. - assert isinstance(response, future.Future) + assert isinstance(response, tensorboard_service.ReadTensorboardSizeResponse) + assert response.storage_size_byte == 1826 @pytest.mark.asyncio -async def test_delete_tensorboard_async_from_dict(): - await test_delete_tensorboard_async(request_type=dict) +async def test_read_tensorboard_size_async_from_dict(): + await test_read_tensorboard_size_async(request_type=dict) -def test_delete_tensorboard_field_headers(): +def test_read_tensorboard_size_field_headers(): client = TensorboardServiceClient( credentials=ga_credentials.AnonymousCredentials(), ) # Any value that is part of the HTTP/1.1 URI should be sent as # a field header. Set these to a non-empty value. - request = tensorboard_service.DeleteTensorboardRequest() + request = tensorboard_service.ReadTensorboardSizeRequest() - request.name = "name_value" + request.tensorboard = "tensorboard_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.delete_tensorboard), "__call__" + type(client.transport.read_tensorboard_size), "__call__" ) as call: - call.return_value = operations_pb2.Operation(name="operations/op") - client.delete_tensorboard(request) + call.return_value = tensorboard_service.ReadTensorboardSizeResponse() + client.read_tensorboard_size(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) == 1 @@ -2286,30 +2535,30 @@ def test_delete_tensorboard_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name_value", + "tensorboard=tensorboard_value", ) in kw["metadata"] @pytest.mark.asyncio -async def test_delete_tensorboard_field_headers_async(): +async def test_read_tensorboard_size_field_headers_async(): client = TensorboardServiceAsyncClient( credentials=ga_credentials.AnonymousCredentials(), ) # Any value that is part of the HTTP/1.1 URI should be sent as # a field header. Set these to a non-empty value. - request = tensorboard_service.DeleteTensorboardRequest() + request = tensorboard_service.ReadTensorboardSizeRequest() - request.name = "name_value" + request.tensorboard = "tensorboard_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.delete_tensorboard), "__call__" + type(client.transport.read_tensorboard_size), "__call__" ) as call: call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - operations_pb2.Operation(name="operations/op") + tensorboard_service.ReadTensorboardSizeResponse() ) - await client.delete_tensorboard(request) + await client.read_tensorboard_size(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) @@ -2320,37 +2569,37 @@ async def test_delete_tensorboard_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name_value", + "tensorboard=tensorboard_value", ) in kw["metadata"] -def test_delete_tensorboard_flattened(): +def test_read_tensorboard_size_flattened(): client = TensorboardServiceClient( credentials=ga_credentials.AnonymousCredentials(), ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.delete_tensorboard), "__call__" + type(client.transport.read_tensorboard_size), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = operations_pb2.Operation(name="operations/op") + call.return_value = tensorboard_service.ReadTensorboardSizeResponse() # Call the method with a truthy value for each flattened field, # using the keyword arguments to the method. - client.delete_tensorboard( - name="name_value", + client.read_tensorboard_size( + tensorboard="tensorboard_value", ) # Establish that the underlying call was made with the expected # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - arg = args[0].name - mock_val = "name_value" + arg = args[0].tensorboard + mock_val = "tensorboard_value" assert arg == mock_val -def test_delete_tensorboard_flattened_error(): +def test_read_tensorboard_size_flattened_error(): client = TensorboardServiceClient( credentials=ga_credentials.AnonymousCredentials(), ) @@ -2358,45 +2607,45 @@ def test_delete_tensorboard_flattened_error(): # Attempting to call a method with both a request object and flattened # fields is an error. with pytest.raises(ValueError): - client.delete_tensorboard( - tensorboard_service.DeleteTensorboardRequest(), - name="name_value", + client.read_tensorboard_size( + tensorboard_service.ReadTensorboardSizeRequest(), + tensorboard="tensorboard_value", ) @pytest.mark.asyncio -async def test_delete_tensorboard_flattened_async(): +async def test_read_tensorboard_size_flattened_async(): client = TensorboardServiceAsyncClient( credentials=ga_credentials.AnonymousCredentials(), ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.delete_tensorboard), "__call__" + type(client.transport.read_tensorboard_size), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = operations_pb2.Operation(name="operations/op") + call.return_value = tensorboard_service.ReadTensorboardSizeResponse() call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - operations_pb2.Operation(name="operations/spam") + tensorboard_service.ReadTensorboardSizeResponse() ) # Call the method with a truthy value for each flattened field, # using the keyword arguments to the method. - response = await client.delete_tensorboard( - name="name_value", + response = await client.read_tensorboard_size( + tensorboard="tensorboard_value", ) # Establish that the underlying call was made with the expected # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - arg = args[0].name - mock_val = "name_value" + arg = args[0].tensorboard + mock_val = "tensorboard_value" assert arg == mock_val @pytest.mark.asyncio -async def test_delete_tensorboard_flattened_error_async(): +async def test_read_tensorboard_size_flattened_error_async(): client = TensorboardServiceAsyncClient( credentials=ga_credentials.AnonymousCredentials(), ) @@ -2404,9 +2653,9 @@ async def test_delete_tensorboard_flattened_error_async(): # Attempting to call a method with both a request object and flattened # fields is an error. with pytest.raises(ValueError): - await client.delete_tensorboard( - tensorboard_service.DeleteTensorboardRequest(), - name="name_value", + await client.read_tensorboard_size( + tensorboard_service.ReadTensorboardSizeRequest(), + tensorboard="tensorboard_value", ) @@ -3685,9 +3934,11 @@ async def test_list_tensorboard_experiments_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_tensorboard_experiments(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -5439,9 +5690,11 @@ async def test_list_tensorboard_runs_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_tensorboard_runs(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7283,9 +7536,11 @@ async def test_list_tensorboard_time_series_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_tensorboard_time_series(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9286,9 +9541,11 @@ async def test_export_tensorboard_time_series_data_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.export_tensorboard_time_series_data(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -9433,10 +9690,11 @@ def test_tensorboard_service_base_transport(): methods = ( "create_tensorboard", "get_tensorboard", - "read_tensorboard_usage", "update_tensorboard", "list_tensorboards", "delete_tensorboard", + "read_tensorboard_usage", + "read_tensorboard_size", "create_tensorboard_experiment", "get_tensorboard_experiment", "update_tensorboard_experiment", diff --git a/tests/unit/gapic/aiplatform_v1beta1/test_vizier_service.py b/tests/unit/gapic/aiplatform_v1beta1/test_vizier_service.py index 0b7d470fc5..76fb57a99b 100644 --- a/tests/unit/gapic/aiplatform_v1beta1/test_vizier_service.py +++ b/tests/unit/gapic/aiplatform_v1beta1/test_vizier_service.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -1598,9 +1598,11 @@ async def test_list_studies_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_studies(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3128,9 +3130,11 @@ async def test_list_trials_async_pages(): RuntimeError, ) pages = [] - async for page_ in ( + # Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch` + # See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372 + async for page_ in ( # pragma: no branch await client.list_trials(request={}) - ).pages: # pragma: no branch + ).pages: pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token diff --git a/tests/unit/gapic/definition_v1/__init__.py b/tests/unit/gapic/definition_v1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/definition_v1/__init__.py +++ b/tests/unit/gapic/definition_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/definition_v1beta1/__init__.py b/tests/unit/gapic/definition_v1beta1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/definition_v1beta1/__init__.py +++ b/tests/unit/gapic/definition_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/instance_v1/__init__.py b/tests/unit/gapic/instance_v1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/instance_v1/__init__.py +++ b/tests/unit/gapic/instance_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/instance_v1beta1/__init__.py b/tests/unit/gapic/instance_v1beta1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/instance_v1beta1/__init__.py +++ b/tests/unit/gapic/instance_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/params_v1/__init__.py b/tests/unit/gapic/params_v1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/params_v1/__init__.py +++ b/tests/unit/gapic/params_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/params_v1beta1/__init__.py b/tests/unit/gapic/params_v1beta1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/params_v1beta1/__init__.py +++ b/tests/unit/gapic/params_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/prediction_v1/__init__.py b/tests/unit/gapic/prediction_v1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/prediction_v1/__init__.py +++ b/tests/unit/gapic/prediction_v1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 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/tests/unit/gapic/prediction_v1beta1/__init__.py b/tests/unit/gapic/prediction_v1beta1/__init__.py index e8e1c3845d..89a37dc92c 100644 --- a/tests/unit/gapic/prediction_v1beta1/__init__.py +++ b/tests/unit/gapic/prediction_v1beta1/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2022 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.