diff --git a/.librarian/state.yaml b/.librarian/state.yaml index 586e694117ba..96b36fc6e28f 100644 --- a/.librarian/state.yaml +++ b/.librarian/state.yaml @@ -2,7 +2,7 @@ image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-li libraries: - id: google-ads-admanager version: 0.4.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/ads/admanager/v1 service_config: admanager_v1.yaml @@ -21,7 +21,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-ads-marketingplatform-admin version: 0.1.6 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/marketingplatform/admin/v1alpha service_config: marketingplatformadmin_v1alpha.yaml @@ -40,7 +40,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-ai-generativelanguage version: 0.7.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/ai/generativelanguage/v1 service_config: generativelanguage_v1.yaml @@ -67,7 +67,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-analytics-admin version: 0.25.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/analytics/admin/v1beta service_config: analyticsadmin_v1beta.yaml @@ -88,7 +88,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-analytics-data version: 0.18.19 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/analytics/data/v1alpha service_config: analyticsdata_v1alpha.yaml @@ -109,7 +109,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-apps-card version: 0.1.8 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/apps/card/v1 service_config: "" @@ -129,7 +129,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-apps-chat version: 0.2.9 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/chat/v1 service_config: chat_v1.yaml @@ -148,7 +148,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-apps-events-subscriptions version: 0.2.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/apps/events/subscriptions/v1 service_config: workspaceevents_v1.yaml @@ -169,7 +169,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-apps-meet version: 0.1.16 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/apps/meet/v2beta service_config: meet_v2beta.yaml @@ -190,7 +190,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-area120-tables version: 0.11.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/area120/tables/v1alpha1 service_config: area120tables_v1alpha1.yaml @@ -209,7 +209,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-access-approval version: 1.16.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/accessapproval/v1 service_config: accessapproval_v1.yaml @@ -228,7 +228,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-access-context-manager version: 0.2.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/identity/accesscontextmanager/v1 service_config: accesscontextmanager_v1.yaml @@ -242,7 +242,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-advisorynotifications version: 0.3.16 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/advisorynotifications/v1 service_config: advisorynotifications_v1.yaml @@ -261,7 +261,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-alloydb version: 0.5.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/alloydb/v1beta service_config: alloydb_v1beta.yaml @@ -284,7 +284,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-alloydb-connectors version: 0.1.11 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/alloydb/connectors/v1 service_config: connectors_v1.yaml @@ -308,7 +308,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-api-gateway version: 1.12.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/apigateway/v1 service_config: apigateway_v1.yaml @@ -327,7 +327,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-api-keys version: 0.5.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/api/apikeys/v2 service_config: apikeys_v2.yaml @@ -346,7 +346,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-apigee-connect version: 1.12.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/apigeeconnect/v1 service_config: apigeeconnect_v1.yaml @@ -365,7 +365,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-apigee-registry version: 0.6.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/apigeeregistry/v1 service_config: apigeeregistry_v1.yaml @@ -384,7 +384,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-apihub version: 0.3.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/apihub/v1 service_config: apihub_v1.yaml @@ -403,7 +403,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-appengine-admin version: 1.14.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/appengine/v1 service_config: appengine_v1.yaml @@ -422,7 +422,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-appengine-logging version: 1.6.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/appengine/logging/v1 service_config: "" @@ -442,7 +442,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-apphub version: 0.1.10 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/apphub/v1 service_config: apphub_v1.yaml @@ -461,7 +461,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-artifact-registry version: 1.16.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/devtools/artifactregistry/v1 service_config: artifactregistry_v1.yaml @@ -482,7 +482,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-asset version: 4.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/asset/v1p5beta1 service_config: cloudasset_v1p5beta1.yaml @@ -507,7 +507,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-assured-workloads version: 2.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/assuredworkloads/v1 service_config: assuredworkloads_v1.yaml @@ -528,7 +528,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-audit-log version: 0.3.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/audit service_config: cloudaudit.yaml @@ -540,7 +540,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-automl version: 2.16.4 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/automl/v1beta1 service_config: automl_v1beta1.yaml @@ -566,7 +566,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-backupdr version: 0.2.5 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/backupdr/v1 service_config: backupdr_v1.yaml @@ -585,7 +585,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bare-metal-solution version: 1.10.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/baremetalsolution/v2 service_config: baremetalsolution_v2.yaml @@ -604,7 +604,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-batch version: 0.17.37 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/batch/v1alpha service_config: batch_v1alpha.yaml @@ -625,7 +625,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-beyondcorp-appconnections version: 0.4.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/beyondcorp/appconnections/v1 service_config: beyondcorp_v1.yaml @@ -644,7 +644,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-beyondcorp-appconnectors version: 0.4.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/beyondcorp/appconnectors/v1 service_config: beyondcorp_v1.yaml @@ -663,7 +663,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-beyondcorp-appgateways version: 0.4.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/beyondcorp/appgateways/v1 service_config: beyondcorp_v1.yaml @@ -682,7 +682,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-beyondcorp-clientconnectorservices version: 0.4.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/beyondcorp/clientconnectorservices/v1 service_config: beyondcorp_v1.yaml @@ -701,7 +701,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-beyondcorp-clientgateways version: 0.4.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/beyondcorp/clientgateways/v1 service_config: beyondcorp_v1.yaml @@ -720,7 +720,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-analyticshub version: 0.4.20 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/analyticshub/v1 service_config: analyticshub_v1.yaml @@ -739,7 +739,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-biglake version: 0.4.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/biglake/v1alpha1 service_config: biglake_v1alpha1.yaml @@ -760,7 +760,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-connection version: 1.18.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/connection/v1 service_config: bigqueryconnection_v1.yaml @@ -779,7 +779,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-data-exchange version: 0.5.20 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/dataexchange/v1beta1 service_config: analyticshub_v1beta1.yaml @@ -798,7 +798,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-datapolicies version: 0.6.16 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/datapolicies/v2beta1 service_config: bigquerydatapolicy_v2beta1.yaml @@ -823,7 +823,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-datatransfer version: 3.19.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/datatransfer/v1 service_config: bigquerydatatransfer_v1.yaml @@ -842,7 +842,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-logging version: 1.6.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/logging/v1 service_config: "" @@ -862,7 +862,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-migration version: 0.11.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/migration/v2alpha service_config: bigquerymigration_v2alpha.yaml @@ -883,7 +883,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-bigquery-reservation version: 1.20.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/bigquery/reservation/v1 service_config: bigqueryreservation_v1.yaml @@ -902,7 +902,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-billing version: 1.16.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/billing/v1 service_config: cloudbilling_v1.yaml @@ -921,7 +921,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-billing-budgets version: 1.17.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/billing/budgets/v1 service_config: billingbudgets.yaml @@ -942,7 +942,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-binary-authorization version: 1.13.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/binaryauthorization/v1 service_config: binaryauthorization_v1.yaml @@ -963,7 +963,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-build version: 3.32.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/devtools/cloudbuild/v1 service_config: cloudbuild_v1.yaml @@ -984,7 +984,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-capacityplanner version: 0.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/capacityplanner/v1beta service_config: capacityplanner_v1beta.yaml @@ -1003,7 +1003,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-certificate-manager version: 1.10.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/certificatemanager/v1 service_config: certificatemanager_v1.yaml @@ -1022,7 +1022,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-channel version: 1.23.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/channel/v1 service_config: cloudchannel_v1.yaml @@ -1041,7 +1041,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-chronicle version: 0.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/chronicle/v1 service_config: chronicle_v1.yaml @@ -1060,7 +1060,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-cloudcontrolspartner version: 0.2.7 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/cloudcontrolspartner/v1beta service_config: cloudcontrolspartner_v1beta.yaml @@ -1081,7 +1081,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-cloudsecuritycompliance version: 0.2.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/cloudsecuritycompliance/v1 service_config: cloudsecuritycompliance_v1.yaml @@ -1100,7 +1100,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-commerce-consumer-procurement version: 0.2.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/commerce/consumer/procurement/v1 service_config: cloudcommerceconsumerprocurement_v1.yaml @@ -1121,7 +1121,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-common version: 1.5.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/common service_config: common.yaml @@ -1141,7 +1141,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-compute version: 1.39.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/compute/v1 service_config: compute_v1.yaml @@ -1160,7 +1160,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-compute-v1beta version: 0.2.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/compute/v1beta service_config: compute_v1beta.yaml @@ -1179,7 +1179,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-confidentialcomputing version: 0.5.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/confidentialcomputing/v1 service_config: confidentialcomputing_v1.yaml @@ -1198,7 +1198,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-config version: 0.1.21 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/config/v1 service_config: config_v1.yaml @@ -1217,7 +1217,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-configdelivery version: 0.1.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/configdelivery/v1beta service_config: configdelivery_v1beta.yaml @@ -1240,7 +1240,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-contact-center-insights version: 1.23.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/contactcenterinsights/v1 service_config: contactcenterinsights_v1.yaml @@ -1259,7 +1259,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-container version: 2.59.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/container/v1 service_config: container_v1.yaml @@ -1280,7 +1280,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-containeranalysis version: 2.18.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/devtools/containeranalysis/v1 service_config: containeranalysis_v1.yaml @@ -1300,7 +1300,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-contentwarehouse version: 0.7.16 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/contentwarehouse/v1 service_config: contentwarehouse_v1.yaml @@ -1319,7 +1319,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-data-fusion version: 1.13.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/datafusion/v1 service_config: datafusion_v1.yaml @@ -1338,7 +1338,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-data-qna version: 0.10.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/dataqna/v1alpha service_config: dataqna_v1alpha.yaml @@ -1357,7 +1357,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-datacatalog version: 3.27.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/datacatalog/v1 service_config: datacatalog_v1.yaml @@ -1378,7 +1378,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-datacatalog-lineage version: 0.3.14 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/datacatalog/lineage/v1 service_config: datalineage_v1.yaml @@ -1397,7 +1397,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dataflow-client version: 0.9.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/dataflow/v1beta3 service_config: dataflow_v1beta3.yaml @@ -1416,7 +1416,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dataform version: 0.6.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/dataform/v1beta1 service_config: dataform_v1beta1.yaml @@ -1437,7 +1437,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-datalabeling version: 1.13.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/datalabeling/v1beta1 service_config: datalabeling_v1beta1.yaml @@ -1456,7 +1456,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dataplex version: 2.12.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/dataplex/v1 service_config: dataplex_v1.yaml @@ -1475,7 +1475,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dataproc version: 5.22.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/dataproc/v1 service_config: dataproc_v1.yaml @@ -1494,7 +1494,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dataproc-metastore version: 1.19.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/metastore/v1alpha service_config: metastore_v1alpha.yaml @@ -1517,7 +1517,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-datastream version: 1.15.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/datastream/v1 service_config: datastream_v1.yaml @@ -1538,7 +1538,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-deploy version: 2.7.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/deploy/v1 service_config: clouddeploy_v1.yaml @@ -1557,7 +1557,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-developerconnect version: 0.1.10 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/developerconnect/v1 service_config: developerconnect_v1.yaml @@ -1576,7 +1576,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-devicestreaming version: 0.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/devicestreaming/v1 service_config: devicestreaming_v1.yaml @@ -1595,7 +1595,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dialogflow version: 2.41.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/dialogflow/v2beta1 service_config: dialogflow_v2beta1.yaml @@ -1616,7 +1616,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-discoveryengine version: 0.13.12 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/discoveryengine/v1 service_config: discoveryengine_v1.yaml @@ -1639,7 +1639,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dlp version: 3.32.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/privacy/dlp/v2 service_config: dlp_v2.yaml @@ -1658,7 +1658,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-dms version: 1.12.4 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/clouddms/v1 service_config: datamigration_v1.yaml @@ -1677,7 +1677,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-documentai version: 3.6.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/documentai/v1beta3 service_config: documentai_v1beta3.yaml @@ -1698,7 +1698,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-domains version: 1.10.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/domains/v1beta1 service_config: domains_v1beta1.yaml @@ -1719,7 +1719,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-edgecontainer version: 0.5.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/edgecontainer/v1 service_config: edgecontainer_v1.yaml @@ -1738,7 +1738,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-edgenetwork version: 0.1.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/edgenetwork/v1 service_config: edgenetwork_v1.yaml @@ -1757,7 +1757,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-enterpriseknowledgegraph version: 0.3.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/enterpriseknowledgegraph/v1 service_config: enterpriseknowledgegraph_v1.yaml @@ -1776,7 +1776,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-essential-contacts version: 1.10.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/essentialcontacts/v1 service_config: essentialcontacts_v1.yaml @@ -1795,7 +1795,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-eventarc version: 1.16.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/eventarc/v1 service_config: eventarc_v1.yaml @@ -1814,7 +1814,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-eventarc-publishing version: 0.7.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/eventarc/publishing/v1 service_config: eventarcpublishing_v1.yaml @@ -1833,7 +1833,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-filestore version: 1.13.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/filestore/v1 service_config: file_v1.yaml @@ -1852,7 +1852,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-financialservices version: 0.1.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/financialservices/v1 service_config: financialservices_v1.yaml @@ -1871,7 +1871,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-functions version: 1.20.4 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/functions/v2 service_config: cloudfunctions_v2.yaml @@ -1892,7 +1892,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-gdchardwaremanagement version: 0.1.13 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/gdchardwaremanagement/v1alpha service_config: gdchardwaremanagement_v1alpha.yaml @@ -1911,7 +1911,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-geminidataanalytics version: 0.4.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/geminidataanalytics/v1beta service_config: geminidataanalytics_v1beta.yaml @@ -1932,7 +1932,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-gke-backup version: 0.5.19 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/gkebackup/v1 service_config: gkebackup_v1.yaml @@ -1951,7 +1951,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-gke-connect-gateway version: 0.10.4 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/gkeconnect/gateway/v1beta1 service_config: connectgateway_v1beta1.yaml @@ -1972,7 +1972,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-iam-logging version: 1.4.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/iam/v1/logging service_config: "" @@ -1992,7 +1992,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-iap version: 1.17.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/iap/v1 service_config: iap_v1.yaml @@ -2011,7 +2011,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-ids version: 1.10.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/ids/v1 service_config: ids_v1.yaml @@ -2030,7 +2030,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-kms version: 3.6.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/kms/v1 service_config: cloudkms_v1.yaml @@ -2049,7 +2049,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-kms-inventory version: 0.2.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/kms/inventory/v1 service_config: kmsinventory_v1.yaml @@ -2068,7 +2068,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-language version: 2.17.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/language/v1 service_config: language_v1.yaml @@ -2091,7 +2091,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-licensemanager version: 0.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/licensemanager/v1 service_config: licensemanager_v1.yaml @@ -2110,7 +2110,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-life-sciences version: 0.9.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/lifesciences/v2beta service_config: lifesciences_v2beta.yaml @@ -2129,7 +2129,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-locationfinder version: 0.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/locationfinder/v1 service_config: cloudlocationfinder_v1.yaml @@ -2148,7 +2148,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-lustre version: 0.1.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/lustre/v1 service_config: lustre_v1.yaml @@ -2167,7 +2167,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-maintenance-api version: 0.1.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/maintenance/api/v1beta service_config: maintenance_v1beta.yaml @@ -2186,7 +2186,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-managed-identities version: 1.12.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/managedidentities/v1 service_config: managedidentities_v1.yaml @@ -2205,7 +2205,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-managedkafka version: 0.1.12 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/managedkafka/v1 service_config: managedkafka_v1.yaml @@ -2224,7 +2224,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-managedkafka-schemaregistry version: 0.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/managedkafka/schemaregistry/v1 service_config: managedkafka_v1.yaml @@ -2243,7 +2243,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-media-translation version: 0.11.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/mediatranslation/v1beta1 service_config: mediatranslation_v1beta1.yaml @@ -2262,7 +2262,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-memcache version: 1.12.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/memcache/v1 service_config: memcache_v1.yaml @@ -2283,7 +2283,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-memorystore version: 0.1.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/memorystore/v1beta service_config: memorystore_v1beta.yaml @@ -2304,7 +2304,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-migrationcenter version: 0.1.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/migrationcenter/v1 service_config: migrationcenter_v1.yaml @@ -2323,7 +2323,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-modelarmor version: 0.2.8 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/modelarmor/v1beta service_config: modelarmor_v1beta.yaml @@ -2342,9 +2342,33 @@ libraries: remove_regex: - packages/google-cloud-modelarmor/ tag_format: '{id}-v{version}' + - id: google-cloud-monitoring + version: 2.28.0 + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 + apis: + - path: google/monitoring/v3 + service_config: monitoring.yaml + source_roots: + - packages/google-cloud-monitoring + preserve_regex: + - packages/google-cloud-monitoring/CHANGELOG.md + - docs/CHANGELOG.md + - docs/README.rst + - docs/query.rst + - packages/google-cloud-monitoring/google/cloud/monitoring_v3/_dataframe.py + - packages/google-cloud-monitoring/google/cloud/monitoring_v3/query.py + - samples/README.txt + - scripts/client-post-processing + - samples/snippets/README.rst + - tests/system + - tests/unit/test__dataframe.py + - tests/unit/test_query.py + remove_regex: + - packages/google-cloud-monitoring + tag_format: '{id}-v{version}' - id: google-cloud-monitoring-metrics-scopes version: 1.9.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/monitoring/metricsscope/v1 service_config: monitoring.yaml @@ -2363,7 +2387,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-netapp version: 0.3.24 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/netapp/v1 service_config: netapp_v1.yaml @@ -2382,7 +2406,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-network-connectivity version: 2.10.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/networkconnectivity/v1 service_config: networkconnectivity_v1.yaml @@ -2403,7 +2427,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-network-management version: 1.28.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/networkmanagement/v1 service_config: networkmanagement_v1.yaml @@ -2422,7 +2446,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-network-services version: 0.5.24 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/networkservices/v1 service_config: networkservices_v1.yaml @@ -2441,7 +2465,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-notebooks version: 1.13.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/notebooks/v1beta1 service_config: notebooks_v1beta1.yaml @@ -2464,7 +2488,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-optimization version: 1.11.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/optimization/v1 service_config: cloudoptimization_v1.yaml @@ -2483,7 +2507,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-oracledatabase version: 0.1.10 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/oracledatabase/v1 service_config: oracledatabase_v1.yaml @@ -2502,7 +2526,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-orchestration-airflow version: 1.17.5 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/orchestration/airflow/service/v1 service_config: composer_v1.yaml @@ -2523,7 +2547,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-os-config version: 1.21.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/osconfig/v1alpha service_config: osconfig_v1alpha.yaml @@ -2544,7 +2568,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-parallelstore version: 0.2.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/parallelstore/v1 service_config: parallelstore_v1.yaml @@ -2565,7 +2589,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-parametermanager version: 0.1.5 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/parametermanager/v1 service_config: parametermanager_v1.yaml @@ -2584,7 +2608,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-phishing-protection version: 1.14.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/phishingprotection/v1beta1 service_config: phishingprotection_v1beta1.yaml @@ -2603,7 +2627,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-policy-troubleshooter version: 1.13.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/policytroubleshooter/v1 service_config: policytroubleshooter_v1.yaml @@ -2622,7 +2646,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-policysimulator version: 0.1.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/policysimulator/v1 service_config: policysimulator_v1.yaml @@ -2641,7 +2665,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-policytroubleshooter-iam version: 0.1.13 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/policytroubleshooter/iam/v3 service_config: policytroubleshooter_v3.yaml @@ -2660,7 +2684,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-private-ca version: 1.15.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/security/privateca/v1 service_config: privateca_v1.yaml @@ -2681,7 +2705,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-private-catalog version: 0.9.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/privatecatalog/v1beta1 service_config: cloudprivatecatalog_v1beta1.yaml @@ -2700,7 +2724,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-privilegedaccessmanager version: 0.1.9 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/privilegedaccessmanager/v1 service_config: privilegedaccessmanager_v1.yaml @@ -2719,7 +2743,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-quotas version: 0.1.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/api/cloudquotas/v1 service_config: cloudquotas_v1.yaml @@ -2740,7 +2764,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-rapidmigrationassessment version: 0.1.16 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/rapidmigrationassessment/v1 service_config: rapidmigrationassessment_v1.yaml @@ -2759,7 +2783,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-recaptcha-enterprise version: 1.28.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/recaptchaenterprise/v1 service_config: recaptchaenterprise_v1.yaml @@ -2778,7 +2802,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-recommendations-ai version: 0.10.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/recommendationengine/v1beta1 service_config: recommendationengine_v1beta1.yaml @@ -2797,7 +2821,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-recommender version: 2.18.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/recommender/v1beta1 service_config: recommender_v1beta1.yaml @@ -2818,7 +2842,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-redis version: 2.18.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/redis/v1 service_config: redis_v1.yaml @@ -2839,7 +2863,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-redis-cluster version: 0.1.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/redis/cluster/v1 service_config: redis_v1.yaml @@ -2860,7 +2884,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-resource-manager version: 1.14.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/resourcemanager/v3 service_config: cloudresourcemanager_v3.yaml @@ -2879,7 +2903,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-retail version: 2.6.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/retail/v2 service_config: retail_v2.yaml @@ -2902,7 +2926,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-run version: 0.11.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/run/v2 service_config: run_v2.yaml @@ -2921,7 +2945,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-saasplatform-saasservicemgmt version: 0.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/saasplatform/saasservicemgmt/v1beta1 service_config: saasservicemgmt_v1beta1.yaml @@ -2940,7 +2964,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-scheduler version: 2.16.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/scheduler/v1 service_config: cloudscheduler_v1.yaml @@ -2961,7 +2985,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-securesourcemanager version: 0.1.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/securesourcemanager/v1 service_config: securesourcemanager_v1.yaml @@ -2980,7 +3004,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-security-publicca version: 0.3.18 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/security/publicca/v1 service_config: publicca_v1.yaml @@ -3001,7 +3025,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-securitycenter version: 1.40.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/securitycenter/v2 service_config: securitycenter_v2.yaml @@ -3026,7 +3050,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-securitycentermanagement version: 0.1.22 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/securitycentermanagement/v1 service_config: securitycentermanagement_v1.yaml @@ -3045,7 +3069,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-service-control version: 1.16.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/api/servicecontrol/v2 service_config: servicecontrol.yaml @@ -3066,7 +3090,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-service-directory version: 1.14.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/servicedirectory/v1 service_config: servicedirectory_v1.yaml @@ -3087,7 +3111,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-service-management version: 1.13.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/api/servicemanagement/v1 service_config: servicemanagement_v1.yaml @@ -3106,7 +3130,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-service-usage version: 1.13.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/api/serviceusage/v1 service_config: serviceusage_v1.yaml @@ -3125,7 +3149,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-servicehealth version: 0.1.12 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/servicehealth/v1 service_config: servicehealth_v1.yaml @@ -3144,7 +3168,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-shell version: 1.12.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/shell/v1 service_config: cloudshell_v1.yaml @@ -3163,7 +3187,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-source-context version: 1.7.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/devtools/source/v1 service_config: "" @@ -3183,7 +3207,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-speech version: 2.33.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/speech/v1 service_config: speech_v1.yaml @@ -3208,7 +3232,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-storage-control version: 1.7.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/storage/control/v2 service_config: storage_v2.yaml @@ -3227,7 +3251,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-storage-transfer version: 1.17.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/storagetransfer/v1 service_config: storagetransfer_v1.yaml @@ -3246,7 +3270,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-storagebatchoperations version: 0.1.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/storagebatchoperations/v1 service_config: storagebatchoperations_v1.yaml @@ -3265,7 +3289,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-storageinsights version: 0.1.16 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/storageinsights/v1 service_config: storageinsights_v1.yaml @@ -3284,7 +3308,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-support version: 0.1.19 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/support/v2beta service_config: cloudsupport_v2beta.yaml @@ -3305,7 +3329,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-talent version: 2.17.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/talent/v4beta1 service_config: jobs_v4beta1.yaml @@ -3326,7 +3350,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-tasks version: 2.19.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/tasks/v2beta2 service_config: cloudtasks_v2beta2.yaml @@ -3350,7 +3374,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-telcoautomation version: 0.2.11 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/telcoautomation/v1 service_config: telcoautomation_v1.yaml @@ -3372,7 +3396,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-texttospeech version: 2.31.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/texttospeech/v1 service_config: texttospeech_v1.yaml @@ -3393,7 +3417,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-tpu version: 1.23.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/tpu/v2alpha1 service_config: tpu_v2alpha1.yaml @@ -3416,7 +3440,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-trace version: 1.16.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/devtools/cloudtrace/v2 service_config: cloudtrace_v2.yaml @@ -3437,7 +3461,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-translate version: 3.21.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/translate/v3beta1 service_config: translate_v3beta1.yaml @@ -3462,7 +3486,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-video-live-stream version: 1.13.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/video/livestream/v1 service_config: livestream_v1.yaml @@ -3481,7 +3505,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-video-stitcher version: 0.8.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/video/stitcher/v1 service_config: videostitcher_v1.yaml @@ -3500,7 +3524,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-video-transcoder version: 1.17.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/video/transcoder/v1 service_config: transcoder_v1.yaml @@ -3519,7 +3543,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-videointelligence version: 2.16.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/videointelligence/v1p3beta1 service_config: videointelligence_v1p3beta1.yaml @@ -3546,7 +3570,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-vision version: 3.10.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/vision/v1p3beta1 service_config: vision_v1p3beta1.yaml @@ -3576,7 +3600,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-visionai version: 0.1.10 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/visionai/v1alpha1 service_config: visionai_v1alpha1.yaml @@ -3597,7 +3621,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-vm-migration version: 1.12.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/vmmigration/v1 service_config: vmmigration_v1.yaml @@ -3616,7 +3640,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-vmwareengine version: 1.8.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/vmwareengine/v1 service_config: vmwareengine_v1.yaml @@ -3635,7 +3659,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-vpc-access version: 1.13.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/vpcaccess/v1 service_config: vpcaccess_v1.yaml @@ -3654,7 +3678,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-webrisk version: 1.18.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/webrisk/v1beta1 service_config: webrisk_v1beta1.yaml @@ -3675,7 +3699,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-websecurityscanner version: 1.17.3 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/websecurityscanner/v1alpha service_config: websecurityscanner_v1alpha.yaml @@ -3698,7 +3722,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-workflows version: 1.18.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/workflows/executions/v1 service_config: workflowexecutions_v1.yaml @@ -3723,7 +3747,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-cloud-workstations version: 0.5.15 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/cloud/workstations/v1beta service_config: workstations_v1beta.yaml @@ -3744,7 +3768,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-geo-type version: 0.3.13 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/geo/type service_config: type_geo.yaml @@ -3764,7 +3788,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-addressvalidation version: 0.3.20 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/addressvalidation/v1 service_config: addressvalidation_v1.yaml @@ -3783,7 +3807,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-areainsights version: 0.1.8 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/areainsights/v1 service_config: areainsights_v1.yaml @@ -3802,7 +3826,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-fleetengine version: 0.2.11 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/fleetengine/v1 service_config: fleetengine_v1.yaml @@ -3821,7 +3845,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-fleetengine-delivery version: 0.2.13 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/fleetengine/delivery/v1 service_config: fleetengine_v1.yaml @@ -3840,7 +3864,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-mapsplatformdatasets version: 0.4.8 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/mapsplatformdatasets/v1 service_config: mapsplatformdatasets_v1.yaml @@ -3859,7 +3883,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-places version: 0.2.2 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/places/v1 service_config: places_v1.yaml @@ -3878,7 +3902,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-routeoptimization version: 0.1.11 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/routeoptimization/v1 service_config: routeoptimization_v1.yaml @@ -3898,7 +3922,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-routing version: 0.6.16 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/routing/v2 service_config: routes_v2.yaml @@ -3917,7 +3941,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-maps-solar version: 0.1.9 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/maps/solar/v1 service_config: solar_v1.yaml @@ -3936,7 +3960,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-css version: 0.1.17 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/css/v1 service_config: css_v1.yaml @@ -3955,7 +3979,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-accounts version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/accounts/v1 service_config: merchantapi_v1.yaml @@ -3976,7 +4000,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-conversions version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/conversions/v1 service_config: merchantapi_v1.yaml @@ -3997,7 +4021,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-datasources version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/datasources/v1 service_config: merchantapi_v1.yaml @@ -4018,7 +4042,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-inventories version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/inventories/v1beta service_config: merchantapi_v1beta.yaml @@ -4039,7 +4063,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-issueresolution version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/issueresolution/v1 service_config: merchantapi_v1.yaml @@ -4060,7 +4084,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-lfp version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/lfp/v1beta service_config: merchantapi_v1beta.yaml @@ -4081,7 +4105,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-notifications version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/notifications/v1 service_config: merchantapi_v1.yaml @@ -4102,7 +4126,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-ordertracking version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/ordertracking/v1 service_config: merchantapi_v1.yaml @@ -4123,7 +4147,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-products version: 1.1.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/products/v1 service_config: merchantapi_v1.yaml @@ -4144,7 +4168,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-productstudio version: 0.1.1 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/productstudio/v1alpha service_config: merchantapi_v1alpha.yaml @@ -4163,7 +4187,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-promotions version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/promotions/v1 service_config: merchantapi_v1.yaml @@ -4184,7 +4208,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-quota version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/quota/v1beta service_config: merchantapi_v1beta.yaml @@ -4205,7 +4229,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-reports version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/reports/v1beta service_config: merchantapi_v1beta.yaml @@ -4228,7 +4252,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-merchant-reviews version: 0.2.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/merchant/reviews/v1beta service_config: merchantapi_v1beta.yaml @@ -4247,7 +4271,7 @@ libraries: tag_format: '{id}-v{version}' - id: google-shopping-type version: 1.0.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/shopping/type service_config: "" @@ -4267,7 +4291,7 @@ libraries: tag_format: '{id}-v{version}' - id: googleapis-common-protos version: 1.70.0 - last_generated_commit: db61975fe3b3edabed32fda8056d08e79a93a59e + last_generated_commit: a9ebc23947a515fab3de97ff326c86fc8f03fae1 apis: - path: google/api service_config: serviceconfig.yaml @@ -4287,26 +4311,3 @@ libraries: remove_regex: - ^packages/googleapis-common-protos/google/(?:api|cloud|rpc|type)/.*/.*_pb2\.(?:py|pyi)$/ tag_format: '{id}-v{version}' - - id: google-cloud-monitoring - version: 2.28.0 - last_generated_commit: d300b151a973ce0425ae4ad07b3de957ca31bec6 - apis: - - path: google/monitoring/v3 - source_roots: - - packages/google-cloud-monitoring - preserve_regex: - - packages/google-cloud-monitoring/CHANGELOG.md - - docs/CHANGELOG.md - - docs/README.rst - - docs/query.rst - - packages/google-cloud-monitoring/google/cloud/monitoring_v3/_dataframe.py - - packages/google-cloud-monitoring/google/cloud/monitoring_v3/query.py - - samples/README.txt - - scripts/client-post-processing - - samples/snippets/README.rst - - tests/system - - tests/unit/test__dataframe.py - - tests/unit/test_query.py - remove_regex: - - packages/google-cloud-monitoring - tag_format: '{id}-v{version}' diff --git a/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py b/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py index 550e53989f52..1ff9a6c8f507 100644 --- a/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py +++ b/packages/google-cloud-container/google/cloud/container_v1beta1/__init__.py @@ -147,6 +147,7 @@ NetworkPolicy, NetworkPolicyConfig, NetworkTags, + NetworkTierConfig, NodeConfig, NodeConfigDefaults, NodeKubeletConfig, @@ -172,6 +173,7 @@ PrivateClusterConfig, PrivateClusterMasterGlobalAccessConfig, PrivateIPv6GoogleAccess, + PrivilegedAdmissionConfig, ProtectConfig, RangeInfo, RayClusterLoggingConfig, @@ -190,6 +192,7 @@ SecondaryBootDisk, SecondaryBootDiskUpdateStrategy, SecretManagerConfig, + SecretSyncConfig, SecurityBulletinEvent, SecurityPostureConfig, ServerConfig, @@ -369,6 +372,7 @@ "NetworkPolicy", "NetworkPolicyConfig", "NetworkTags", + "NetworkTierConfig", "NodeConfig", "NodeConfigDefaults", "NodeKubeletConfig", @@ -394,6 +398,7 @@ "PrivateClusterConfig", "PrivateClusterMasterGlobalAccessConfig", "PrivateIPv6GoogleAccess", + "PrivilegedAdmissionConfig", "ProtectConfig", "RBACBindingConfig", "RangeInfo", @@ -412,6 +417,7 @@ "SecondaryBootDisk", "SecondaryBootDiskUpdateStrategy", "SecretManagerConfig", + "SecretSyncConfig", "SecurityBulletinEvent", "SecurityPostureConfig", "ServerConfig", diff --git a/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py b/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py index f87c0cba99be..c72fc9e61137 100644 --- a/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py +++ b/packages/google-cloud-container/google/cloud/container_v1beta1/types/__init__.py @@ -141,6 +141,7 @@ NetworkPolicy, NetworkPolicyConfig, NetworkTags, + NetworkTierConfig, NodeConfig, NodeConfigDefaults, NodeKubeletConfig, @@ -166,6 +167,7 @@ PrivateClusterConfig, PrivateClusterMasterGlobalAccessConfig, PrivateIPv6GoogleAccess, + PrivilegedAdmissionConfig, ProtectConfig, RangeInfo, RayClusterLoggingConfig, @@ -184,6 +186,7 @@ SecondaryBootDisk, SecondaryBootDiskUpdateStrategy, SecretManagerConfig, + SecretSyncConfig, SecurityBulletinEvent, SecurityPostureConfig, ServerConfig, @@ -359,6 +362,7 @@ "NetworkPolicy", "NetworkPolicyConfig", "NetworkTags", + "NetworkTierConfig", "NodeConfig", "NodeConfigDefaults", "NodeKubeletConfig", @@ -382,6 +386,7 @@ "PodSecurityPolicyConfig", "PrivateClusterConfig", "PrivateClusterMasterGlobalAccessConfig", + "PrivilegedAdmissionConfig", "ProtectConfig", "RangeInfo", "RayClusterLoggingConfig", @@ -400,6 +405,7 @@ "SecondaryBootDisk", "SecondaryBootDiskUpdateStrategy", "SecretManagerConfig", + "SecretSyncConfig", "SecurityBulletinEvent", "SecurityPostureConfig", "ServerConfig", diff --git a/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py b/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py index e968fa62731b..b520097818d3 100644 --- a/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py +++ b/packages/google-cloud-container/google/cloud/container_v1beta1/types/cluster_service.py @@ -213,6 +213,7 @@ "Master", "AutopilotConversionStatus", "Autopilot", + "PrivilegedAdmissionConfig", "WorkloadPolicyConfig", "NotificationConfig", "ConfidentialNodes", @@ -245,6 +246,8 @@ "FetchNodePoolUpgradeInfoRequest", "NodePoolUpgradeInfo", "GkeAutoUpgradeConfig", + "NetworkTierConfig", + "SecretSyncConfig", }, ) @@ -422,6 +425,17 @@ class LinuxNodeConfig(proto.Message): See https://docs.kernel.org/admin-guide/mm/transhuge.html for more details. + swap_config (google.cloud.container_v1beta1.types.LinuxNodeConfig.SwapConfig): + Optional. Enables and configures swap space + on nodes. If omitted, swap is disabled. + + This field is a member of `oneof`_ ``_swap_config``. + node_kernel_module_loading (google.cloud.container_v1beta1.types.LinuxNodeConfig.NodeKernelModuleLoading): + Optional. Configuration for kernel module + loading on nodes. When enabled, the node pool + will be provisioned with a Container-Optimized + OS image that enforces kernel module signature + verification. """ class CgroupMode(proto.Enum): @@ -482,7 +496,7 @@ class TransparentHugepageDefrag(proto.Enum): It means that an application will wake kswapd in the background to reclaim pages and wake kcompactd to compact memory so that THP is - available in the near future. It’s the + available in the near future. It's the responsibility of khugepaged to then install the THP pages later. TRANSPARENT_HUGEPAGE_DEFRAG_DEFER_WITH_MADVISE (3): @@ -534,6 +548,219 @@ class HugepagesConfig(proto.Message): optional=True, ) + class SwapConfig(proto.Message): + r"""Configuration for swap memory on a node pool. + + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + enabled (bool): + Optional. Enables or disables swap for the + node pool. + + This field is a member of `oneof`_ ``_enabled``. + encryption_config (google.cloud.container_v1beta1.types.LinuxNodeConfig.SwapConfig.EncryptionConfig): + Optional. If omitted, swap space is encrypted + by default. + + This field is a member of `oneof`_ ``_encryption_config``. + boot_disk_profile (google.cloud.container_v1beta1.types.LinuxNodeConfig.SwapConfig.BootDiskProfile): + Swap on the node's boot disk. + + This field is a member of `oneof`_ ``performance_profile``. + ephemeral_local_ssd_profile (google.cloud.container_v1beta1.types.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile): + Swap on the local SSD shared with pod + ephemeral storage. + + This field is a member of `oneof`_ ``performance_profile``. + dedicated_local_ssd_profile (google.cloud.container_v1beta1.types.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile): + Provisions a new, separate local NVMe SSD + exclusively for swap. + + This field is a member of `oneof`_ ``performance_profile``. + """ + + class EncryptionConfig(proto.Message): + r"""Defines encryption settings for the swap space. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + disabled (bool): + Optional. If true, swap space will not be + encrypted. Defaults to false (encrypted). + + This field is a member of `oneof`_ ``_disabled``. + """ + + disabled: bool = proto.Field( + proto.BOOL, + number=1, + optional=True, + ) + + class BootDiskProfile(proto.Message): + r"""Swap on the node's boot disk. + + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + swap_size_gib (int): + Specifies the size of the swap space in + gibibytes (GiB). + + This field is a member of `oneof`_ ``swap_size``. + swap_size_percent (int): + Specifies the size of the swap space as a + percentage of the boot disk size. + + This field is a member of `oneof`_ ``swap_size``. + """ + + swap_size_gib: int = proto.Field( + proto.INT64, + number=1, + oneof="swap_size", + ) + swap_size_percent: int = proto.Field( + proto.INT32, + number=2, + oneof="swap_size", + ) + + class EphemeralLocalSsdProfile(proto.Message): + r"""Swap on the local SSD shared with pod ephemeral storage. + + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + swap_size_gib (int): + Specifies the size of the swap space in + gibibytes (GiB). + + This field is a member of `oneof`_ ``swap_size``. + swap_size_percent (int): + Specifies the size of the swap space as a + percentage of the ephemeral local SSD capacity. + + This field is a member of `oneof`_ ``swap_size``. + """ + + swap_size_gib: int = proto.Field( + proto.INT64, + number=1, + oneof="swap_size", + ) + swap_size_percent: int = proto.Field( + proto.INT32, + number=2, + oneof="swap_size", + ) + + class DedicatedLocalSsdProfile(proto.Message): + r"""Provisions a new, separate local NVMe SSD exclusively for + swap. + + Attributes: + disk_count (int): + The number of physical local NVMe SSD disks + to attach. + """ + + disk_count: int = proto.Field( + proto.INT64, + number=1, + ) + + enabled: bool = proto.Field( + proto.BOOL, + number=1, + optional=True, + ) + encryption_config: "LinuxNodeConfig.SwapConfig.EncryptionConfig" = proto.Field( + proto.MESSAGE, + number=2, + optional=True, + message="LinuxNodeConfig.SwapConfig.EncryptionConfig", + ) + boot_disk_profile: "LinuxNodeConfig.SwapConfig.BootDiskProfile" = proto.Field( + proto.MESSAGE, + number=3, + oneof="performance_profile", + message="LinuxNodeConfig.SwapConfig.BootDiskProfile", + ) + ephemeral_local_ssd_profile: "LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile" = proto.Field( + proto.MESSAGE, + number=4, + oneof="performance_profile", + message="LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile", + ) + dedicated_local_ssd_profile: "LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile" = proto.Field( + proto.MESSAGE, + number=5, + oneof="performance_profile", + message="LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile", + ) + + class NodeKernelModuleLoading(proto.Message): + r"""Configuration for kernel module loading on nodes. + + Attributes: + policy (google.cloud.container_v1beta1.types.LinuxNodeConfig.NodeKernelModuleLoading.Policy): + Set the node module loading policy for nodes + in the node pool. + """ + + class Policy(proto.Enum): + r"""Defines the kernel module loading policy for nodes in the + nodepool. + + Values: + POLICY_UNSPECIFIED (0): + Default behavior. GKE selects the image based + on node type. For CPU and TPU nodes, the image + will not allow loading external kernel modules. + For GPU nodes, the image will allow loading any + module, whether it is signed or not. + ENFORCE_SIGNED_MODULES (1): + Enforced signature verification: Node pools will use a + Container-Optimized OS image configured to allow loading of + *Google-signed* external kernel modules. Loadpin is enabled + but configured to exclude modules, and kernel module + signature checking is enforced. + DO_NOT_ENFORCE_SIGNED_MODULES (2): + Mirrors existing DEFAULT behavior: + + For CPU and TPU nodes, the image will not allow + loading external kernel modules. + For GPU nodes, the image will allow loading any + module, whether it is signed or not. + """ + POLICY_UNSPECIFIED = 0 + ENFORCE_SIGNED_MODULES = 1 + DO_NOT_ENFORCE_SIGNED_MODULES = 2 + + policy: "LinuxNodeConfig.NodeKernelModuleLoading.Policy" = proto.Field( + proto.ENUM, + number=1, + enum="LinuxNodeConfig.NodeKernelModuleLoading.Policy", + ) + sysctls: MutableMapping[str, str] = proto.MapField( proto.STRING, proto.STRING, @@ -560,6 +787,17 @@ class HugepagesConfig(proto.Message): number=5, enum=TransparentHugepageDefrag, ) + swap_config: SwapConfig = proto.Field( + proto.MESSAGE, + number=12, + optional=True, + message=SwapConfig, + ) + node_kernel_module_loading: NodeKernelModuleLoading = proto.Field( + proto.MESSAGE, + number=13, + message=NodeKernelModuleLoading, + ) class WindowsNodeConfig(proto.Message): @@ -648,7 +886,8 @@ class NodeKubeletConfig(proto.Message): The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - The value must be a positive duration. + The value must be a positive duration between 1ms and 1 + second, inclusive. pod_pids_limit (int): Set the Pod PID limits. See https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits @@ -1869,6 +2108,19 @@ class NodeNetworkConfig(proto.Message): subnetworks, the subnetwork for the node pool is picked based on the IP utilization during node pool creation and is immutable. + network_tier_config (google.cloud.container_v1beta1.types.NetworkTierConfig): + Output only. The network tier configuration + for the node pool inherits from the + cluster-level configuration and remains + immutable throughout the node pool's lifecycle, + including during upgrades. + accelerator_network_profile (str): + Immutable. The accelerator network profile + for the node pool. For now the only valid value + is "auto". If specified, the network + configuration of the nodes in this node pool + will be managed by this profile for the + supported machine types, zone, etc. """ class NetworkPerformanceConfig(proto.Message): @@ -1966,6 +2218,15 @@ class Tier(proto.Enum): proto.STRING, number=19, ) + network_tier_config: "NetworkTierConfig" = proto.Field( + proto.MESSAGE, + number=20, + message="NetworkTierConfig", + ) + accelerator_network_profile: str = proto.Field( + proto.STRING, + number=21, + ) class AdditionalNodeNetworkConfig(proto.Message): @@ -2362,6 +2623,9 @@ class ContainerdConfig(proto.Message): PrivateRegistryAccessConfig is used to configure access configuration for private container registries. + writable_cgroups (google.cloud.container_v1beta1.types.ContainerdConfig.WritableCgroups): + Optional. WritableCgroups defines writable + cgroups configuration for the node pool. """ class PrivateRegistryAccessConfig(proto.Message): @@ -2392,8 +2656,7 @@ class CertificateAuthorityDomainConfig(proto.Message): - my.customdomain.com - 10.0.1.2:5000 gcp_secret_manager_certificate_config (google.cloud.container_v1beta1.types.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig): - Google Secret Manager (GCP) certificate - configuration. + Secret Manager certificate configuration. This field is a member of `oneof`_ ``certificate_config``. """ @@ -2437,11 +2700,30 @@ class GCPSecretManagerCertificateConfig(proto.Message): message="ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig", ) + class WritableCgroups(proto.Message): + r"""Defines writable cgroups configuration. + + Attributes: + enabled (bool): + Optional. Whether writable cgroups is + enabled. + """ + + enabled: bool = proto.Field( + proto.BOOL, + number=1, + ) + private_registry_access_config: PrivateRegistryAccessConfig = proto.Field( proto.MESSAGE, number=1, message=PrivateRegistryAccessConfig, ) + writable_cgroups: WritableCgroups = proto.Field( + proto.MESSAGE, + number=2, + message=WritableCgroups, + ) class HostMaintenancePolicy(proto.Message): @@ -2805,8 +3087,8 @@ class AddonsConfig(proto.Message): running on cluster nodes config_connector_config (google.cloud.container_v1beta1.types.ConfigConnectorConfig): Configuration for the ConfigConnector add-on, - a Kubernetes extension to manage hosted GCP - services through the Kubernetes API + a Kubernetes extension to manage hosted Google + Cloud services through the Kubernetes API. gce_persistent_disk_csi_driver_config (google.cloud.container_v1beta1.types.GcePersistentDiskCsiDriverConfig): Configuration for the Compute Engine Persistent Disk CSI driver. @@ -2814,8 +3096,7 @@ class AddonsConfig(proto.Message): Configuration for the KALM addon, which manages the lifecycle of k8s applications. gcp_filestore_csi_driver_config (google.cloud.container_v1beta1.types.GcpFilestoreCsiDriverConfig): - Configuration for the GCP Filestore CSI - driver. + Configuration for the Filestore CSI driver. gke_backup_agent_config (google.cloud.container_v1beta1.types.GkeBackupAgentConfig): Configuration for the Backup for GKE agent addon. @@ -3093,12 +3374,12 @@ class GcePersistentDiskCsiDriverConfig(proto.Message): class GcpFilestoreCsiDriverConfig(proto.Message): - r"""Configuration for the GCP Filestore CSI driver. + r"""Configuration for the Filestore CSI driver. Attributes: enabled (bool): - Whether the GCP Filestore CSI driver is - enabled for this cluster. + Whether the Filestore CSI driver is enabled + for this cluster. """ enabled: bool = proto.Field( @@ -3162,6 +3443,14 @@ class LustreCsiDriverConfig(proto.Message): enable_legacy_lustre_port (bool): If set to true, the Lustre CSI driver will install Lustre kernel modules using port 6988. + This serves as a workaround for a port conflict + with the gke-metadata-server. This field is + required ONLY under the following conditions: + + 1. The GKE node version is older than + 1.33.2-gke.4655000. + 2. You're connecting to a Lustre instance that + has the 'gke-support-enabled' flag. """ enabled: bool = proto.Field( @@ -3713,6 +4002,11 @@ class IPAllocationPolicy(proto.Message): auto_ipam_config (google.cloud.container_v1beta1.types.AutoIpamConfig): Optional. AutoIpamConfig contains all information related to Auto IPAM + network_tier_config (google.cloud.container_v1beta1.types.NetworkTierConfig): + Cluster-level network tier configuration is + used to determine the default network tier for + external IP addresses on cluster resources, such + as node pools and load balancers. """ class StackType(proto.Enum): @@ -3849,6 +4143,11 @@ class IPv6AccessType(proto.Enum): number=30, message="AutoIpamConfig", ) + network_tier_config: "NetworkTierConfig" = proto.Field( + proto.MESSAGE, + number=31, + message="NetworkTierConfig", + ) class BinaryAuthorization(proto.Message): @@ -4216,7 +4515,7 @@ class Cluster(proto.Message): REGULAR channel with its default version. workload_identity_config (google.cloud.container_v1beta1.types.WorkloadIdentityConfig): Configuration for the use of Kubernetes - Service Accounts in GCP IAM policies. + Service Accounts in IAM policies. workload_certificates (google.cloud.container_v1beta1.types.WorkloadCertificates): Configuration for issuance of mTLS keys and certificates to Kubernetes pods. @@ -4225,7 +4524,9 @@ class Cluster(proto.Message): certificates to Kubernetes pods. workload_alts_config (google.cloud.container_v1beta1.types.WorkloadALTSConfig): Configuration for direct-path (via ALTS) with - workload identity. + workload identity. This feature is not + officially supported for external customers in + Kubernetes Engine when using Workload Identity. cost_management_config (google.cloud.container_v1beta1.types.CostManagementConfig): Configuration for the fine-grained cost management feature. @@ -4390,6 +4691,9 @@ class Cluster(proto.Message): endpoints. enterprise_config (google.cloud.container_v1beta1.types.EnterpriseConfig): GKE Enterprise Configuration. + + Deprecated: GKE Enterprise features are now + available without an Enterprise tier. secret_manager_config (google.cloud.container_v1beta1.types.SecretManagerConfig): Secret CSI driver configuration. compliance_posture_config (google.cloud.container_v1beta1.types.CompliancePostureConfig): @@ -4419,6 +4723,9 @@ class Cluster(proto.Message): anonymous_authentication_config (google.cloud.container_v1beta1.types.AnonymousAuthenticationConfig): Configuration for limiting anonymous access to all endpoints except the health checks. + secret_sync_config (google.cloud.container_v1beta1.types.SecretSyncConfig): + Configuration for sync Secret Manager secrets + as k8s secrets. """ class Status(proto.Enum): @@ -4864,6 +5171,11 @@ class Status(proto.Enum): number=164, message="AnonymousAuthenticationConfig", ) + secret_sync_config: "SecretSyncConfig" = proto.Field( + proto.MESSAGE, + number=166, + message="SecretSyncConfig", + ) class RBACBindingConfig(proto.Message): @@ -5563,7 +5875,9 @@ class ClusterUpdate(proto.Message): certificates to Kubernetes pods. desired_workload_alts_config (google.cloud.container_v1beta1.types.WorkloadALTSConfig): Configuration for direct-path (via ALTS) with - workload identity. + workload identity. This feature is not + officially supported for external customers in + Kubernetes Engine when using Workload Identity. desired_shielded_nodes (google.cloud.container_v1beta1.types.ShieldedNodes): Configuration for Shielded Nodes. desired_cost_management_config (google.cloud.container_v1beta1.types.CostManagementConfig): @@ -5729,6 +6043,8 @@ class ClusterUpdate(proto.Message): desired_enterprise_config (google.cloud.container_v1beta1.types.DesiredEnterpriseConfig): The desired enterprise configuration for the cluster. + Deprecated: GKE Enterprise features are now + available without an Enterprise tier. desired_auto_ipam_config (google.cloud.container_v1beta1.types.AutoIpamConfig): AutoIpamConfig contains all information related to Auto IPAM @@ -5751,6 +6067,9 @@ class ClusterUpdate(proto.Message): to all endpoints except the health checks. gke_auto_upgrade_config (google.cloud.container_v1beta1.types.GkeAutoUpgradeConfig): Configuration for GKE auto upgrade. + desired_network_tier_config (google.cloud.container_v1beta1.types.NetworkTierConfig): + The desired network tier configuration for + the cluster. """ desired_node_version: str = proto.Field( @@ -6158,6 +6477,11 @@ class ClusterUpdate(proto.Message): number=154, message="GkeAutoUpgradeConfig", ) + desired_network_tier_config: "NetworkTierConfig" = proto.Field( + proto.MESSAGE, + number=155, + message="NetworkTierConfig", + ) class AdditionalPodRangesConfig(proto.Message): @@ -6234,7 +6558,23 @@ class DesiredAdditionalIPRangesConfig(proto.Message): class AutoIpamConfig(proto.Message): - r"""AutoIpamConfig contains all information related to Auto IPAM""" + r"""AutoIpamConfig contains all information related to Auto IPAM + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + enabled (bool): + The flag that enables Auto IPAM on this + cluster + + This field is a member of `oneof`_ ``_enabled``. + """ + + enabled: bool = proto.Field( + proto.BOOL, + number=1, + optional=True, + ) class RangeInfo(proto.Message): @@ -6262,6 +6602,9 @@ class DesiredEnterpriseConfig(proto.Message): r"""DesiredEnterpriseConfig is a wrapper used for updating enterprise_config. + Deprecated: GKE Enterprise features are now available without an + Enterprise tier. + Attributes: desired_tier (google.cloud.container_v1beta1.types.EnterpriseConfig.ClusterTier): desired_tier specifies the desired tier of the cluster. @@ -6857,6 +7200,16 @@ class UpdateNodePoolRequest(proto.Message): the locations for a node pool will result in nodes being either created or removed from the node pool, depending on whether locations are being added or removed. + + Warning: It is recommended to update node pool locations in + a standalone API call. Do not combine a location update with + changes to other fields (such as ``tags``, ``labels``, + ``taints``, etc.) in the same request. Otherwise, the API + performs a structural modification where changes to other + fields will only apply to newly created nodes and will not + be applied to existing nodes in the node pool. To ensure all + nodes are updated consistently, use a separate API call for + location changes. workload_metadata_config (google.cloud.container_v1beta1.types.WorkloadMetadataConfig): The desired workload metadata config for the node pool. @@ -8304,11 +8657,24 @@ class StandardRolloutPolicy(proto.Message): ) class AutoscaledRolloutPolicy(proto.Message): - r"""Autoscaled rollout policy uses cluster autoscaler during - blue-green upgrades to scale both the green and blue pools. + r"""Autoscaled rollout policy utilizes the cluster autoscaler + during blue-green upgrade to scale both the blue and green + pools. + Attributes: + wait_for_drain_duration (google.protobuf.duration_pb2.Duration): + Optional. Time to wait after cordoning the + blue pool before draining the nodes. Defaults to + 3 days. The value can be set between 0 and 7 + days, inclusive. """ + wait_for_drain_duration: duration_pb2.Duration = proto.Field( + proto.MESSAGE, + number=1, + message=duration_pb2.Duration, + ) + standard_rollout_policy: StandardRolloutPolicy = proto.Field( proto.MESSAGE, number=1, @@ -8995,6 +9361,9 @@ class MaintenanceExclusionOptions(proto.Message): scope (google.cloud.container_v1beta1.types.MaintenanceExclusionOptions.Scope): Scope specifies the upgrade scope which upgrades are blocked by the exclusion. + end_time_behavior (google.cloud.container_v1beta1.types.MaintenanceExclusionOptions.EndTimeBehavior): + EndTimeBehavior specifies the behavior of the + exclusion end time. """ class Scope(proto.Enum): @@ -9017,11 +9386,32 @@ class Scope(proto.Enum): NO_MINOR_UPGRADES = 1 NO_MINOR_OR_NODE_UPGRADES = 2 + class EndTimeBehavior(proto.Enum): + r"""EndTimeBehavior specifies the behavior of the exclusion end + time. + + Values: + END_TIME_BEHAVIOR_UNSPECIFIED (0): + END_TIME_BEHAVIOR_UNSPECIFIED is the default behavior, which + is fixed end time. + UNTIL_END_OF_SUPPORT (1): + UNTIL_END_OF_SUPPORT means the exclusion will be in effect + until the end of the support of the cluster's current + version. + """ + END_TIME_BEHAVIOR_UNSPECIFIED = 0 + UNTIL_END_OF_SUPPORT = 1 + scope: Scope = proto.Field( proto.ENUM, number=1, enum=Scope, ) + end_time_behavior: EndTimeBehavior = proto.Field( + proto.ENUM, + number=2, + enum=EndTimeBehavior, + ) class RecurringTimeWindow(proto.Message): @@ -11012,7 +11402,7 @@ class MaxPodsConstraint(proto.Message): class WorkloadIdentityConfig(proto.Message): r"""Configuration for the use of Kubernetes Service Accounts in - GCP IAM policies. + IAM policies. Attributes: identity_namespace (str): @@ -11042,7 +11432,8 @@ class WorkloadIdentityConfig(proto.Message): class WorkloadALTSConfig(proto.Message): r"""Configuration for direct-path (via ALTS) with workload - identity. + identity. This feature is not officially supported for external + customers in Kubernetes Engine when using Workload Identity. Attributes: enable_alts (google.protobuf.wrappers_pb2.BoolValue): @@ -11783,6 +12174,10 @@ class Autopilot(proto.Message): conversion_status (google.cloud.container_v1beta1.types.AutopilotConversionStatus): Output only. ConversionStatus shows conversion status. + privileged_admission_config (google.cloud.container_v1beta1.types.PrivilegedAdmissionConfig): + PrivilegedAdmissionConfig is the + configuration related to privileged admission + control. """ enabled: bool = proto.Field( @@ -11799,6 +12194,39 @@ class Autopilot(proto.Message): number=3, message="AutopilotConversionStatus", ) + privileged_admission_config: "PrivilegedAdmissionConfig" = proto.Field( + proto.MESSAGE, + number=4, + message="PrivilegedAdmissionConfig", + ) + + +class PrivilegedAdmissionConfig(proto.Message): + r"""PrivilegedAdmissionConfig stores the list of authorized + allowlist paths for the cluster. + + Attributes: + allowlist_paths (MutableSequence[str]): + The customer allowlist Cloud Storage paths for the cluster. + These paths are used with the + ``--autopilot-privileged-admission`` flag to authorize + privileged workloads in Autopilot clusters. + + Paths can be GKE-owned, in the format + ``gke:////``, or + customer-owned, in the format + ``gs:///``. + + Wildcards (``*``) are supported to authorize all allowlists + under specific paths or directories. Example: + ``gs://my-bucket/*`` will authorize all allowlists under the + ``my-bucket`` bucket. + """ + + allowlist_paths: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=1, + ) class WorkloadPolicyConfig(proto.Message): @@ -11978,6 +12406,11 @@ class UpgradeEvent(proto.Message): The current version before the upgrade. target_version (str): The target version for the upgrade. + current_emulated_version (str): + The current emulated version before the + upgrade. + target_emulated_version (str): + The target emulated version for the upgrade. resource (str): Optional relative path to the resource. For example in node pool upgrades, the relative path @@ -12006,6 +12439,14 @@ class UpgradeEvent(proto.Message): proto.STRING, number=5, ) + current_emulated_version: str = proto.Field( + proto.STRING, + number=7, + ) + target_emulated_version: str = proto.Field( + proto.STRING, + number=8, + ) resource: str = proto.Field( proto.STRING, number=6, @@ -12033,6 +12474,11 @@ class UpgradeInfoEvent(proto.Message): The current version before the upgrade. target_version (str): The target version for the upgrade. + current_emulated_version (str): + The current emulated version before the + upgrade. + target_emulated_version (str): + The target emulated version for the upgrade. resource (str): Optional relative path to the resource. For example in node pool upgrades, the relative path @@ -12126,6 +12572,14 @@ class EventType(proto.Enum): proto.STRING, number=6, ) + current_emulated_version: str = proto.Field( + proto.STRING, + number=15, + ) + target_emulated_version: str = proto.Field( + proto.STRING, + number=16, + ) resource: str = proto.Field( proto.STRING, number=7, @@ -12670,8 +13124,24 @@ class Fleet(proto.Message): pre_registered (bool): Output only. Whether the cluster has been registered through the fleet API. + membership_type (google.cloud.container_v1beta1.types.Fleet.MembershipType): + The type of the cluster's fleet membership. """ + class MembershipType(proto.Enum): + r"""MembershipType describes if the membership supports all + features or only lightweight compatible ones. + + Values: + MEMBERSHIP_TYPE_UNSPECIFIED (0): + The MembershipType is not set. + LIGHTWEIGHT (1): + The membership supports only lightweight + compatible features. + """ + MEMBERSHIP_TYPE_UNSPECIFIED = 0 + LIGHTWEIGHT = 1 + project: str = proto.Field( proto.STRING, number=1, @@ -12684,6 +13154,11 @@ class Fleet(proto.Message): proto.BOOL, number=3, ) + membership_type: MembershipType = proto.Field( + proto.ENUM, + number=4, + enum=MembershipType, + ) class ControlPlaneEndpointsConfig(proto.Message): @@ -12711,11 +13186,21 @@ class DNSEndpointConfig(proto.Message): [DNSEndpointConfig.allow_external_traffic][google.container.v1beta1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic]. allow_external_traffic (bool): Controls whether user traffic is allowed over - this endpoint. Note that GCP-managed services + this endpoint. Note that Google-managed services may still use the endpoint even if this is false. This field is a member of `oneof`_ ``_allow_external_traffic``. + enable_k8s_tokens_via_dns (bool): + Controls whether the k8s token auth is + allowed via DNS. + + This field is a member of `oneof`_ ``_enable_k8s_tokens_via_dns``. + enable_k8s_certs_via_dns (bool): + Controls whether the k8s certs auth is + allowed via DNS. + + This field is a member of `oneof`_ ``_enable_k8s_certs_via_dns``. """ endpoint: str = proto.Field( @@ -12727,6 +13212,16 @@ class DNSEndpointConfig(proto.Message): number=3, optional=True, ) + enable_k8s_tokens_via_dns: bool = proto.Field( + proto.BOOL, + number=5, + optional=True, + ) + enable_k8s_certs_via_dns: bool = proto.Field( + proto.BOOL, + number=6, + optional=True, + ) class IPEndpointsConfig(proto.Message): r"""IP endpoints configuration. @@ -12848,6 +13343,9 @@ class ResourceManagerTags(proto.Message): class EnterpriseConfig(proto.Message): r"""EnterpriseConfig is the cluster enterprise configuration. + Deprecated: GKE Enterprise features are now available without an + Enterprise tier. + Attributes: cluster_tier (google.cloud.container_v1beta1.types.EnterpriseConfig.ClusterTier): Output only. cluster_tier indicates the effective tier of @@ -12859,6 +13357,9 @@ class EnterpriseConfig(proto.Message): class ClusterTier(proto.Enum): r"""Premium tiers for GKE Cluster. + Deprecated: GKE Enterprise features are now available without an + Enterprise tier. + Values: CLUSTER_TIER_UNSPECIFIED (0): CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. @@ -12868,6 +13369,7 @@ class ClusterTier(proto.Enum): ENTERPRISE indicates a GKE Enterprise cluster. """ + _pb_options = {"deprecated": True} CLUSTER_TIER_UNSPECIFIED = 0 STANDARD = 1 ENTERPRISE = 2 @@ -13450,4 +13952,107 @@ class PatchMode(proto.Enum): ) +class NetworkTierConfig(proto.Message): + r"""NetworkTierConfig contains network tier information. + + Attributes: + network_tier (google.cloud.container_v1beta1.types.NetworkTierConfig.NetworkTier): + Network tier configuration. + """ + + class NetworkTier(proto.Enum): + r"""Network tier configuration. + + Values: + NETWORK_TIER_UNSPECIFIED (0): + By default, use project-level configuration. When + unspecified, the behavior defaults to NETWORK_TIER_DEFAULT. + For cluster updates, this implies no action (no-op). + NETWORK_TIER_DEFAULT (1): + Default network tier. Use project-level + configuration. User can specify this value, + meaning they want to keep the same behaviour as + before cluster level network tier configuration + is introduced. This field ensures backward + compatibility for the network tier of cluster + resources, such as node pools and load + balancers, for their external IP addresses. + NETWORK_TIER_PREMIUM (2): + Premium network tier. + NETWORK_TIER_STANDARD (3): + Standard network tier. + """ + NETWORK_TIER_UNSPECIFIED = 0 + NETWORK_TIER_DEFAULT = 1 + NETWORK_TIER_PREMIUM = 2 + NETWORK_TIER_STANDARD = 3 + + network_tier: NetworkTier = proto.Field( + proto.ENUM, + number=1, + enum=NetworkTier, + ) + + +class SecretSyncConfig(proto.Message): + r"""Configuration for sync Secret Manager secrets as k8s secrets. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + enabled (bool): + Enable/Disable Secret Sync Config. + + This field is a member of `oneof`_ ``_enabled``. + rotation_config (google.cloud.container_v1beta1.types.SecretSyncConfig.SyncRotationConfig): + Rotation config for secret manager. + + This field is a member of `oneof`_ ``_rotation_config``. + """ + + class SyncRotationConfig(proto.Message): + r"""SyncRotationConfig is config for secret manager auto + rotation. + + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + enabled (bool): + Whether the rotation is enabled. + + This field is a member of `oneof`_ ``_enabled``. + rotation_interval (google.protobuf.duration_pb2.Duration): + The interval between two consecutive + rotations. Default rotation interval is 2 + minutes. + + This field is a member of `oneof`_ ``_rotation_interval``. + """ + + enabled: bool = proto.Field( + proto.BOOL, + number=1, + optional=True, + ) + rotation_interval: duration_pb2.Duration = proto.Field( + proto.MESSAGE, + number=2, + optional=True, + message=duration_pb2.Duration, + ) + + enabled: bool = proto.Field( + proto.BOOL, + number=1, + optional=True, + ) + rotation_config: SyncRotationConfig = proto.Field( + proto.MESSAGE, + number=2, + optional=True, + message=SyncRotationConfig, + ) + + __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics/__init__.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics/__init__.py index 8111b5774d07..10d0a351e95c 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics/__init__.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics/__init__.py @@ -36,14 +36,15 @@ Context, ConversationOptions, ExampleQuery, + GlossaryTerm, ) from google.cloud.geminidataanalytics_v1alpha.types.conversation import ( Conversation, CreateConversationRequest, + DeleteConversationRequest, GetConversationRequest, ListConversationsRequest, ListConversationsResponse, - UpdateConversationRequest, ) from google.cloud.geminidataanalytics_v1alpha.types.credentials import ( Credentials, @@ -119,12 +120,13 @@ "Context", "ConversationOptions", "ExampleQuery", + "GlossaryTerm", "Conversation", "CreateConversationRequest", + "DeleteConversationRequest", "GetConversationRequest", "ListConversationsRequest", "ListConversationsResponse", - "UpdateConversationRequest", "Credentials", "OAuthCredentials", "DataAgent", diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/__init__.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/__init__.py index 89d297a981c3..8dd21f9450cd 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/__init__.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/__init__.py @@ -32,14 +32,15 @@ Context, ConversationOptions, ExampleQuery, + GlossaryTerm, ) from .types.conversation import ( Conversation, CreateConversationRequest, + DeleteConversationRequest, GetConversationRequest, ListConversationsRequest, ListConversationsResponse, - UpdateConversationRequest, ) from .types.credentials import Credentials, OAuthCredentials from .types.data_agent import DataAgent @@ -135,6 +136,7 @@ "DataResult", "Datasource", "DatasourceReferences", + "DeleteConversationRequest", "DeleteDataAgentRequest", "ErrorMessage", "ExampleQueries", @@ -142,6 +144,7 @@ "Field", "GetConversationRequest", "GetDataAgentRequest", + "GlossaryTerm", "ListAccessibleDataAgentsRequest", "ListAccessibleDataAgentsResponse", "ListConversationsRequest", @@ -166,7 +169,6 @@ "StudioDatasourceReferences", "SystemMessage", "TextMessage", - "UpdateConversationRequest", "UpdateDataAgentRequest", "UserMessage", ) diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/gapic_metadata.json b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/gapic_metadata.json index 2cbc71f4f6bb..6b5b423a1d86 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/gapic_metadata.json +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/gapic_metadata.json @@ -159,6 +159,11 @@ "create_conversation" ] }, + "DeleteConversation": { + "methods": [ + "delete_conversation" + ] + }, "GetConversation": { "methods": [ "get_conversation" @@ -173,11 +178,6 @@ "methods": [ "list_messages" ] - }, - "UpdateConversation": { - "methods": [ - "update_conversation" - ] } } }, @@ -194,6 +194,11 @@ "create_conversation" ] }, + "DeleteConversation": { + "methods": [ + "delete_conversation" + ] + }, "GetConversation": { "methods": [ "get_conversation" @@ -208,11 +213,6 @@ "methods": [ "list_messages" ] - }, - "UpdateConversation": { - "methods": [ - "update_conversation" - ] } } }, @@ -229,6 +229,11 @@ "create_conversation" ] }, + "DeleteConversation": { + "methods": [ + "delete_conversation" + ] + }, "GetConversation": { "methods": [ "get_conversation" @@ -243,11 +248,6 @@ "methods": [ "list_messages" ] - }, - "UpdateConversation": { - "methods": [ - "update_conversation" - ] } } } diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/async_client.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/async_client.py index 67b9b174551e..8b8bc03ba47b 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/async_client.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/async_client.py @@ -48,7 +48,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.longrunning import operations_pb2 # type: ignore -from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore from google.cloud.geminidataanalytics_v1alpha.services.data_chat_service import pagers @@ -540,19 +539,16 @@ async def sample_create_conversation(): # Done; return the response. return response - async def update_conversation( + async def delete_conversation( self, - request: Optional[ - Union[gcg_conversation.UpdateConversationRequest, dict] - ] = None, + request: Optional[Union[conversation.DeleteConversationRequest, dict]] = None, *, - conversation: Optional[gcg_conversation.Conversation] = None, - update_mask: Optional[field_mask_pb2.FieldMask] = None, + name: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), - ) -> gcg_conversation.Conversation: - r"""Updates a conversation. + ) -> None: + r"""Deletes a conversation. .. code-block:: python @@ -565,44 +561,27 @@ async def update_conversation( # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import geminidataanalytics_v1alpha - async def sample_update_conversation(): + async def sample_delete_conversation(): # Create a client client = geminidataanalytics_v1alpha.DataChatServiceAsyncClient() # Initialize request argument(s) - conversation = geminidataanalytics_v1alpha.Conversation() - conversation.agents = ['agents_value1', 'agents_value2'] - - request = geminidataanalytics_v1alpha.UpdateConversationRequest( - conversation=conversation, + request = geminidataanalytics_v1alpha.DeleteConversationRequest( + name="name_value", ) # Make the request - response = await client.update_conversation(request=request) - - # Handle the response - print(response) + await client.delete_conversation(request=request) Args: - request (Optional[Union[google.cloud.geminidataanalytics_v1alpha.types.UpdateConversationRequest, dict]]): - The request object. Request for updating a conversation. - conversation (:class:`google.cloud.geminidataanalytics_v1alpha.types.Conversation`): - Required. The resource being updated. - This corresponds to the ``conversation`` field - on the ``request`` instance; if ``request`` is provided, this - should not be set. - update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`): - Optional. Field mask is used to specify the fields to be - overwritten in the Conversation resource by the update. - The fields specified in the update_mask are relative to - the resource, not the full request. A field will be - overwritten if it is in the mask. If the user does not - provide a mask then all fields with non-default values - present in the request will be overwritten. If a - wildcard mask is provided, all fields will be - overwritten. - - This corresponds to the ``update_mask`` field + request (Optional[Union[google.cloud.geminidataanalytics_v1alpha.types.DeleteConversationRequest, dict]]): + The request object. Request for deleting a conversation + based on parent and conversation id. + name (:class:`str`): + Required. Name of the resource. Format: + ``projects/{project}/locations/{location}/conversations/{conversation}`` + + This corresponds to the ``name`` field on the ``request`` instance; if ``request`` is provided, this should not be set. retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any, @@ -612,15 +591,11 @@ async def sample_update_conversation(): sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. - - Returns: - google.cloud.geminidataanalytics_v1alpha.types.Conversation: - Message for a conversation. """ # 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. - flattened_params = [conversation, update_mask] + flattened_params = [name] has_flattened_params = ( len([param for param in flattened_params if param is not None]) > 0 ) @@ -632,44 +607,37 @@ async def sample_update_conversation(): # - Use the request object if provided (there's no risk of modifying the input as # there are no flattened fields), or create one. - if not isinstance(request, gcg_conversation.UpdateConversationRequest): - request = gcg_conversation.UpdateConversationRequest(request) + if not isinstance(request, conversation.DeleteConversationRequest): + request = conversation.DeleteConversationRequest(request) # If we have keyword arguments corresponding to fields on the # request, apply these. - if conversation is not None: - request.conversation = conversation - if update_mask is not None: - request.update_mask = update_mask + if name is not None: + request.name = name # Wrap the RPC method; this adds retry and timeout information, # and friendly error handling. rpc = self._client._transport._wrapped_methods[ - self._client._transport.update_conversation + self._client._transport.delete_conversation ] # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata( - (("conversation.name", request.conversation.name),) - ), + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), ) # Validate the universe domain. self._client._validate_universe_domain() # Send the request. - response = await rpc( + await rpc( request, retry=retry, timeout=timeout, metadata=metadata, ) - # Done; return the response. - return response - async def get_conversation( self, request: Optional[Union[conversation.GetConversationRequest, dict]] = None, diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/client.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/client.py index 25c3953fff67..4ac4c1086816 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/client.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/client.py @@ -64,7 +64,6 @@ from google.cloud.location import locations_pb2 # type: ignore from google.longrunning import operations_pb2 # type: ignore -from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore from google.cloud.geminidataanalytics_v1alpha.services.data_chat_service import pagers @@ -977,19 +976,16 @@ def sample_create_conversation(): # Done; return the response. return response - def update_conversation( + def delete_conversation( self, - request: Optional[ - Union[gcg_conversation.UpdateConversationRequest, dict] - ] = None, + request: Optional[Union[conversation.DeleteConversationRequest, dict]] = None, *, - conversation: Optional[gcg_conversation.Conversation] = None, - update_mask: Optional[field_mask_pb2.FieldMask] = None, + name: Optional[str] = None, retry: OptionalRetry = gapic_v1.method.DEFAULT, timeout: Union[float, object] = gapic_v1.method.DEFAULT, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), - ) -> gcg_conversation.Conversation: - r"""Updates a conversation. + ) -> None: + r"""Deletes a conversation. .. code-block:: python @@ -1002,44 +998,27 @@ def update_conversation( # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import geminidataanalytics_v1alpha - def sample_update_conversation(): + def sample_delete_conversation(): # Create a client client = geminidataanalytics_v1alpha.DataChatServiceClient() # Initialize request argument(s) - conversation = geminidataanalytics_v1alpha.Conversation() - conversation.agents = ['agents_value1', 'agents_value2'] - - request = geminidataanalytics_v1alpha.UpdateConversationRequest( - conversation=conversation, + request = geminidataanalytics_v1alpha.DeleteConversationRequest( + name="name_value", ) # Make the request - response = client.update_conversation(request=request) - - # Handle the response - print(response) + client.delete_conversation(request=request) Args: - request (Union[google.cloud.geminidataanalytics_v1alpha.types.UpdateConversationRequest, dict]): - The request object. Request for updating a conversation. - conversation (google.cloud.geminidataanalytics_v1alpha.types.Conversation): - Required. The resource being updated. - This corresponds to the ``conversation`` field - on the ``request`` instance; if ``request`` is provided, this - should not be set. - update_mask (google.protobuf.field_mask_pb2.FieldMask): - Optional. Field mask is used to specify the fields to be - overwritten in the Conversation resource by the update. - The fields specified in the update_mask are relative to - the resource, not the full request. A field will be - overwritten if it is in the mask. If the user does not - provide a mask then all fields with non-default values - present in the request will be overwritten. If a - wildcard mask is provided, all fields will be - overwritten. - - This corresponds to the ``update_mask`` field + request (Union[google.cloud.geminidataanalytics_v1alpha.types.DeleteConversationRequest, dict]): + The request object. Request for deleting a conversation + based on parent and conversation id. + name (str): + Required. Name of the resource. Format: + ``projects/{project}/locations/{location}/conversations/{conversation}`` + + 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, @@ -1049,15 +1028,11 @@ def sample_update_conversation(): sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. - - Returns: - google.cloud.geminidataanalytics_v1alpha.types.Conversation: - Message for a conversation. """ # 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. - flattened_params = [conversation, update_mask] + flattened_params = [name] has_flattened_params = ( len([param for param in flattened_params if param is not None]) > 0 ) @@ -1069,41 +1044,34 @@ def sample_update_conversation(): # - Use the request object if provided (there's no risk of modifying the input as # there are no flattened fields), or create one. - if not isinstance(request, gcg_conversation.UpdateConversationRequest): - request = gcg_conversation.UpdateConversationRequest(request) + if not isinstance(request, conversation.DeleteConversationRequest): + request = conversation.DeleteConversationRequest(request) # If we have keyword arguments corresponding to fields on the # request, apply these. - if conversation is not None: - request.conversation = conversation - if update_mask is not None: - request.update_mask = update_mask + 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.update_conversation] + rpc = self._transport._wrapped_methods[self._transport.delete_conversation] # Certain fields should be provided within the metadata header; # add these here. metadata = tuple(metadata) + ( - gapic_v1.routing_header.to_grpc_metadata( - (("conversation.name", request.conversation.name),) - ), + gapic_v1.routing_header.to_grpc_metadata((("name", request.name),)), ) # Validate the universe domain. self._validate_universe_domain() # Send the request. - response = rpc( + rpc( request, retry=retry, timeout=timeout, metadata=metadata, ) - # Done; return the response. - return response - def get_conversation( self, request: Optional[Union[conversation.GetConversationRequest, dict]] = None, diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/base.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/base.py index f86663f30f6a..343e390b57e9 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/base.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/base.py @@ -26,6 +26,7 @@ from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore import google.protobuf +from google.protobuf import empty_pb2 # type: ignore from google.cloud.geminidataanalytics_v1alpha import gapic_version as package_version from google.cloud.geminidataanalytics_v1alpha.types import ( @@ -149,8 +150,8 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), - self.update_conversation: gapic_v1.method.wrap_method( - self.update_conversation, + self.delete_conversation: gapic_v1.method.wrap_method( + self.delete_conversation, default_timeout=None, client_info=client_info, ), @@ -229,11 +230,11 @@ def create_conversation( raise NotImplementedError() @property - def update_conversation( + def delete_conversation( self, ) -> Callable[ - [gcg_conversation.UpdateConversationRequest], - Union[gcg_conversation.Conversation, Awaitable[gcg_conversation.Conversation]], + [conversation.DeleteConversationRequest], + Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]], ]: raise NotImplementedError() diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc.py index 4456255c4368..b45132c93661 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc.py @@ -25,6 +25,7 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore from google.longrunning import operations_pb2 # type: ignore +from google.protobuf import empty_pb2 # type: ignore from google.protobuf.json_format import MessageToJson import google.protobuf.message import grpc # type: ignore @@ -388,18 +389,16 @@ def create_conversation( return self._stubs["create_conversation"] @property - def update_conversation( + def delete_conversation( self, - ) -> Callable[ - [gcg_conversation.UpdateConversationRequest], gcg_conversation.Conversation - ]: - r"""Return a callable for the update conversation method over gRPC. + ) -> Callable[[conversation.DeleteConversationRequest], empty_pb2.Empty]: + r"""Return a callable for the delete conversation method over gRPC. - Updates a conversation. + Deletes a conversation. Returns: - Callable[[~.UpdateConversationRequest], - ~.Conversation]: + Callable[[~.DeleteConversationRequest], + ~.Empty]: A function that, when called, will call the underlying RPC on the server. """ @@ -407,13 +406,13 @@ def update_conversation( # the request. # gRPC handles serialization and deserialization, so we just need # to pass in the functions for each. - if "update_conversation" not in self._stubs: - self._stubs["update_conversation"] = self._logged_channel.unary_unary( - "/google.cloud.geminidataanalytics.v1alpha.DataChatService/UpdateConversation", - request_serializer=gcg_conversation.UpdateConversationRequest.serialize, - response_deserializer=gcg_conversation.Conversation.deserialize, + if "delete_conversation" not in self._stubs: + self._stubs["delete_conversation"] = self._logged_channel.unary_unary( + "/google.cloud.geminidataanalytics.v1alpha.DataChatService/DeleteConversation", + request_serializer=conversation.DeleteConversationRequest.serialize, + response_deserializer=empty_pb2.Empty.FromString, ) - return self._stubs["update_conversation"] + return self._stubs["delete_conversation"] @property def get_conversation( diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc_asyncio.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc_asyncio.py index a85a739860ea..a3aa3a285d7f 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc_asyncio.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/grpc_asyncio.py @@ -27,6 +27,7 @@ from google.auth.transport.grpc import SslCredentials # type: ignore from google.cloud.location import locations_pb2 # type: ignore from google.longrunning import operations_pb2 # type: ignore +from google.protobuf import empty_pb2 # type: ignore from google.protobuf.json_format import MessageToJson import google.protobuf.message import grpc # type: ignore @@ -399,19 +400,16 @@ def create_conversation( return self._stubs["create_conversation"] @property - def update_conversation( + def delete_conversation( self, - ) -> Callable[ - [gcg_conversation.UpdateConversationRequest], - Awaitable[gcg_conversation.Conversation], - ]: - r"""Return a callable for the update conversation method over gRPC. + ) -> Callable[[conversation.DeleteConversationRequest], Awaitable[empty_pb2.Empty]]: + r"""Return a callable for the delete conversation method over gRPC. - Updates a conversation. + Deletes a conversation. Returns: - Callable[[~.UpdateConversationRequest], - Awaitable[~.Conversation]]: + Callable[[~.DeleteConversationRequest], + Awaitable[~.Empty]]: A function that, when called, will call the underlying RPC on the server. """ @@ -419,13 +417,13 @@ def update_conversation( # the request. # gRPC handles serialization and deserialization, so we just need # to pass in the functions for each. - if "update_conversation" not in self._stubs: - self._stubs["update_conversation"] = self._logged_channel.unary_unary( - "/google.cloud.geminidataanalytics.v1alpha.DataChatService/UpdateConversation", - request_serializer=gcg_conversation.UpdateConversationRequest.serialize, - response_deserializer=gcg_conversation.Conversation.deserialize, + if "delete_conversation" not in self._stubs: + self._stubs["delete_conversation"] = self._logged_channel.unary_unary( + "/google.cloud.geminidataanalytics.v1alpha.DataChatService/DeleteConversation", + request_serializer=conversation.DeleteConversationRequest.serialize, + response_deserializer=empty_pb2.Empty.FromString, ) - return self._stubs["update_conversation"] + return self._stubs["delete_conversation"] @property def get_conversation( @@ -527,8 +525,8 @@ def _prep_wrapped_messages(self, client_info): default_timeout=None, client_info=client_info, ), - self.update_conversation: self._wrap_method( - self.update_conversation, + self.delete_conversation: self._wrap_method( + self.delete_conversation, default_timeout=None, client_info=client_info, ), diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest.py index 4b62b405e85a..d4b12521586e 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest.py @@ -27,6 +27,7 @@ from google.cloud.location import locations_pb2 # type: ignore from google.longrunning import operations_pb2 # type: ignore import google.protobuf +from google.protobuf import empty_pb2 # type: ignore from google.protobuf import json_format from requests import __version__ as requests_version @@ -94,6 +95,10 @@ def post_create_conversation(self, response): logging.log(f"Received response: {response}") return response + def pre_delete_conversation(self, request, metadata): + logging.log(f"Received request: {request}") + return request, metadata + def pre_get_conversation(self, request, metadata): logging.log(f"Received request: {request}") return request, metadata @@ -118,14 +123,6 @@ def post_list_messages(self, response): logging.log(f"Received response: {response}") return response - def pre_update_conversation(self, request, metadata): - logging.log(f"Received request: {request}") - return request, metadata - - def post_update_conversation(self, response): - logging.log(f"Received response: {response}") - return response - transport = DataChatServiceRestTransport(interceptor=MyCustomDataChatServiceInterceptor()) client = DataChatServiceClient(transport=transport) @@ -229,6 +226,20 @@ def post_create_conversation_with_metadata( """ return response, metadata + def pre_delete_conversation( + self, + request: conversation.DeleteConversationRequest, + metadata: Sequence[Tuple[str, Union[str, bytes]]], + ) -> Tuple[ + conversation.DeleteConversationRequest, Sequence[Tuple[str, Union[str, bytes]]] + ]: + """Pre-rpc interceptor for delete_conversation + + Override in a subclass to manipulate the request or metadata + before they are sent to the DataChatService server. + """ + return request, metadata + def pre_get_conversation( self, request: conversation.GetConversationRequest, @@ -377,55 +388,6 @@ def post_list_messages_with_metadata( """ return response, metadata - def pre_update_conversation( - self, - request: gcg_conversation.UpdateConversationRequest, - metadata: Sequence[Tuple[str, Union[str, bytes]]], - ) -> Tuple[ - gcg_conversation.UpdateConversationRequest, - Sequence[Tuple[str, Union[str, bytes]]], - ]: - """Pre-rpc interceptor for update_conversation - - Override in a subclass to manipulate the request or metadata - before they are sent to the DataChatService server. - """ - return request, metadata - - def post_update_conversation( - self, response: gcg_conversation.Conversation - ) -> gcg_conversation.Conversation: - """Post-rpc interceptor for update_conversation - - DEPRECATED. Please use the `post_update_conversation_with_metadata` - interceptor instead. - - Override in a subclass to read or manipulate the response - after it is returned by the DataChatService server but before - it is returned to user code. This `post_update_conversation` interceptor runs - before the `post_update_conversation_with_metadata` interceptor. - """ - return response - - def post_update_conversation_with_metadata( - self, - response: gcg_conversation.Conversation, - metadata: Sequence[Tuple[str, Union[str, bytes]]], - ) -> Tuple[gcg_conversation.Conversation, Sequence[Tuple[str, Union[str, bytes]]]]: - """Post-rpc interceptor for update_conversation - - Override in a subclass to read or manipulate the response or metadata after it - is returned by the DataChatService server but before it is returned to user code. - - We recommend only using this `post_update_conversation_with_metadata` - interceptor in new development instead of the `post_update_conversation` interceptor. - When both interceptors are used, this `post_update_conversation_with_metadata` interceptor runs after the - `post_update_conversation` interceptor. The (possibly modified) response returned by - `post_update_conversation` will be passed to - `post_update_conversation_with_metadata`. - """ - return response, metadata - def pre_get_location( self, request: locations_pb2.GetLocationRequest, @@ -960,11 +922,12 @@ def __call__( ) return resp - class _GetConversation( - _BaseDataChatServiceRestTransport._BaseGetConversation, DataChatServiceRestStub + class _DeleteConversation( + _BaseDataChatServiceRestTransport._BaseDeleteConversation, + DataChatServiceRestStub, ): def __hash__(self): - return hash("DataChatServiceRestTransport.GetConversation") + return hash("DataChatServiceRestTransport.DeleteConversation") @staticmethod def _get_response( @@ -990,17 +953,17 @@ def _get_response( def __call__( self, - request: conversation.GetConversationRequest, + request: conversation.DeleteConversationRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), - ) -> conversation.Conversation: - r"""Call the get conversation method over HTTP. + ): + r"""Call the delete conversation method over HTTP. Args: - request (~.conversation.GetConversationRequest): - The request object. Request for getting a conversation + request (~.conversation.DeleteConversationRequest): + The request object. Request for deleting a conversation based on parent and conversation id. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. @@ -1009,25 +972,21 @@ def __call__( sent along with the request as metadata. Normally, each value must be of type `str`, but for metadata keys ending with the suffix `-bin`, the corresponding values must be of type `bytes`. - - Returns: - ~.conversation.Conversation: - Message for a conversation. """ http_options = ( - _BaseDataChatServiceRestTransport._BaseGetConversation._get_http_options() + _BaseDataChatServiceRestTransport._BaseDeleteConversation._get_http_options() ) - request, metadata = self._interceptor.pre_get_conversation( + request, metadata = self._interceptor.pre_delete_conversation( request, metadata ) - transcoded_request = _BaseDataChatServiceRestTransport._BaseGetConversation._get_transcoded_request( + transcoded_request = _BaseDataChatServiceRestTransport._BaseDeleteConversation._get_transcoded_request( http_options, request ) # Jsonify the query params - query_params = _BaseDataChatServiceRestTransport._BaseGetConversation._get_query_params_json( + query_params = _BaseDataChatServiceRestTransport._BaseDeleteConversation._get_query_params_json( transcoded_request ) @@ -1039,7 +998,7 @@ def __call__( ) method = transcoded_request["method"] try: - request_payload = type(request).to_json(request) + request_payload = json_format.MessageToJson(request) except: request_payload = None http_request = { @@ -1049,17 +1008,17 @@ def __call__( "headers": dict(metadata), } _LOGGER.debug( - f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.GetConversation", + f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.DeleteConversation", extra={ "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "GetConversation", + "rpcName": "DeleteConversation", "httpRequest": http_request, "metadata": http_request["headers"], }, ) # Send the request - response = DataChatServiceRestTransport._GetConversation._get_response( + response = DataChatServiceRestTransport._DeleteConversation._get_response( self._host, metadata, query_params, @@ -1073,46 +1032,11 @@ def __call__( if response.status_code >= 400: raise core_exceptions.from_http_response(response) - # Return the response - resp = conversation.Conversation() - pb_resp = conversation.Conversation.pb(resp) - - json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) - - resp = self._interceptor.post_get_conversation(resp) - response_metadata = [(k, str(v)) for k, v in response.headers.items()] - resp, _ = self._interceptor.post_get_conversation_with_metadata( - resp, response_metadata - ) - if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( - logging.DEBUG - ): # pragma: NO COVER - try: - response_payload = conversation.Conversation.to_json(response) - except: - response_payload = None - http_response = { - "payload": response_payload, - "headers": dict(response.headers), - "status": response.status_code, - } - _LOGGER.debug( - "Received response for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.get_conversation", - extra={ - "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "GetConversation", - "metadata": http_response["headers"], - "httpResponse": http_response, - }, - ) - return resp - - class _ListConversations( - _BaseDataChatServiceRestTransport._BaseListConversations, - DataChatServiceRestStub, + class _GetConversation( + _BaseDataChatServiceRestTransport._BaseGetConversation, DataChatServiceRestStub ): def __hash__(self): - return hash("DataChatServiceRestTransport.ListConversations") + return hash("DataChatServiceRestTransport.GetConversation") @staticmethod def _get_response( @@ -1138,18 +1062,18 @@ def _get_response( def __call__( self, - request: conversation.ListConversationsRequest, + request: conversation.GetConversationRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), - ) -> conversation.ListConversationsResponse: - r"""Call the list conversations method over HTTP. + ) -> conversation.Conversation: + r"""Call the get conversation method over HTTP. Args: - request (~.conversation.ListConversationsRequest): - The request object. Request for listing conversations - based on parent. + request (~.conversation.GetConversationRequest): + The request object. Request for getting a conversation + based on parent and conversation id. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1159,25 +1083,23 @@ def __call__( be of type `bytes`. Returns: - ~.conversation.ListConversationsResponse: - Message for response to listing - conversations. - + ~.conversation.Conversation: + Message for a conversation. """ http_options = ( - _BaseDataChatServiceRestTransport._BaseListConversations._get_http_options() + _BaseDataChatServiceRestTransport._BaseGetConversation._get_http_options() ) - request, metadata = self._interceptor.pre_list_conversations( + request, metadata = self._interceptor.pre_get_conversation( request, metadata ) - transcoded_request = _BaseDataChatServiceRestTransport._BaseListConversations._get_transcoded_request( + transcoded_request = _BaseDataChatServiceRestTransport._BaseGetConversation._get_transcoded_request( http_options, request ) # Jsonify the query params - query_params = _BaseDataChatServiceRestTransport._BaseListConversations._get_query_params_json( + query_params = _BaseDataChatServiceRestTransport._BaseGetConversation._get_query_params_json( transcoded_request ) @@ -1199,17 +1121,17 @@ def __call__( "headers": dict(metadata), } _LOGGER.debug( - f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.ListConversations", + f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.GetConversation", extra={ "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "ListConversations", + "rpcName": "GetConversation", "httpRequest": http_request, "metadata": http_request["headers"], }, ) # Send the request - response = DataChatServiceRestTransport._ListConversations._get_response( + response = DataChatServiceRestTransport._GetConversation._get_response( self._host, metadata, query_params, @@ -1224,23 +1146,21 @@ def __call__( raise core_exceptions.from_http_response(response) # Return the response - resp = conversation.ListConversationsResponse() - pb_resp = conversation.ListConversationsResponse.pb(resp) + resp = conversation.Conversation() + pb_resp = conversation.Conversation.pb(resp) json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) - resp = self._interceptor.post_list_conversations(resp) + resp = self._interceptor.post_get_conversation(resp) response_metadata = [(k, str(v)) for k, v in response.headers.items()] - resp, _ = self._interceptor.post_list_conversations_with_metadata( + resp, _ = self._interceptor.post_get_conversation_with_metadata( resp, response_metadata ) if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( logging.DEBUG ): # pragma: NO COVER try: - response_payload = conversation.ListConversationsResponse.to_json( - response - ) + response_payload = conversation.Conversation.to_json(response) except: response_payload = None http_response = { @@ -1249,21 +1169,22 @@ def __call__( "status": response.status_code, } _LOGGER.debug( - "Received response for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_conversations", + "Received response for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.get_conversation", extra={ "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "ListConversations", + "rpcName": "GetConversation", "metadata": http_response["headers"], "httpResponse": http_response, }, ) return resp - class _ListMessages( - _BaseDataChatServiceRestTransport._BaseListMessages, DataChatServiceRestStub + class _ListConversations( + _BaseDataChatServiceRestTransport._BaseListConversations, + DataChatServiceRestStub, ): def __hash__(self): - return hash("DataChatServiceRestTransport.ListMessages") + return hash("DataChatServiceRestTransport.ListConversations") @staticmethod def _get_response( @@ -1289,18 +1210,18 @@ def _get_response( def __call__( self, - request: data_chat_service.ListMessagesRequest, + request: conversation.ListConversationsRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), - ) -> data_chat_service.ListMessagesResponse: - r"""Call the list messages method over HTTP. + ) -> conversation.ListConversationsResponse: + r"""Call the list conversations method over HTTP. Args: - request (~.data_chat_service.ListMessagesRequest): - The request object. Request for listing chat messages based on parent and - conversation_id. + request (~.conversation.ListConversationsRequest): + The request object. Request for listing conversations + based on parent. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1310,21 +1231,25 @@ def __call__( be of type `bytes`. Returns: - ~.data_chat_service.ListMessagesResponse: - Response for listing chat messages. + ~.conversation.ListConversationsResponse: + Message for response to listing + conversations. + """ http_options = ( - _BaseDataChatServiceRestTransport._BaseListMessages._get_http_options() + _BaseDataChatServiceRestTransport._BaseListConversations._get_http_options() ) - request, metadata = self._interceptor.pre_list_messages(request, metadata) - transcoded_request = _BaseDataChatServiceRestTransport._BaseListMessages._get_transcoded_request( + request, metadata = self._interceptor.pre_list_conversations( + request, metadata + ) + transcoded_request = _BaseDataChatServiceRestTransport._BaseListConversations._get_transcoded_request( http_options, request ) # Jsonify the query params - query_params = _BaseDataChatServiceRestTransport._BaseListMessages._get_query_params_json( + query_params = _BaseDataChatServiceRestTransport._BaseListConversations._get_query_params_json( transcoded_request ) @@ -1346,17 +1271,17 @@ def __call__( "headers": dict(metadata), } _LOGGER.debug( - f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.ListMessages", + f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.ListConversations", extra={ "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "ListMessages", + "rpcName": "ListConversations", "httpRequest": http_request, "metadata": http_request["headers"], }, ) # Send the request - response = DataChatServiceRestTransport._ListMessages._get_response( + response = DataChatServiceRestTransport._ListConversations._get_response( self._host, metadata, query_params, @@ -1371,21 +1296,21 @@ def __call__( raise core_exceptions.from_http_response(response) # Return the response - resp = data_chat_service.ListMessagesResponse() - pb_resp = data_chat_service.ListMessagesResponse.pb(resp) + resp = conversation.ListConversationsResponse() + pb_resp = conversation.ListConversationsResponse.pb(resp) json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) - resp = self._interceptor.post_list_messages(resp) + resp = self._interceptor.post_list_conversations(resp) response_metadata = [(k, str(v)) for k, v in response.headers.items()] - resp, _ = self._interceptor.post_list_messages_with_metadata( + resp, _ = self._interceptor.post_list_conversations_with_metadata( resp, response_metadata ) if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( logging.DEBUG ): # pragma: NO COVER try: - response_payload = data_chat_service.ListMessagesResponse.to_json( + response_payload = conversation.ListConversationsResponse.to_json( response ) except: @@ -1396,22 +1321,21 @@ def __call__( "status": response.status_code, } _LOGGER.debug( - "Received response for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_messages", + "Received response for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_conversations", extra={ "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "ListMessages", + "rpcName": "ListConversations", "metadata": http_response["headers"], "httpResponse": http_response, }, ) return resp - class _UpdateConversation( - _BaseDataChatServiceRestTransport._BaseUpdateConversation, - DataChatServiceRestStub, + class _ListMessages( + _BaseDataChatServiceRestTransport._BaseListMessages, DataChatServiceRestStub ): def __hash__(self): - return hash("DataChatServiceRestTransport.UpdateConversation") + return hash("DataChatServiceRestTransport.ListMessages") @staticmethod def _get_response( @@ -1432,23 +1356,23 @@ def _get_response( timeout=timeout, headers=headers, params=rest_helpers.flatten_query_params(query_params, strict=True), - data=body, ) return response def __call__( self, - request: gcg_conversation.UpdateConversationRequest, + request: data_chat_service.ListMessagesRequest, *, retry: OptionalRetry = gapic_v1.method.DEFAULT, timeout: Optional[float] = None, metadata: Sequence[Tuple[str, Union[str, bytes]]] = (), - ) -> gcg_conversation.Conversation: - r"""Call the update conversation method over HTTP. + ) -> data_chat_service.ListMessagesResponse: + r"""Call the list messages method over HTTP. Args: - request (~.gcg_conversation.UpdateConversationRequest): - The request object. Request for updating a conversation. + request (~.data_chat_service.ListMessagesRequest): + The request object. Request for listing chat messages based on parent and + conversation_id. retry (google.api_core.retry.Retry): Designation of what errors, if any, should be retried. timeout (float): The timeout for this request. @@ -1458,27 +1382,21 @@ def __call__( be of type `bytes`. Returns: - ~.gcg_conversation.Conversation: - Message for a conversation. + ~.data_chat_service.ListMessagesResponse: + Response for listing chat messages. """ http_options = ( - _BaseDataChatServiceRestTransport._BaseUpdateConversation._get_http_options() + _BaseDataChatServiceRestTransport._BaseListMessages._get_http_options() ) - request, metadata = self._interceptor.pre_update_conversation( - request, metadata - ) - transcoded_request = _BaseDataChatServiceRestTransport._BaseUpdateConversation._get_transcoded_request( + request, metadata = self._interceptor.pre_list_messages(request, metadata) + transcoded_request = _BaseDataChatServiceRestTransport._BaseListMessages._get_transcoded_request( http_options, request ) - body = _BaseDataChatServiceRestTransport._BaseUpdateConversation._get_request_body_json( - transcoded_request - ) - # Jsonify the query params - query_params = _BaseDataChatServiceRestTransport._BaseUpdateConversation._get_query_params_json( + query_params = _BaseDataChatServiceRestTransport._BaseListMessages._get_query_params_json( transcoded_request ) @@ -1500,24 +1418,23 @@ def __call__( "headers": dict(metadata), } _LOGGER.debug( - f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.UpdateConversation", + f"Sending request for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.ListMessages", extra={ "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "UpdateConversation", + "rpcName": "ListMessages", "httpRequest": http_request, "metadata": http_request["headers"], }, ) # Send the request - response = DataChatServiceRestTransport._UpdateConversation._get_response( + response = DataChatServiceRestTransport._ListMessages._get_response( self._host, metadata, query_params, self._session, timeout, transcoded_request, - body, ) # In case of error, raise the appropriate core_exceptions.GoogleAPICallError exception @@ -1526,21 +1443,23 @@ def __call__( raise core_exceptions.from_http_response(response) # Return the response - resp = gcg_conversation.Conversation() - pb_resp = gcg_conversation.Conversation.pb(resp) + resp = data_chat_service.ListMessagesResponse() + pb_resp = data_chat_service.ListMessagesResponse.pb(resp) json_format.Parse(response.content, pb_resp, ignore_unknown_fields=True) - resp = self._interceptor.post_update_conversation(resp) + resp = self._interceptor.post_list_messages(resp) response_metadata = [(k, str(v)) for k, v in response.headers.items()] - resp, _ = self._interceptor.post_update_conversation_with_metadata( + resp, _ = self._interceptor.post_list_messages_with_metadata( resp, response_metadata ) if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor( logging.DEBUG ): # pragma: NO COVER try: - response_payload = gcg_conversation.Conversation.to_json(response) + response_payload = data_chat_service.ListMessagesResponse.to_json( + response + ) except: response_payload = None http_response = { @@ -1549,10 +1468,10 @@ def __call__( "status": response.status_code, } _LOGGER.debug( - "Received response for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.update_conversation", + "Received response for google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_messages", extra={ "serviceName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", - "rpcName": "UpdateConversation", + "rpcName": "ListMessages", "metadata": http_response["headers"], "httpResponse": http_response, }, @@ -1577,6 +1496,14 @@ def create_conversation( # In C++ this would require a dynamic_cast return self._CreateConversation(self._session, self._host, self._interceptor) # type: ignore + @property + def delete_conversation( + self, + ) -> Callable[[conversation.DeleteConversationRequest], empty_pb2.Empty]: + # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. + # In C++ this would require a dynamic_cast + return self._DeleteConversation(self._session, self._host, self._interceptor) # type: ignore + @property def get_conversation( self, @@ -1605,16 +1532,6 @@ def list_messages( # In C++ this would require a dynamic_cast return self._ListMessages(self._session, self._host, self._interceptor) # type: ignore - @property - def update_conversation( - self, - ) -> Callable[ - [gcg_conversation.UpdateConversationRequest], gcg_conversation.Conversation - ]: - # The return type is fine, but mypy isn't sophisticated enough to determine what's going on here. - # In C++ this would require a dynamic_cast - return self._UpdateConversation(self._session, self._host, self._interceptor) # type: ignore - @property def get_location(self): return self._GetLocation(self._session, self._host, self._interceptor) # type: ignore diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest_base.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest_base.py index 75e4a2c6ffea..7c60daf52658 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest_base.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/data_chat_service/transports/rest_base.py @@ -20,6 +20,7 @@ from google.api_core import gapic_v1, path_template from google.cloud.location import locations_pb2 # type: ignore from google.longrunning import operations_pb2 # type: ignore +from google.protobuf import empty_pb2 # type: ignore from google.protobuf import json_format from google.cloud.geminidataanalytics_v1alpha.types import ( @@ -207,7 +208,7 @@ def _get_query_params_json(transcoded_request): query_params["$alt"] = "json;enum-encoding=int" return query_params - class _BaseGetConversation: + class _BaseDeleteConversation: def __hash__(self): # pragma: NO COVER return NotImplementedError("__hash__ must be implemented.") @@ -225,7 +226,7 @@ def _get_unset_required_fields(cls, message_dict): def _get_http_options(): http_options: List[Dict[str, str]] = [ { - "method": "get", + "method": "delete", "uri": "/v1alpha/{name=projects/*/locations/*/conversations/*}", }, ] @@ -233,7 +234,7 @@ def _get_http_options(): @staticmethod def _get_transcoded_request(http_options, request): - pb_request = conversation.GetConversationRequest.pb(request) + pb_request = conversation.DeleteConversationRequest.pb(request) transcoded_request = path_template.transcode(http_options, pb_request) return transcoded_request @@ -246,7 +247,7 @@ def _get_query_params_json(transcoded_request): ) ) query_params.update( - _BaseDataChatServiceRestTransport._BaseGetConversation._get_unset_required_fields( + _BaseDataChatServiceRestTransport._BaseDeleteConversation._get_unset_required_fields( query_params ) ) @@ -254,7 +255,7 @@ def _get_query_params_json(transcoded_request): query_params["$alt"] = "json;enum-encoding=int" return query_params - class _BaseListConversations: + class _BaseGetConversation: def __hash__(self): # pragma: NO COVER return NotImplementedError("__hash__ must be implemented.") @@ -273,14 +274,14 @@ def _get_http_options(): http_options: List[Dict[str, str]] = [ { "method": "get", - "uri": "/v1alpha/{parent=projects/*/locations/*}/conversations", + "uri": "/v1alpha/{name=projects/*/locations/*/conversations/*}", }, ] return http_options @staticmethod def _get_transcoded_request(http_options, request): - pb_request = conversation.ListConversationsRequest.pb(request) + pb_request = conversation.GetConversationRequest.pb(request) transcoded_request = path_template.transcode(http_options, pb_request) return transcoded_request @@ -293,7 +294,7 @@ def _get_query_params_json(transcoded_request): ) ) query_params.update( - _BaseDataChatServiceRestTransport._BaseListConversations._get_unset_required_fields( + _BaseDataChatServiceRestTransport._BaseGetConversation._get_unset_required_fields( query_params ) ) @@ -301,7 +302,7 @@ def _get_query_params_json(transcoded_request): query_params["$alt"] = "json;enum-encoding=int" return query_params - class _BaseListMessages: + class _BaseListConversations: def __hash__(self): # pragma: NO COVER return NotImplementedError("__hash__ must be implemented.") @@ -320,14 +321,14 @@ def _get_http_options(): http_options: List[Dict[str, str]] = [ { "method": "get", - "uri": "/v1alpha/{parent=projects/*/locations/*/conversations/*}/messages", + "uri": "/v1alpha/{parent=projects/*/locations/*}/conversations", }, ] return http_options @staticmethod def _get_transcoded_request(http_options, request): - pb_request = data_chat_service.ListMessagesRequest.pb(request) + pb_request = conversation.ListConversationsRequest.pb(request) transcoded_request = path_template.transcode(http_options, pb_request) return transcoded_request @@ -340,7 +341,7 @@ def _get_query_params_json(transcoded_request): ) ) query_params.update( - _BaseDataChatServiceRestTransport._BaseListMessages._get_unset_required_fields( + _BaseDataChatServiceRestTransport._BaseListConversations._get_unset_required_fields( query_params ) ) @@ -348,7 +349,7 @@ def _get_query_params_json(transcoded_request): query_params["$alt"] = "json;enum-encoding=int" return query_params - class _BaseUpdateConversation: + class _BaseListMessages: def __hash__(self): # pragma: NO COVER return NotImplementedError("__hash__ must be implemented.") @@ -366,28 +367,18 @@ def _get_unset_required_fields(cls, message_dict): def _get_http_options(): http_options: List[Dict[str, str]] = [ { - "method": "patch", - "uri": "/v1alpha/{conversation.name=projects/*/locations/*/conversations/*}", - "body": "conversation", + "method": "get", + "uri": "/v1alpha/{parent=projects/*/locations/*/conversations/*}/messages", }, ] return http_options @staticmethod def _get_transcoded_request(http_options, request): - pb_request = gcg_conversation.UpdateConversationRequest.pb(request) + pb_request = data_chat_service.ListMessagesRequest.pb(request) transcoded_request = path_template.transcode(http_options, pb_request) return transcoded_request - @staticmethod - def _get_request_body_json(transcoded_request): - # Jsonify the request body - - body = json_format.MessageToJson( - transcoded_request["body"], use_integers_for_enums=True - ) - return body - @staticmethod def _get_query_params_json(transcoded_request): query_params = json.loads( @@ -397,7 +388,7 @@ def _get_query_params_json(transcoded_request): ) ) query_params.update( - _BaseDataChatServiceRestTransport._BaseUpdateConversation._get_unset_required_fields( + _BaseDataChatServiceRestTransport._BaseListMessages._get_unset_required_fields( query_params ) ) diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/__init__.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/__init__.py index 407ab3695331..3468c293f49c 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/__init__.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/__init__.py @@ -19,14 +19,15 @@ Context, ConversationOptions, ExampleQuery, + GlossaryTerm, ) from .conversation import ( Conversation, CreateConversationRequest, + DeleteConversationRequest, GetConversationRequest, ListConversationsRequest, ListConversationsResponse, - UpdateConversationRequest, ) from .credentials import Credentials, OAuthCredentials from .data_agent import DataAgent @@ -93,12 +94,13 @@ "Context", "ConversationOptions", "ExampleQuery", + "GlossaryTerm", "Conversation", "CreateConversationRequest", + "DeleteConversationRequest", "GetConversationRequest", "ListConversationsRequest", "ListConversationsResponse", - "UpdateConversationRequest", "Credentials", "OAuthCredentials", "DataAgent", diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/context.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/context.py index db53a474cf45..af3470fc67d0 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/context.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/context.py @@ -26,6 +26,7 @@ manifest={ "Context", "ExampleQuery", + "GlossaryTerm", "ConversationOptions", "ChartOptions", "AnalysisOptions", @@ -58,8 +59,106 @@ class Context(proto.Message): SQL queries and their corresponding natural language queries optionally present. Currently only used for BigQuery data sources. + glossary_terms (MutableSequence[google.cloud.geminidataanalytics_v1alpha.types.GlossaryTerm]): + Optional. Term definitions (currently, only + user authored) + schema_relationships (MutableSequence[google.cloud.geminidataanalytics_v1alpha.types.Context.SchemaRelationship]): + Optional. Relationships between table schema, + including referencing and referenced columns. """ + class SchemaRelationship(proto.Message): + r"""The relationship between two tables, including referencing + and referenced columns. This is a derived context retrieved from + Dataplex Dataset Insights. + + Attributes: + left_schema_paths (google.cloud.geminidataanalytics_v1alpha.types.Context.SchemaRelationship.SchemaPaths): + An ordered list of fields for the join from the first table. + The size of this list must be the same as + ``right_schema_paths``. Each field at index i in this list + must correspond to a field at the same index in the + ``right_schema_paths`` list. + right_schema_paths (google.cloud.geminidataanalytics_v1alpha.types.Context.SchemaRelationship.SchemaPaths): + An ordered list of fields for the join from the second + table. The size of this list must be the same as + ``left_schema_paths``. Each field at index i in this list + must correspond to a field at the same index in the + ``left_schema_paths`` list. + sources (MutableSequence[google.cloud.geminidataanalytics_v1alpha.types.Context.SchemaRelationship.Source]): + Sources which generated the schema relation + edge. + confidence_score (float): + A confidence score for the suggested + relationship. Manually added edges have the + highest confidence score. + """ + + class Source(proto.Enum): + r"""Source which generated the schema relation edge. + + Values: + SOURCE_UNSPECIFIED (0): + The source of the schema relationship is + unspecified. + BIGQUERY_JOB_HISTORY (1): + The source of the schema relationship is + BigQuery job history. + LLM_SUGGESTED (2): + The source of the schema relationship is LLM + suggested. + BIGQUERY_TABLE_CONSTRAINTS (3): + The source of the schema relationship is + BigQuery table constraints. + """ + SOURCE_UNSPECIFIED = 0 + BIGQUERY_JOB_HISTORY = 1 + LLM_SUGGESTED = 2 + BIGQUERY_TABLE_CONSTRAINTS = 3 + + class SchemaPaths(proto.Message): + r"""Represents an ordered set of paths within the table schema. + + Attributes: + table_fqn (str): + The service-qualified full resource name of the table Ex: + bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID + paths (MutableSequence[str]): + The ordered list of paths within the table + schema. + """ + + table_fqn: str = proto.Field( + proto.STRING, + number=1, + ) + paths: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=2, + ) + + left_schema_paths: "Context.SchemaRelationship.SchemaPaths" = proto.Field( + proto.MESSAGE, + number=1, + message="Context.SchemaRelationship.SchemaPaths", + ) + right_schema_paths: "Context.SchemaRelationship.SchemaPaths" = proto.Field( + proto.MESSAGE, + number=2, + message="Context.SchemaRelationship.SchemaPaths", + ) + sources: MutableSequence[ + "Context.SchemaRelationship.Source" + ] = proto.RepeatedField( + proto.ENUM, + number=3, + enum="Context.SchemaRelationship.Source", + ) + confidence_score: float = proto.Field( + proto.FLOAT, + number=4, + ) + system_instruction: str = proto.Field( proto.STRING, number=1, @@ -79,6 +178,16 @@ class Context(proto.Message): number=5, message="ExampleQuery", ) + glossary_terms: MutableSequence["GlossaryTerm"] = proto.RepeatedField( + proto.MESSAGE, + number=8, + message="GlossaryTerm", + ) + schema_relationships: MutableSequence[SchemaRelationship] = proto.RepeatedField( + proto.MESSAGE, + number=9, + message=SchemaRelationship, + ) class ExampleQuery(proto.Message): @@ -114,6 +223,40 @@ class ExampleQuery(proto.Message): ) +class GlossaryTerm(proto.Message): + r"""Definition of a term within a specific domain. + + Attributes: + display_name (str): + Required. User friendly display name of the + glossary term being defined. For example: "CTR", + "conversion rate", "pending". + description (str): + Required. The description or meaning of the + term. For example: "Click-through rate", "The + percentage of users who complete a desired + action", "An order that is waiting to be + processed.". + labels (MutableSequence[str]): + Optional. A list of general purpose labels associated to + this term. For example: ["click rate", "clickthrough", + "waiting"] + """ + + display_name: str = proto.Field( + proto.STRING, + number=1, + ) + description: str = proto.Field( + proto.STRING, + number=2, + ) + labels: MutableSequence[str] = proto.RepeatedField( + proto.STRING, + number=3, + ) + + class ConversationOptions(proto.Message): r"""Options for the conversation. diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/conversation.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/conversation.py index bfdfeec4567c..8d8d36b9216c 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/conversation.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/conversation.py @@ -17,7 +17,6 @@ from typing import MutableMapping, MutableSequence -from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore import proto # type: ignore @@ -26,10 +25,10 @@ manifest={ "Conversation", "CreateConversationRequest", - "UpdateConversationRequest", "GetConversationRequest", "ListConversationsRequest", "ListConversationsResponse", + "DeleteConversationRequest", }, ) @@ -137,46 +136,6 @@ class CreateConversationRequest(proto.Message): ) -class UpdateConversationRequest(proto.Message): - r"""Request for updating a conversation. - - Attributes: - conversation (google.cloud.geminidataanalytics_v1alpha.types.Conversation): - Required. The resource being updated. - update_mask (google.protobuf.field_mask_pb2.FieldMask): - Optional. Field mask is used to specify the fields to be - overwritten in the Conversation resource by the update. The - fields specified in the update_mask are relative to the - resource, not the full request. A field will be overwritten - if it is in the mask. If the user does not provide a mask - then all fields with non-default values present in the - request will be overwritten. If a wildcard mask is provided, - all fields will be overwritten. - request_id (str): - Optional. An optional request ID to identify - requests. Specify a unique request ID so that if - you must retry your request, the server will - know to ignore the request if it has already - been completed. The server will guarantee that - for at least 60 minutes since the first request. - """ - - conversation: "Conversation" = proto.Field( - proto.MESSAGE, - number=1, - message="Conversation", - ) - update_mask: field_mask_pb2.FieldMask = proto.Field( - proto.MESSAGE, - number=2, - message=field_mask_pb2.FieldMask, - ) - request_id: str = proto.Field( - proto.STRING, - number=3, - ) - - class GetConversationRequest(proto.Message): r"""Request for getting a conversation based on parent and conversation id. @@ -262,4 +221,20 @@ def raw_page(self): ) +class DeleteConversationRequest(proto.Message): + r"""Request for deleting a conversation based on parent and + conversation id. + + Attributes: + name (str): + Required. Name of the resource. Format: + ``projects/{project}/locations/{location}/conversations/{conversation}`` + """ + + name: str = proto.Field( + proto.STRING, + number=1, + ) + + __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/data_chat_service.py b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/data_chat_service.py index 724a47ad9444..ff81dcf29401 100644 --- a/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/data_chat_service.py +++ b/packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/types/data_chat_service.py @@ -610,7 +610,8 @@ class DataMessage(proto.Message): This field is a member of `oneof`_ ``kind``. generated_looker_query (google.cloud.geminidataanalytics_v1alpha.types.LookerQuery): Looker Query generated by the system to - retrieve data. + retrieve data. DEPRECATED: generated looker + query is now under DataQuery.looker. This field is a member of `oneof`_ ``kind``. big_query_job (google.cloud.geminidataanalytics_v1alpha.types.BigQueryJob): diff --git a/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_async.py b/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_async.py similarity index 72% rename from packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_async.py rename to packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_async.py index e199ce1e57e3..67d0c7b617bc 100644 --- a/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_async.py +++ b/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_async.py @@ -15,7 +15,7 @@ # # Generated code. DO NOT EDIT! # -# Snippet for UpdateConversation +# Snippet for DeleteConversation # NOTE: This snippet has been automatically generated for illustrative purposes only. # It may require modifications to work in your environment. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-geminidataanalytics -# [START geminidataanalytics_v1alpha_generated_DataChatService_UpdateConversation_async] +# [START geminidataanalytics_v1alpha_generated_DataChatService_DeleteConversation_async] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -34,22 +34,17 @@ from google.cloud import geminidataanalytics_v1alpha -async def sample_update_conversation(): +async def sample_delete_conversation(): # Create a client client = geminidataanalytics_v1alpha.DataChatServiceAsyncClient() # Initialize request argument(s) - conversation = geminidataanalytics_v1alpha.Conversation() - conversation.agents = ['agents_value1', 'agents_value2'] - - request = geminidataanalytics_v1alpha.UpdateConversationRequest( - conversation=conversation, + request = geminidataanalytics_v1alpha.DeleteConversationRequest( + name="name_value", ) # Make the request - response = await client.update_conversation(request=request) + await client.delete_conversation(request=request) - # Handle the response - print(response) -# [END geminidataanalytics_v1alpha_generated_DataChatService_UpdateConversation_async] +# [END geminidataanalytics_v1alpha_generated_DataChatService_DeleteConversation_async] diff --git a/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_sync.py b/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_sync.py similarity index 72% rename from packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_sync.py rename to packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_sync.py index bc92b378ea93..561b06011b38 100644 --- a/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_sync.py +++ b/packages/google-cloud-geminidataanalytics/samples/generated_samples/geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_sync.py @@ -15,7 +15,7 @@ # # Generated code. DO NOT EDIT! # -# Snippet for UpdateConversation +# Snippet for DeleteConversation # NOTE: This snippet has been automatically generated for illustrative purposes only. # It may require modifications to work in your environment. @@ -23,7 +23,7 @@ # python3 -m pip install google-cloud-geminidataanalytics -# [START geminidataanalytics_v1alpha_generated_DataChatService_UpdateConversation_sync] +# [START geminidataanalytics_v1alpha_generated_DataChatService_DeleteConversation_sync] # This snippet has been automatically generated and should be regarded as a # code template only. # It will require modifications to work: @@ -34,22 +34,17 @@ from google.cloud import geminidataanalytics_v1alpha -def sample_update_conversation(): +def sample_delete_conversation(): # Create a client client = geminidataanalytics_v1alpha.DataChatServiceClient() # Initialize request argument(s) - conversation = geminidataanalytics_v1alpha.Conversation() - conversation.agents = ['agents_value1', 'agents_value2'] - - request = geminidataanalytics_v1alpha.UpdateConversationRequest( - conversation=conversation, + request = geminidataanalytics_v1alpha.DeleteConversationRequest( + name="name_value", ) # Make the request - response = client.update_conversation(request=request) + client.delete_conversation(request=request) - # Handle the response - print(response) -# [END geminidataanalytics_v1alpha_generated_DataChatService_UpdateConversation_sync] +# [END geminidataanalytics_v1alpha_generated_DataChatService_DeleteConversation_sync] diff --git a/packages/google-cloud-geminidataanalytics/samples/generated_samples/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json b/packages/google-cloud-geminidataanalytics/samples/generated_samples/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json index 6095ccf91a36..39c1c01c3f24 100644 --- a/packages/google-cloud-geminidataanalytics/samples/generated_samples/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json +++ b/packages/google-cloud-geminidataanalytics/samples/generated_samples/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json @@ -1661,19 +1661,19 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient", "shortName": "DataChatServiceAsyncClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.get_conversation", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.delete_conversation", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.GetConversation", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.DeleteConversation", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "GetConversation" + "shortName": "DeleteConversation" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.GetConversationRequest" + "type": "google.cloud.geminidataanalytics_v1alpha.types.DeleteConversationRequest" }, { "name": "name", @@ -1692,22 +1692,21 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.types.Conversation", - "shortName": "get_conversation" + "shortName": "delete_conversation" }, - "description": "Sample for GetConversation", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_async.py", + "description": "Sample for DeleteConversation", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_GetConversation_async", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_DeleteConversation_async", "segments": [ { - "end": 51, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 49, "start": 27, "type": "SHORT" }, @@ -1722,17 +1721,15 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 48, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 50, "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_async.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_async.py" }, { "canonical": true, @@ -1741,19 +1738,19 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient", "shortName": "DataChatServiceClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.get_conversation", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.delete_conversation", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.GetConversation", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.DeleteConversation", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "GetConversation" + "shortName": "DeleteConversation" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.GetConversationRequest" + "type": "google.cloud.geminidataanalytics_v1alpha.types.DeleteConversationRequest" }, { "name": "name", @@ -1772,22 +1769,21 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.types.Conversation", - "shortName": "get_conversation" + "shortName": "delete_conversation" }, - "description": "Sample for GetConversation", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_sync.py", + "description": "Sample for DeleteConversation", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_GetConversation_sync", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_DeleteConversation_sync", "segments": [ { - "end": 51, + "end": 49, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 49, "start": 27, "type": "SHORT" }, @@ -1802,17 +1798,15 @@ "type": "REQUEST_INITIALIZATION" }, { - "end": 48, "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 52, - "start": 49, + "end": 50, "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_sync.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_delete_conversation_sync.py" }, { "canonical": true, @@ -1822,22 +1816,22 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient", "shortName": "DataChatServiceAsyncClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.list_conversations", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.get_conversation", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListConversations", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.GetConversation", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "ListConversations" + "shortName": "GetConversation" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.ListConversationsRequest" + "type": "google.cloud.geminidataanalytics_v1alpha.types.GetConversationRequest" }, { - "name": "parent", + "name": "name", "type": "str" }, { @@ -1853,22 +1847,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListConversationsAsyncPager", - "shortName": "list_conversations" + "resultType": "google.cloud.geminidataanalytics_v1alpha.types.Conversation", + "shortName": "get_conversation" }, - "description": "Sample for ListConversations", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_async.py", + "description": "Sample for GetConversation", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListConversations_async", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_GetConversation_async", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -1888,12 +1882,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_async.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_async.py" }, { "canonical": true, @@ -1902,22 +1896,22 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient", "shortName": "DataChatServiceClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_conversations", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.get_conversation", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListConversations", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.GetConversation", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "ListConversations" + "shortName": "GetConversation" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.ListConversationsRequest" + "type": "google.cloud.geminidataanalytics_v1alpha.types.GetConversationRequest" }, { - "name": "parent", + "name": "name", "type": "str" }, { @@ -1933,22 +1927,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListConversationsPager", - "shortName": "list_conversations" + "resultType": "google.cloud.geminidataanalytics_v1alpha.types.Conversation", + "shortName": "get_conversation" }, - "description": "Sample for ListConversations", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_sync.py", + "description": "Sample for GetConversation", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListConversations_sync", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_GetConversation_sync", "segments": [ { - "end": 52, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 51, "start": 27, "type": "SHORT" }, @@ -1968,12 +1962,12 @@ "type": "REQUEST_EXECUTION" }, { - "end": 53, + "end": 52, "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_sync.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_get_conversation_sync.py" }, { "canonical": true, @@ -1983,19 +1977,19 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient", "shortName": "DataChatServiceAsyncClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.list_messages", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.list_conversations", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListMessages", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListConversations", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "ListMessages" + "shortName": "ListConversations" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.ListMessagesRequest" + "type": "google.cloud.geminidataanalytics_v1alpha.types.ListConversationsRequest" }, { "name": "parent", @@ -2014,14 +2008,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListMessagesAsyncPager", - "shortName": "list_messages" + "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListConversationsAsyncPager", + "shortName": "list_conversations" }, - "description": "Sample for ListMessages", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_async.py", + "description": "Sample for ListConversations", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListMessages_async", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListConversations_async", "segments": [ { "end": 52, @@ -2054,7 +2048,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_async.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_async.py" }, { "canonical": true, @@ -2063,19 +2057,19 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient", "shortName": "DataChatServiceClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_messages", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_conversations", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListMessages", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListConversations", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "ListMessages" + "shortName": "ListConversations" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.ListMessagesRequest" + "type": "google.cloud.geminidataanalytics_v1alpha.types.ListConversationsRequest" }, { "name": "parent", @@ -2094,14 +2088,14 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListMessagesPager", - "shortName": "list_messages" + "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListConversationsPager", + "shortName": "list_conversations" }, - "description": "Sample for ListMessages", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_sync.py", + "description": "Sample for ListConversations", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListMessages_sync", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListConversations_sync", "segments": [ { "end": 52, @@ -2134,7 +2128,7 @@ "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_sync.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_conversations_sync.py" }, { "canonical": true, @@ -2144,27 +2138,23 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient", "shortName": "DataChatServiceAsyncClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.update_conversation", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceAsyncClient.list_messages", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.UpdateConversation", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListMessages", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "UpdateConversation" + "shortName": "ListMessages" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.UpdateConversationRequest" - }, - { - "name": "conversation", - "type": "google.cloud.geminidataanalytics_v1alpha.types.Conversation" + "type": "google.cloud.geminidataanalytics_v1alpha.types.ListMessagesRequest" }, { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" + "name": "parent", + "type": "str" }, { "name": "retry", @@ -2179,22 +2169,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.types.Conversation", - "shortName": "update_conversation" + "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListMessagesAsyncPager", + "shortName": "list_messages" }, - "description": "Sample for UpdateConversation", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_async.py", + "description": "Sample for ListMessages", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_async.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_UpdateConversation_async", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListMessages_async", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -2204,22 +2194,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_async.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_async.py" }, { "canonical": true, @@ -2228,27 +2218,23 @@ "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient", "shortName": "DataChatServiceClient" }, - "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.update_conversation", + "fullName": "google.cloud.geminidataanalytics_v1alpha.DataChatServiceClient.list_messages", "method": { - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.UpdateConversation", + "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListMessages", "service": { "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService", "shortName": "DataChatService" }, - "shortName": "UpdateConversation" + "shortName": "ListMessages" }, "parameters": [ { "name": "request", - "type": "google.cloud.geminidataanalytics_v1alpha.types.UpdateConversationRequest" - }, - { - "name": "conversation", - "type": "google.cloud.geminidataanalytics_v1alpha.types.Conversation" + "type": "google.cloud.geminidataanalytics_v1alpha.types.ListMessagesRequest" }, { - "name": "update_mask", - "type": "google.protobuf.field_mask_pb2.FieldMask" + "name": "parent", + "type": "str" }, { "name": "retry", @@ -2263,22 +2249,22 @@ "type": "Sequence[Tuple[str, Union[str, bytes]]]" } ], - "resultType": "google.cloud.geminidataanalytics_v1alpha.types.Conversation", - "shortName": "update_conversation" + "resultType": "google.cloud.geminidataanalytics_v1alpha.services.data_chat_service.pagers.ListMessagesPager", + "shortName": "list_messages" }, - "description": "Sample for UpdateConversation", - "file": "geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_sync.py", + "description": "Sample for ListMessages", + "file": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_sync.py", "language": "PYTHON", "origin": "API_DEFINITION", - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_UpdateConversation_sync", + "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListMessages_sync", "segments": [ { - "end": 54, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 54, + "end": 52, "start": 27, "type": "SHORT" }, @@ -2288,22 +2274,22 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 48, + "end": 45, "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 51, - "start": 49, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 55, - "start": 52, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], - "title": "geminidataanalytics_v1alpha_generated_data_chat_service_update_conversation_sync.py" + "title": "geminidataanalytics_v1alpha_generated_data_chat_service_list_messages_sync.py" } ] } diff --git a/packages/google-cloud-geminidataanalytics/scripts/fixup_geminidataanalytics_v1alpha_keywords.py b/packages/google-cloud-geminidataanalytics/scripts/fixup_geminidataanalytics_v1alpha_keywords.py index 3652f5af15f7..a339a2afd4e4 100644 --- a/packages/google-cloud-geminidataanalytics/scripts/fixup_geminidataanalytics_v1alpha_keywords.py +++ b/packages/google-cloud-geminidataanalytics/scripts/fixup_geminidataanalytics_v1alpha_keywords.py @@ -42,6 +42,7 @@ class geminidataanalyticsCallTransformer(cst.CSTTransformer): 'chat': ('parent', 'messages', 'inline_context', 'conversation_reference', 'data_agent_context', 'project', ), 'create_conversation': ('parent', 'conversation', 'conversation_id', 'request_id', ), 'create_data_agent': ('parent', 'data_agent', 'data_agent_id', 'request_id', ), + 'delete_conversation': ('name', ), 'delete_data_agent': ('name', 'request_id', ), 'get_conversation': ('name', ), 'get_data_agent': ('name', ), @@ -51,7 +52,6 @@ class geminidataanalyticsCallTransformer(cst.CSTTransformer): 'list_data_agents': ('parent', 'page_size', 'page_token', 'filter', 'order_by', 'show_deleted', ), 'list_messages': ('parent', 'page_size', 'page_token', 'filter', ), 'set_iam_policy': ('resource', 'policy', 'update_mask', ), - 'update_conversation': ('conversation', 'update_mask', 'request_id', ), 'update_data_agent': ('data_agent', 'update_mask', 'request_id', ), } diff --git a/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_agent_service.py b/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_agent_service.py index c84d92b7106b..d7663655799f 100644 --- a/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_agent_service.py +++ b/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_agent_service.py @@ -7133,6 +7133,24 @@ def test_create_data_agent_rest_call_success(request_type): "natural_language_question": "natural_language_question_value", } ], + "glossary_terms": [ + { + "display_name": "display_name_value", + "description": "description_value", + "labels": ["labels_value1", "labels_value2"], + } + ], + "schema_relationships": [ + { + "left_schema_paths": { + "table_fqn": "table_fqn_value", + "paths": ["paths_value1", "paths_value2"], + }, + "right_schema_paths": {}, + "sources": [1], + "confidence_score": 0.1673, + } + ], }, "published_context": {}, "last_published_context": {}, @@ -7422,6 +7440,24 @@ def test_update_data_agent_rest_call_success(request_type): "natural_language_question": "natural_language_question_value", } ], + "glossary_terms": [ + { + "display_name": "display_name_value", + "description": "description_value", + "labels": ["labels_value1", "labels_value2"], + } + ], + "schema_relationships": [ + { + "left_schema_paths": { + "table_fqn": "table_fqn_value", + "paths": ["paths_value1", "paths_value2"], + }, + "right_schema_paths": {}, + "sources": [1], + "confidence_score": 0.1673, + } + ], }, "published_context": {}, "last_published_context": {}, diff --git a/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_chat_service.py b/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_chat_service.py index 16eca733d5f0..9a0900d08670 100644 --- a/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_chat_service.py +++ b/packages/google-cloud-geminidataanalytics/tests/unit/gapic/geminidataanalytics_v1alpha/test_data_chat_service.py @@ -53,7 +53,6 @@ from google.cloud.location import locations_pb2 from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account -from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import struct_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore @@ -1757,11 +1756,11 @@ async def test_create_conversation_flattened_error_async(): @pytest.mark.parametrize( "request_type", [ - gcg_conversation.UpdateConversationRequest, + conversation.DeleteConversationRequest, dict, ], ) -def test_update_conversation(request_type, transport: str = "grpc"): +def test_delete_conversation(request_type, transport: str = "grpc"): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport=transport, @@ -1773,28 +1772,23 @@ def test_update_conversation(request_type, transport: str = "grpc"): # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = gcg_conversation.Conversation( - name="name_value", - agents=["agents_value"], - ) - response = client.update_conversation(request) + call.return_value = None + response = client.delete_conversation(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - request = gcg_conversation.UpdateConversationRequest() + request = conversation.DeleteConversationRequest() assert args[0] == request # Establish that the response is the type that we expect. - assert isinstance(response, gcg_conversation.Conversation) - assert response.name == "name_value" - assert response.agents == ["agents_value"] + assert response is None -def test_update_conversation_non_empty_request_with_auto_populated_field(): +def test_delete_conversation_non_empty_request_with_auto_populated_field(): # This test is a coverage failsafe to make sure that UUID4 fields are # automatically populated, according to AIP-4235, with non-empty requests. client = DataChatServiceClient( @@ -1805,22 +1799,26 @@ def test_update_conversation_non_empty_request_with_auto_populated_field(): # Populate all string fields in the request which are not UUID4 # since we want to check that UUID4 are populated automatically # if they meet the requirements of AIP 4235. - request = gcg_conversation.UpdateConversationRequest() + request = conversation.DeleteConversationRequest( + name="name_value", + ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: call.return_value.name = ( "foo" # operation_request.operation in compute client(s) expect a string. ) - client.update_conversation(request=request) + client.delete_conversation(request=request) call.assert_called() _, args, _ = call.mock_calls[0] - assert args[0] == gcg_conversation.UpdateConversationRequest() + assert args[0] == conversation.DeleteConversationRequest( + name="name_value", + ) -def test_update_conversation_use_cached_wrapped_rpc(): +def test_delete_conversation_use_cached_wrapped_rpc(): # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, # instead of constructing them on each call with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: @@ -1835,7 +1833,7 @@ def test_update_conversation_use_cached_wrapped_rpc(): # Ensure method has been cached assert ( - client._transport.update_conversation in client._transport._wrapped_methods + client._transport.delete_conversation in client._transport._wrapped_methods ) # Replace cached wrapped function with mock @@ -1844,15 +1842,15 @@ def test_update_conversation_use_cached_wrapped_rpc(): "foo" # operation_request.operation in compute client(s) expect a string. ) client._transport._wrapped_methods[ - client._transport.update_conversation + client._transport.delete_conversation ] = mock_rpc request = {} - client.update_conversation(request) + client.delete_conversation(request) # Establish that the underlying gRPC stub method was called. assert mock_rpc.call_count == 1 - client.update_conversation(request) + client.delete_conversation(request) # Establish that a new wrapper was not created for this call assert wrapper_fn.call_count == 0 @@ -1860,7 +1858,7 @@ def test_update_conversation_use_cached_wrapped_rpc(): @pytest.mark.asyncio -async def test_update_conversation_async_use_cached_wrapped_rpc( +async def test_delete_conversation_async_use_cached_wrapped_rpc( transport: str = "grpc_asyncio", ): # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, @@ -1877,7 +1875,7 @@ async def test_update_conversation_async_use_cached_wrapped_rpc( # Ensure method has been cached assert ( - client._client._transport.update_conversation + client._client._transport.delete_conversation in client._client._transport._wrapped_methods ) @@ -1885,16 +1883,16 @@ async def test_update_conversation_async_use_cached_wrapped_rpc( mock_rpc = mock.AsyncMock() mock_rpc.return_value = mock.Mock() client._client._transport._wrapped_methods[ - client._client._transport.update_conversation + client._client._transport.delete_conversation ] = mock_rpc request = {} - await client.update_conversation(request) + await client.delete_conversation(request) # Establish that the underlying gRPC stub method was called. assert mock_rpc.call_count == 1 - await client.update_conversation(request) + await client.delete_conversation(request) # Establish that a new wrapper was not created for this call assert wrapper_fn.call_count == 0 @@ -1902,9 +1900,8 @@ async def test_update_conversation_async_use_cached_wrapped_rpc( @pytest.mark.asyncio -async def test_update_conversation_async( - transport: str = "grpc_asyncio", - request_type=gcg_conversation.UpdateConversationRequest, +async def test_delete_conversation_async( + transport: str = "grpc_asyncio", request_type=conversation.DeleteConversationRequest ): client = DataChatServiceAsyncClient( credentials=async_anonymous_credentials(), @@ -1917,51 +1914,44 @@ async def test_update_conversation_async( # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - gcg_conversation.Conversation( - name="name_value", - agents=["agents_value"], - ) - ) - response = await client.update_conversation(request) + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + response = await client.delete_conversation(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - request = gcg_conversation.UpdateConversationRequest() + request = conversation.DeleteConversationRequest() assert args[0] == request # Establish that the response is the type that we expect. - assert isinstance(response, gcg_conversation.Conversation) - assert response.name == "name_value" - assert response.agents == ["agents_value"] + assert response is None @pytest.mark.asyncio -async def test_update_conversation_async_from_dict(): - await test_update_conversation_async(request_type=dict) +async def test_delete_conversation_async_from_dict(): + await test_delete_conversation_async(request_type=dict) -def test_update_conversation_field_headers(): +def test_delete_conversation_field_headers(): client = DataChatServiceClient( 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 = gcg_conversation.UpdateConversationRequest() + request = conversation.DeleteConversationRequest() - request.conversation.name = "name_value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: - call.return_value = gcg_conversation.Conversation() - client.update_conversation(request) + call.return_value = None + client.delete_conversation(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) == 1 @@ -1972,30 +1962,28 @@ def test_update_conversation_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "conversation.name=name_value", + "name=name_value", ) in kw["metadata"] @pytest.mark.asyncio -async def test_update_conversation_field_headers_async(): +async def test_delete_conversation_field_headers_async(): client = DataChatServiceAsyncClient( credentials=async_anonymous_credentials(), ) # 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 = gcg_conversation.UpdateConversationRequest() + request = conversation.DeleteConversationRequest() - request.conversation.name = "name_value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - gcg_conversation.Conversation() - ) - await client.update_conversation(request) + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + await client.delete_conversation(request) # Establish that the underlying gRPC stub method was called. assert len(call.mock_calls) @@ -2006,41 +1994,37 @@ async def test_update_conversation_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "conversation.name=name_value", + "name=name_value", ) in kw["metadata"] -def test_update_conversation_flattened(): +def test_delete_conversation_flattened(): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = gcg_conversation.Conversation() + call.return_value = None # Call the method with a truthy value for each flattened field, # using the keyword arguments to the method. - client.update_conversation( - conversation=gcg_conversation.Conversation(name="name_value"), - update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]), + client.delete_conversation( + 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].conversation - mock_val = gcg_conversation.Conversation(name="name_value") - assert arg == mock_val - arg = args[0].update_mask - mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + arg = args[0].name + mock_val = "name_value" assert arg == mock_val -def test_update_conversation_flattened_error(): +def test_delete_conversation_flattened_error(): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), ) @@ -2048,50 +2032,43 @@ def test_update_conversation_flattened_error(): # Attempting to call a method with both a request object and flattened # fields is an error. with pytest.raises(ValueError): - client.update_conversation( - gcg_conversation.UpdateConversationRequest(), - conversation=gcg_conversation.Conversation(name="name_value"), - update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]), + client.delete_conversation( + conversation.DeleteConversationRequest(), + name="name_value", ) @pytest.mark.asyncio -async def test_update_conversation_flattened_async(): +async def test_delete_conversation_flattened_async(): client = DataChatServiceAsyncClient( credentials=async_anonymous_credentials(), ) # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = gcg_conversation.Conversation() + call.return_value = None - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - gcg_conversation.Conversation() - ) + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) # Call the method with a truthy value for each flattened field, # using the keyword arguments to the method. - response = await client.update_conversation( - conversation=gcg_conversation.Conversation(name="name_value"), - update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]), + response = await client.delete_conversation( + 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].conversation - mock_val = gcg_conversation.Conversation(name="name_value") - assert arg == mock_val - arg = args[0].update_mask - mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + arg = args[0].name + mock_val = "name_value" assert arg == mock_val @pytest.mark.asyncio -async def test_update_conversation_flattened_error_async(): +async def test_delete_conversation_flattened_error_async(): client = DataChatServiceAsyncClient( credentials=async_anonymous_credentials(), ) @@ -2099,10 +2076,9 @@ async def test_update_conversation_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.update_conversation( - gcg_conversation.UpdateConversationRequest(), - conversation=gcg_conversation.Conversation(name="name_value"), - update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]), + await client.delete_conversation( + conversation.DeleteConversationRequest(), + name="name_value", ) @@ -3840,7 +3816,7 @@ def test_create_conversation_rest_flattened_error(transport: str = "rest"): ) -def test_update_conversation_rest_use_cached_wrapped_rpc(): +def test_delete_conversation_rest_use_cached_wrapped_rpc(): # Clients should use _prep_wrapped_messages to create cached wrapped rpcs, # instead of constructing them on each call with mock.patch("google.api_core.gapic_v1.method.wrap_method") as wrapper_fn: @@ -3855,7 +3831,7 @@ def test_update_conversation_rest_use_cached_wrapped_rpc(): # Ensure method has been cached assert ( - client._transport.update_conversation in client._transport._wrapped_methods + client._transport.delete_conversation in client._transport._wrapped_methods ) # Replace cached wrapped function with mock @@ -3864,28 +3840,29 @@ def test_update_conversation_rest_use_cached_wrapped_rpc(): "foo" # operation_request.operation in compute client(s) expect a string. ) client._transport._wrapped_methods[ - client._transport.update_conversation + client._transport.delete_conversation ] = mock_rpc request = {} - client.update_conversation(request) + client.delete_conversation(request) # Establish that the underlying gRPC stub method was called. assert mock_rpc.call_count == 1 - client.update_conversation(request) + client.delete_conversation(request) # Establish that a new wrapper was not created for this call assert wrapper_fn.call_count == 0 assert mock_rpc.call_count == 2 -def test_update_conversation_rest_required_fields( - request_type=gcg_conversation.UpdateConversationRequest, +def test_delete_conversation_rest_required_fields( + request_type=conversation.DeleteConversationRequest, ): transport_class = transports.DataChatServiceRestTransport request_init = {} + request_init["name"] = "" request = request_type(**request_init) pb_request = request_type.pb(request) jsonified_request = json.loads( @@ -3896,24 +3873,21 @@ def test_update_conversation_rest_required_fields( unset_fields = transport_class( credentials=ga_credentials.AnonymousCredentials() - ).update_conversation._get_unset_required_fields(jsonified_request) + ).delete_conversation._get_unset_required_fields(jsonified_request) jsonified_request.update(unset_fields) # verify required fields with default values are now present + jsonified_request["name"] = "name_value" + unset_fields = transport_class( credentials=ga_credentials.AnonymousCredentials() - ).update_conversation._get_unset_required_fields(jsonified_request) - # Check that path parameters and body parameters are not mixing in. - assert not set(unset_fields) - set( - ( - "request_id", - "update_mask", - ) - ) + ).delete_conversation._get_unset_required_fields(jsonified_request) jsonified_request.update(unset_fields) # verify required fields with non-default values are left alone + assert "name" in jsonified_request + assert jsonified_request["name"] == "name_value" client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), @@ -3922,7 +3896,7 @@ def test_update_conversation_rest_required_fields( request = request_type(**request_init) # Designate an appropriate value for the returned response. - return_value = gcg_conversation.Conversation() + return_value = None # Mock the http request call within the method and fake a response. with mock.patch.object(Session, "request") as req: # We need to mock transcode() because providing default values @@ -3934,48 +3908,36 @@ def test_update_conversation_rest_required_fields( pb_request = request_type.pb(request) transcode_result = { "uri": "v1/sample_method", - "method": "patch", + "method": "delete", "query_params": pb_request, } - transcode_result["body"] = pb_request transcode.return_value = transcode_result response_value = Response() response_value.status_code = 200 - - # Convert return value to protobuf type - return_value = gcg_conversation.Conversation.pb(return_value) - json_return_value = json_format.MessageToJson(return_value) + json_return_value = "" response_value._content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.update_conversation(request) + response = client.delete_conversation(request) expected_params = [("$alt", "json;enum-encoding=int")] actual_params = req.call_args.kwargs["params"] assert expected_params == actual_params -def test_update_conversation_rest_unset_required_fields(): +def test_delete_conversation_rest_unset_required_fields(): transport = transports.DataChatServiceRestTransport( credentials=ga_credentials.AnonymousCredentials ) - unset_fields = transport.update_conversation._get_unset_required_fields({}) - assert set(unset_fields) == ( - set( - ( - "requestId", - "updateMask", - ) - ) - & set(("conversation",)) - ) + unset_fields = transport.delete_conversation._get_unset_required_fields({}) + assert set(unset_fields) == (set(()) & set(("name",))) -def test_update_conversation_rest_flattened(): +def test_delete_conversation_rest_flattened(): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest", @@ -3984,46 +3946,41 @@ def test_update_conversation_rest_flattened(): # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = gcg_conversation.Conversation() + return_value = None # get arguments that satisfy an http rule for this method sample_request = { - "conversation": { - "name": "projects/sample1/locations/sample2/conversations/sample3" - } + "name": "projects/sample1/locations/sample2/conversations/sample3" } # get truthy value for each flattened field mock_args = dict( - conversation=gcg_conversation.Conversation(name="name_value"), - update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]), + name="name_value", ) mock_args.update(sample_request) # Wrap the value into a proper Response obj response_value = Response() response_value.status_code = 200 - # Convert return value to protobuf type - return_value = gcg_conversation.Conversation.pb(return_value) - json_return_value = json_format.MessageToJson(return_value) + json_return_value = "" response_value._content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.update_conversation(**mock_args) + client.delete_conversation(**mock_args) # Establish that the underlying call was made with the expected # request object values. assert len(req.mock_calls) == 1 _, args, _ = req.mock_calls[0] assert path_template.validate( - "%s/v1alpha/{conversation.name=projects/*/locations/*/conversations/*}" + "%s/v1alpha/{name=projects/*/locations/*/conversations/*}" % client.transport._host, args[1], ) -def test_update_conversation_rest_flattened_error(transport: str = "rest"): +def test_delete_conversation_rest_flattened_error(transport: str = "rest"): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport=transport, @@ -4032,10 +3989,9 @@ def test_update_conversation_rest_flattened_error(transport: str = "rest"): # Attempting to call a method with both a request object and flattened # fields is an error. with pytest.raises(ValueError): - client.update_conversation( - gcg_conversation.UpdateConversationRequest(), - conversation=gcg_conversation.Conversation(name="name_value"), - update_mask=field_mask_pb2.FieldMask(paths=["paths_value"]), + client.delete_conversation( + conversation.DeleteConversationRequest(), + name="name_value", ) @@ -4897,7 +4853,7 @@ def test_create_conversation_empty_call_grpc(): # This test is a coverage failsafe to make sure that totally empty calls, # i.e. request == None and no flattened fields passed, work. -def test_update_conversation_empty_call_grpc(): +def test_delete_conversation_empty_call_grpc(): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport="grpc", @@ -4905,15 +4861,15 @@ def test_update_conversation_empty_call_grpc(): # Mock the actual call, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: - call.return_value = gcg_conversation.Conversation() - client.update_conversation(request=None) + call.return_value = None + client.delete_conversation(request=None) # Establish that the underlying stub method was called. call.assert_called() _, args, _ = call.mock_calls[0] - request_msg = gcg_conversation.UpdateConversationRequest() + request_msg = conversation.DeleteConversationRequest() assert args[0] == request_msg @@ -5056,7 +5012,7 @@ async def test_create_conversation_empty_call_grpc_asyncio(): # This test is a coverage failsafe to make sure that totally empty calls, # i.e. request == None and no flattened fields passed, work. @pytest.mark.asyncio -async def test_update_conversation_empty_call_grpc_asyncio(): +async def test_delete_conversation_empty_call_grpc_asyncio(): client = DataChatServiceAsyncClient( credentials=async_anonymous_credentials(), transport="grpc_asyncio", @@ -5064,21 +5020,16 @@ async def test_update_conversation_empty_call_grpc_asyncio(): # Mock the actual call, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: # Designate an appropriate return value for the call. - call.return_value = grpc_helpers_async.FakeUnaryUnaryCall( - gcg_conversation.Conversation( - name="name_value", - agents=["agents_value"], - ) - ) - await client.update_conversation(request=None) + call.return_value = grpc_helpers_async.FakeUnaryUnaryCall(None) + await client.delete_conversation(request=None) # Establish that the underlying stub method was called. call.assert_called() _, args, _ = call.mock_calls[0] - request_msg = gcg_conversation.UpdateConversationRequest() + request_msg = conversation.DeleteConversationRequest() assert args[0] == request_msg @@ -5507,18 +5458,14 @@ def test_create_conversation_rest_interceptors(null_interceptor): post_with_metadata.assert_called_once() -def test_update_conversation_rest_bad_request( - request_type=gcg_conversation.UpdateConversationRequest, +def test_delete_conversation_rest_bad_request( + request_type=conversation.DeleteConversationRequest, ): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) # send a request that will satisfy transcoding - request_init = { - "conversation": { - "name": "projects/sample1/locations/sample2/conversations/sample3" - } - } + request_init = {"name": "projects/sample1/locations/sample2/conversations/sample3"} request = request_type(**request_init) # Mock the http request call within the method and fake a BadRequest error. @@ -5533,131 +5480,45 @@ def test_update_conversation_rest_bad_request( response_value.request = mock.Mock() req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - client.update_conversation(request) + client.delete_conversation(request) @pytest.mark.parametrize( "request_type", [ - gcg_conversation.UpdateConversationRequest, + conversation.DeleteConversationRequest, dict, ], ) -def test_update_conversation_rest_call_success(request_type): +def test_delete_conversation_rest_call_success(request_type): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest" ) # send a request that will satisfy transcoding - request_init = { - "conversation": { - "name": "projects/sample1/locations/sample2/conversations/sample3" - } - } - request_init["conversation"] = { - "name": "projects/sample1/locations/sample2/conversations/sample3", - "agents": ["agents_value1", "agents_value2"], - "create_time": {"seconds": 751, "nanos": 543}, - "last_used_time": {}, - "labels": {}, - } - # The version of a generated dependency at test runtime may differ from the version used during generation. - # Delete any fields which are not present in the current runtime dependency - # See https://github.com/googleapis/gapic-generator-python/issues/1748 - - # Determine if the message type is proto-plus or protobuf - test_field = gcg_conversation.UpdateConversationRequest.meta.fields["conversation"] - - def get_message_fields(field): - # Given a field which is a message (composite type), return a list with - # all the fields of the message. - # If the field is not a composite type, return an empty list. - message_fields = [] - - if hasattr(field, "message") and field.message: - is_field_type_proto_plus_type = not hasattr(field.message, "DESCRIPTOR") - - if is_field_type_proto_plus_type: - message_fields = field.message.meta.fields.values() - # Add `# pragma: NO COVER` because there may not be any `*_pb2` field types - else: # pragma: NO COVER - message_fields = field.message.DESCRIPTOR.fields - return message_fields - - runtime_nested_fields = [ - (field.name, nested_field.name) - for field in get_message_fields(test_field) - for nested_field in get_message_fields(field) - ] - - subfields_not_in_runtime = [] - - # For each item in the sample request, create a list of sub fields which are not present at runtime - # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime - for field, value in request_init["conversation"].items(): # pragma: NO COVER - result = None - is_repeated = False - # For repeated fields - if isinstance(value, list) and len(value): - is_repeated = True - result = value[0] - # For fields where the type is another message - if isinstance(value, dict): - result = value - - if result and hasattr(result, "keys"): - for subfield in result.keys(): - if (field, subfield) not in runtime_nested_fields: - subfields_not_in_runtime.append( - { - "field": field, - "subfield": subfield, - "is_repeated": is_repeated, - } - ) - - # Remove fields from the sample request which are not present in the runtime version of the dependency - # Add `# pragma: NO COVER` because this test code will not run if all subfields are present at runtime - for subfield_to_delete in subfields_not_in_runtime: # pragma: NO COVER - field = subfield_to_delete.get("field") - field_repeated = subfield_to_delete.get("is_repeated") - subfield = subfield_to_delete.get("subfield") - if subfield: - if field_repeated: - for i in range(0, len(request_init["conversation"][field])): - del request_init["conversation"][field][i][subfield] - else: - del request_init["conversation"][field][subfield] + request_init = {"name": "projects/sample1/locations/sample2/conversations/sample3"} request = request_type(**request_init) # Mock the http request call within the method and fake a response. with mock.patch.object(type(client.transport._session), "request") as req: # Designate an appropriate value for the returned response. - return_value = gcg_conversation.Conversation( - name="name_value", - agents=["agents_value"], - ) + return_value = None # Wrap the value into a proper Response obj response_value = mock.Mock() response_value.status_code = 200 - - # Convert return value to protobuf type - return_value = gcg_conversation.Conversation.pb(return_value) - json_return_value = json_format.MessageToJson(return_value) + json_return_value = "" response_value.content = json_return_value.encode("UTF-8") req.return_value = response_value req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - response = client.update_conversation(request) + response = client.delete_conversation(request) # Establish that the response is the type that we expect. - assert isinstance(response, gcg_conversation.Conversation) - assert response.name == "name_value" - assert response.agents == ["agents_value"] + assert response is None @pytest.mark.parametrize("null_interceptor", [True, False]) -def test_update_conversation_rest_interceptors(null_interceptor): +def test_delete_conversation_rest_interceptors(null_interceptor): transport = transports.DataChatServiceRestTransport( credentials=ga_credentials.AnonymousCredentials(), interceptor=None @@ -5671,18 +5532,11 @@ def test_update_conversation_rest_interceptors(null_interceptor): ) as req, mock.patch.object( path_template, "transcode" ) as transcode, mock.patch.object( - transports.DataChatServiceRestInterceptor, "post_update_conversation" - ) as post, mock.patch.object( - transports.DataChatServiceRestInterceptor, - "post_update_conversation_with_metadata", - ) as post_with_metadata, mock.patch.object( - transports.DataChatServiceRestInterceptor, "pre_update_conversation" + transports.DataChatServiceRestInterceptor, "pre_delete_conversation" ) as pre: pre.assert_not_called() - post.assert_not_called() - post_with_metadata.assert_not_called() - pb_message = gcg_conversation.UpdateConversationRequest.pb( - gcg_conversation.UpdateConversationRequest() + pb_message = conversation.DeleteConversationRequest.pb( + conversation.DeleteConversationRequest() ) transcode.return_value = { "method": "post", @@ -5694,21 +5548,15 @@ def test_update_conversation_rest_interceptors(null_interceptor): req.return_value = mock.Mock() req.return_value.status_code = 200 req.return_value.headers = {"header-1": "value-1", "header-2": "value-2"} - return_value = gcg_conversation.Conversation.to_json( - gcg_conversation.Conversation() - ) - req.return_value.content = return_value - request = gcg_conversation.UpdateConversationRequest() + request = conversation.DeleteConversationRequest() metadata = [ ("key", "val"), ("cephalopod", "squid"), ] pre.return_value = request, metadata - post.return_value = gcg_conversation.Conversation() - post_with_metadata.return_value = gcg_conversation.Conversation(), metadata - client.update_conversation( + client.delete_conversation( request, metadata=[ ("key", "val"), @@ -5717,8 +5565,6 @@ def test_update_conversation_rest_interceptors(null_interceptor): ) pre.assert_called_once() - post.assert_called_once() - post_with_metadata.assert_called_once() def test_get_conversation_rest_bad_request( @@ -6538,7 +6384,7 @@ def test_create_conversation_empty_call_rest(): # This test is a coverage failsafe to make sure that totally empty calls, # i.e. request == None and no flattened fields passed, work. -def test_update_conversation_empty_call_rest(): +def test_delete_conversation_empty_call_rest(): client = DataChatServiceClient( credentials=ga_credentials.AnonymousCredentials(), transport="rest", @@ -6546,14 +6392,14 @@ def test_update_conversation_empty_call_rest(): # Mock the actual call, and fake the request. with mock.patch.object( - type(client.transport.update_conversation), "__call__" + type(client.transport.delete_conversation), "__call__" ) as call: - client.update_conversation(request=None) + client.delete_conversation(request=None) # Establish that the underlying stub method was called. call.assert_called() _, args, _ = call.mock_calls[0] - request_msg = gcg_conversation.UpdateConversationRequest() + request_msg = conversation.DeleteConversationRequest() assert args[0] == request_msg @@ -6655,7 +6501,7 @@ def test_data_chat_service_base_transport(): methods = ( "chat", "create_conversation", - "update_conversation", + "delete_conversation", "get_conversation", "list_conversations", "list_messages", @@ -6929,8 +6775,8 @@ def test_data_chat_service_client_transport_session_collision(transport_name): session1 = client1.transport.create_conversation._session session2 = client2.transport.create_conversation._session assert session1 != session2 - session1 = client1.transport.update_conversation._session - session2 = client2.transport.update_conversation._session + session1 = client1.transport.delete_conversation._session + session2 = client2.transport.delete_conversation._session assert session1 != session2 session1 = client1.transport.get_conversation._session session2 = client2.transport.get_conversation._session diff --git a/packages/google-cloud-monitoring/README.rst b/packages/google-cloud-monitoring/README.rst index c24e6102079b..95122d9c418d 100644 --- a/packages/google-cloud-monitoring/README.rst +++ b/packages/google-cloud-monitoring/README.rst @@ -61,7 +61,7 @@ Supported Python Versions Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of Python. -Python >= 3.7, including 3.14 +Python >= 3.7 .. _active: https://devguide.python.org/devcycle/#in-development-main-branch .. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches