From 997d29b5d769ec1a432d6c18363b3202811d5b33 Mon Sep 17 00:00:00 2001 From: henribru <6639509+henribru@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:37:08 +0200 Subject: [PATCH] Add v2.141.0 support --- .../_apis/accessapproval/v1/schemas.pyi | 6 + .../_apis/accesscontextmanager/v1/schemas.pyi | 3 + .../_apis/adsenseplatform/__init__.pyi | 0 .../_apis/adsenseplatform/v1/__init__.pyi | 2 + .../_apis/adsenseplatform/v1/resources.pyi | 170 ++ .../_apis/adsenseplatform/v1/schemas.pyi | 86 + .../adsenseplatform/v1alpha/__init__.pyi | 2 + .../adsenseplatform/v1alpha/resources.pyi | 170 ++ .../_apis/adsenseplatform/v1alpha/schemas.pyi | 86 + .../_apis/aiplatform/v1/resources.pyi | 195 +++ .../_apis/aiplatform/v1/schemas.pyi | 1088 ++++++++++++- .../_apis/aiplatform/v1beta1/resources.pyi | 211 +++ .../_apis/aiplatform/v1beta1/schemas.pyi | 571 +++++-- .../_apis/airquality/__init__.pyi | 0 .../_apis/airquality/v1/__init__.pyi | 2 + .../_apis/airquality/v1/resources.pyi | 117 ++ .../_apis/airquality/v1/schemas.pyi | 185 +++ .../_apis/alloydb/v1/resources.pyi | 7 + .../_apis/alloydb/v1/schemas.pyi | 79 +- .../_apis/alloydb/v1alpha/resources.pyi | 7 + .../_apis/alloydb/v1alpha/schemas.pyi | 99 +- .../_apis/alloydb/v1beta/resources.pyi | 7 + .../_apis/alloydb/v1beta/schemas.pyi | 99 +- .../analyticsadmin/v1alpha/resources.pyi | 120 +- .../_apis/analyticsadmin/v1alpha/schemas.pyi | 53 +- .../_apis/analyticshub/v1/schemas.pyi | 132 ++ .../_apis/analyticshub/v1beta1/schemas.pyi | 6 + .../_apis/androidenterprise/v1/resources.pyi | 2 +- .../_apis/androidmanagement/v1/schemas.pyi | 45 + .../_apis/androidpublisher/v3/resources.pyi | 6 +- .../_apis/androidpublisher/v3/schemas.pyi | 1 + googleapiclient-stubs/_apis/apim/__init__.pyi | 0 .../_apis/apim/v1alpha/__init__.pyi | 2 + .../_apis/apim/v1alpha/resources.pyi | 341 ++++ .../_apis/apim/v1alpha/schemas.pyi | 213 +++ .../_apis/artifactregistry/v1/resources.pyi | 3 + .../_apis/artifactregistry/v1/schemas.pyi | 5 + .../artifactregistry/v1beta2/schemas.pyi | 2 + .../_apis/assuredworkloads/v1/schemas.pyi | 16 +- .../assuredworkloads/v1beta1/resources.pyi | 13 + .../assuredworkloads/v1beta1/schemas.pyi | 22 +- .../v1alpha/__init__.pyi | 2 + .../v1alpha/resources.pyi | 547 +++++++ .../v1alpha/schemas.pyi | 556 +++++++ .../_apis/backupdr/v1/resources.pyi | 373 +++++ .../_apis/backupdr/v1/schemas.pyi | 721 +++++++++ .../_apis/batch/v1/schemas.pyi | 2 + .../_apis/beyondcorp/v1/resources.pyi | 16 + .../_apis/beyondcorp/v1/schemas.pyi | 4 + .../_apis/beyondcorp/v1alpha/resources.pyi | 72 + .../_apis/beyondcorp/v1alpha/schemas.pyi | 19 + .../_apis/bigquery/v2/schemas.pyi | 24 + .../_apis/bigqueryconnection/v1/schemas.pyi | 1 + .../_apis/bigquerydatapolicy/v1/resources.pyi | 3 +- .../_apis/bigtableadmin/v2/schemas.pyi | 79 + .../binaryauthorization/v1/resources.pyi | 2 +- .../_apis/binaryauthorization/v1/schemas.pyi | 1 + .../_apis/calendar/v3/resources.pyi | 16 +- .../_apis/certificatemanager/v1/resources.pyi | 8 + .../_apis/chat/v1/schemas.pyi | 9 + .../_apis/checks/v1alpha/schemas.pyi | 1 + .../_apis/chromemanagement/v1/schemas.pyi | 34 + .../_apis/civicinfo/v2/resources.pyi | 2 +- .../_apis/classroom/v1/resources.pyi | 360 +++++ .../_apis/classroom/v1/schemas.pyi | 59 + .../_apis/cloudbuild/v1/schemas.pyi | 7 - .../_apis/cloudbuild/v2/schemas.pyi | 29 +- .../_apis/cloudchannel/v1/resources.pyi | 35 + .../_apis/cloudchannel/v1/schemas.pyi | 2 + .../_apis/cloudcontrolspartner/v1/schemas.pyi | 1 + .../cloudcontrolspartner/v1beta/schemas.pyi | 1 + .../_apis/clouddeploy/v1/schemas.pyi | 69 +- .../clouderrorreporting/v1beta1/resources.pyi | 89 ++ .../_apis/cloudfunctions/v1/schemas.pyi | 3 + .../_apis/cloudfunctions/v2/schemas.pyi | 5 + .../_apis/cloudfunctions/v2alpha/schemas.pyi | 5 + .../_apis/cloudfunctions/v2beta/schemas.pyi | 5 + .../_apis/cloudidentity/v1/schemas.pyi | 9 +- .../_apis/cloudidentity/v1beta1/schemas.pyi | 9 +- .../_apis/cloudkms/v1/schemas.pyi | 20 + .../_apis/cloudsearch/v1/resources.pyi | 11 + .../_apis/cloudsearch/v1/schemas.pyi | 6 + .../_apis/composer/v1/resources.pyi | 7 + .../_apis/composer/v1/schemas.pyi | 5 + .../_apis/composer/v1beta1/schemas.pyi | 1 + .../_apis/compute/alpha/resources.pyi | 260 +++ .../_apis/compute/alpha/schemas.pyi | 311 +++- .../_apis/compute/beta/resources.pyi | 66 + .../_apis/compute/beta/schemas.pyi | 97 +- .../_apis/compute/v1/resources.pyi | 111 ++ .../_apis/compute/v1/schemas.pyi | 219 ++- .../_apis/connectors/v1/schemas.pyi | 49 + .../_apis/connectors/v2/schemas.pyi | 14 +- .../v1alpha1/schemas.pyi | 78 + .../contactcenterinsights/v1/resources.pyi | 24 + .../contactcenterinsights/v1/schemas.pyi | 411 +---- .../_apis/container/v1/schemas.pyi | 26 +- .../_apis/container/v1beta1/schemas.pyi | 26 +- .../_apis/containeranalysis/v1/resources.pyi | 47 + .../_apis/containeranalysis/v1/schemas.pyi | 9 - .../containeranalysis/v1alpha1/schemas.pyi | 18 +- .../containeranalysis/v1beta1/resources.pyi | 47 + .../containeranalysis/v1beta1/schemas.pyi | 9 - .../_apis/content/v2_1/schemas.pyi | 1 + .../_apis/contentwarehouse/v1/schemas.pyi | 126 ++ googleapiclient-stubs/_apis/css/__init__.pyi | 0 .../_apis/css/v1/__init__.pyi | 2 + .../_apis/css/v1/resources.pyi | 181 +++ .../_apis/css/v1/schemas.pyi | 192 +++ .../_apis/dataflow/v1b3/schemas.pyi | 7 + .../_apis/dataform/v1beta1/resources.pyi | 18 + .../_apis/dataform/v1beta1/schemas.pyi | 3 + .../_apis/datafusion/v1/resources.pyi | 1 - .../_apis/datafusion/v1/schemas.pyi | 134 +- .../_apis/datafusion/v1beta1/resources.pyi | 1 - .../_apis/datafusion/v1beta1/schemas.pyi | 136 +- .../_apis/datamigration/v1/schemas.pyi | 4 + .../_apis/dataplex/v1/resources.pyi | 115 ++ .../_apis/dataplex/v1/schemas.pyi | 95 +- .../_apis/dataproc/v1/schemas.pyi | 14 + .../_apis/datastream/v1/schemas.pyi | 10 + .../_apis/developerconnect/__init__.pyi | 0 .../_apis/developerconnect/v1/__init__.pyi | 2 + .../_apis/developerconnect/v1/resources.pyi | 334 ++++ .../_apis/developerconnect/v1/schemas.pyi | 161 ++ .../_apis/dfareporting/v3_5/schemas.pyi | 13 +- .../_apis/dfareporting/v4/schemas.pyi | 73 +- .../_apis/dialogflow/v2/resources.pyi | 155 ++ .../_apis/dialogflow/v2/schemas.pyi | 392 +++++ .../_apis/dialogflow/v2beta1/resources.pyi | 157 ++ .../_apis/dialogflow/v2beta1/schemas.pyi | 347 ++++ .../_apis/dialogflow/v3/schemas.pyi | 239 +++ .../_apis/dialogflow/v3beta1/resources.pyi | 248 +++ .../_apis/dialogflow/v3beta1/schemas.pyi | 572 +++++++ .../_apis/discoveryengine/v1/resources.pyi | 253 +++ .../_apis/discoveryengine/v1/schemas.pyi | 1416 ++++++++++++++++- .../discoveryengine/v1alpha/resources.pyi | 478 +++++- .../_apis/discoveryengine/v1alpha/schemas.pyi | 1276 ++++++++++++++- .../discoveryengine/v1beta/resources.pyi | 449 ++++++ .../_apis/discoveryengine/v1beta/schemas.pyi | 1250 ++++++++++++++- .../_apis/displayvideo/v2/schemas.pyi | 3 + .../_apis/displayvideo/v3/schemas.pyi | 15 + .../_apis/dlp/v2/resources.pyi | 110 ++ .../_apis/dlp/v2/schemas.pyi | 214 ++- .../_apis/dns/v1/schemas.pyi | 21 +- .../_apis/dns/v1beta2/schemas.pyi | 21 +- .../_apis/docs/v1/resources.pyi | 1 + .../_apis/docs/v1/schemas.pyi | 58 + .../_apis/documentai/v1/schemas.pyi | 410 +++++ .../_apis/documentai/v1beta2/schemas.pyi | 238 +++ .../_apis/documentai/v1beta3/schemas.pyi | 268 ++++ .../_apis/domains/v1/resources.pyi | 50 + .../_apis/domains/v1/schemas.pyi | 113 ++ .../_apis/domains/v1alpha2/resources.pyi | 50 + .../_apis/domains/v1alpha2/schemas.pyi | 113 ++ .../_apis/domains/v1beta1/resources.pyi | 50 + .../_apis/domains/v1beta1/schemas.pyi | 113 ++ .../doubleclickbidmanager/v2/schemas.pyi | 2 + .../_apis/fcmdata/v1beta1/schemas.pyi | 2 + .../_apis/file/v1/resources.pyi | 7 + .../_apis/file/v1/schemas.pyi | 26 + .../_apis/file/v1beta1/schemas.pyi | 25 + .../_apis/firebaseappcheck/v1/resources.pyi | 115 ++ .../_apis/firebaseappcheck/v1/schemas.pyi | 35 + .../v1alpha/schemas.pyi | 101 ++ .../_apis/firebaseml/v2beta/resources.pyi | 28 +- .../_apis/firebaseml/v2beta/schemas.pyi | 297 ++-- .../_apis/firestore/v1/resources.pyi | 7 + .../_apis/firestore/v1/schemas.pyi | 71 +- .../_apis/firestore/v1beta1/schemas.pyi | 22 + .../_apis/firestore/v1beta2/schemas.pyi | 22 + .../_apis/games/v1/resources.pyi | 48 + .../_apis/games/v1/schemas.pyi | 25 +- .../_apis/gkebackup/v1/schemas.pyi | 52 + .../_apis/gkehub/v1/resources.pyi | 74 +- .../_apis/gkehub/v1/schemas.pyi | 21 + .../_apis/gkehub/v1alpha/resources.pyi | 7 +- .../_apis/gkehub/v1alpha/schemas.pyi | 12 + .../_apis/gkehub/v1beta/resources.pyi | 7 +- .../_apis/gkehub/v1beta/schemas.pyi | 9 + .../_apis/gmail/v1/resources.pyi | 14 +- .../_apis/healthcare/v1/resources.pyi | 7 + .../_apis/healthcare/v1/schemas.pyi | 25 + .../_apis/healthcare/v1beta1/resources.pyi | 7 + .../_apis/healthcare/v1beta1/schemas.pyi | 36 +- .../_apis/iam/v1/resources.pyi | 7 - .../_apis/iam/v1/schemas.pyi | 8 - .../_apis/iam/v2/schemas.pyi | 40 + .../_apis/iam/v2beta/schemas.pyi | 40 + .../_apis/iap/v1/schemas.pyi | 20 + .../_apis/ids/v1/schemas.pyi | 2 + .../_apis/integrations/v1/resources.pyi | 204 +++ .../_apis/integrations/v1/schemas.pyi | 183 +++ .../_apis/jobs/v3/schemas.pyi | 24 - .../_apis/jobs/v3p1beta1/schemas.pyi | 24 - .../_apis/jobs/v4/schemas.pyi | 24 - .../_apis/kmsinventory/v1/schemas.pyi | 22 + .../_apis/language/v2/schemas.pyi | 4 + .../_apis/logging/v2/resources.pyi | 52 + .../_apis/manufacturers/v1/schemas.pyi | 1 + googleapiclient-stubs/_apis/meet/__init__.pyi | 0 .../_apis/meet/v2/__init__.pyi | 2 + .../_apis/meet/v2/resources.pyi | 284 ++++ .../_apis/meet/v2/schemas.pyi | 138 ++ .../_apis/memcache/v1/schemas.pyi | 2 + .../_apis/memcache/v1beta2/schemas.pyi | 2 + .../_apis/merchantapi/__init__.pyi | 0 .../merchantapi/accounts_v1beta/__init__.pyi | 2 + .../merchantapi/accounts_v1beta/resources.pyi | 496 ++++++ .../merchantapi/accounts_v1beta/schemas.pyi | 573 +++++++ .../conversions_v1beta/__init__.pyi | 2 + .../conversions_v1beta/resources.pyi | 97 ++ .../conversions_v1beta/schemas.pyi | 95 ++ .../datasources_v1beta/__init__.pyi | 2 + .../datasources_v1beta/resources.pyi | 96 ++ .../datasources_v1beta/schemas.pyi | 134 ++ .../inventories_v1beta/__init__.pyi | 2 + .../inventories_v1beta/resources.pyi | 129 ++ .../inventories_v1beta/schemas.pyi | 93 ++ .../_apis/merchantapi/lfp_v1beta/__init__.pyi | 2 + .../merchantapi/lfp_v1beta/resources.pyi | 112 ++ .../_apis/merchantapi/lfp_v1beta/schemas.pyi | 101 ++ .../notifications_v1beta/__init__.pyi | 2 + .../notifications_v1beta/resources.pyi | 95 ++ .../notifications_v1beta/schemas.pyi | 56 + .../merchantapi/products_v1beta/__init__.pyi | 2 + .../merchantapi/products_v1beta/resources.pyi | 96 ++ .../merchantapi/products_v1beta/schemas.pyi | 365 +++++ .../promotions_v1beta/__init__.pyi | 2 + .../promotions_v1beta/resources.pyi | 74 + .../merchantapi/promotions_v1beta/schemas.pyi | 210 +++ .../merchantapi/quota_v1beta/__init__.pyi | 2 + .../merchantapi/quota_v1beta/resources.pyi | 56 + .../merchantapi/quota_v1beta/schemas.pyi | 58 + .../merchantapi/reports_v1beta/__init__.pyi | 2 + .../merchantapi/reports_v1beta/resources.pyi | 51 + .../merchantapi/reports_v1beta/schemas.pyi | 359 +++++ .../_apis/metastore/v1/resources.pyi | 62 + .../_apis/metastore/v1/schemas.pyi | 77 + .../_apis/metastore/v1alpha/schemas.pyi | 17 + .../_apis/metastore/v1beta/schemas.pyi | 17 + .../migrationcenter/v1alpha1/resources.pyi | 55 + .../migrationcenter/v1alpha1/schemas.pyi | 100 +- .../_apis/monitoring/v1/schemas.pyi | 16 +- .../_apis/monitoring/v3/schemas.pyi | 7 + .../_apis/networkconnectivity/v1/schemas.pyi | 37 +- .../_apis/networkmanagement/v1/schemas.pyi | 19 + .../networkmanagement/v1beta1/schemas.pyi | 20 + .../_apis/networksecurity/v1/resources.pyi | 25 + .../_apis/networksecurity/v1/schemas.pyi | 3 + .../networksecurity/v1beta1/resources.pyi | 80 + .../_apis/networksecurity/v1beta1/schemas.pyi | 107 ++ .../_apis/networkservices/v1/resources.pyi | 84 - .../_apis/networkservices/v1/schemas.pyi | 2 + .../networkservices/v1beta1/resources.pyi | 143 +- .../_apis/networkservices/v1beta1/schemas.pyi | 26 + .../_apis/notebooks/v2/schemas.pyi | 8 + .../_apis/ondemandscanning/v1/schemas.pyi | 1 + .../ondemandscanning/v1beta1/schemas.pyi | 1 + .../_apis/playintegrity/v1/resources.pyi | 19 + .../_apis/playintegrity/v1/schemas.pyi | 26 + .../_apis/policyanalyzer/v1/resources.pyi | 70 + .../policyanalyzer/v1beta1/resources.pyi | 70 + .../_apis/policysimulator/v1/resources.pyi | 79 - .../_apis/policysimulator/v1/schemas.pyi | 84 - .../_apis/pollen/__init__.pyi | 0 .../_apis/pollen/v1/__init__.pyi | 2 + .../_apis/pollen/v1/resources.pyi | 83 + .../_apis/pollen/v1/schemas.pyi | 89 ++ .../prod_tt_sasportal/v1alpha1/schemas.pyi | 3 +- .../_apis/pubsub/v1/schemas.pyi | 8 + .../_apis/realtimebidding/v1/schemas.pyi | 5 + .../recaptchaenterprise/v1/resources.pyi | 17 + .../_apis/recaptchaenterprise/v1/schemas.pyi | 44 + .../_apis/redis/v1/schemas.pyi | 64 +- .../_apis/redis/v1beta1/schemas.pyi | 64 +- .../_apis/retail/v2/schemas.pyi | 41 +- .../_apis/retail/v2alpha/resources.pyi | 14 + .../_apis/retail/v2alpha/schemas.pyi | 49 +- .../_apis/retail/v2beta/resources.pyi | 33 + .../_apis/retail/v2beta/schemas.pyi | 76 +- .../_apis/run/v1/schemas.pyi | 16 +- .../_apis/run/v2/resources.pyi | 3 + .../_apis/run/v2/schemas.pyi | 23 +- .../_apis/sasportal/v1alpha1/schemas.pyi | 3 +- .../_apis/securitycenter/v1/schemas.pyi | 151 +- .../_apis/securitycenter/v1beta1/schemas.pyi | 149 +- .../_apis/securitycenter/v1beta2/schemas.pyi | 149 +- .../v1beta1/resources.pyi | 64 + .../v1beta1/schemas.pyi | 20 + .../_apis/servicecontrol/v1/schemas.pyi | 1 + .../_apis/servicecontrol/v2/schemas.pyi | 1 + .../_apis/sheets/v4/schemas.pyi | 7 + .../_apis/spanner/v1/resources.pyi | 83 + .../_apis/spanner/v1/schemas.pyi | 80 + .../_apis/sqladmin/v1/schemas.pyi | 29 + .../_apis/sqladmin/v1beta4/schemas.pyi | 29 + .../_apis/storage/v1/resources.pyi | 22 + .../_apis/storage/v1/schemas.pyi | 15 + .../_apis/sts/v1/schemas.pyi | 1 + .../_apis/tagmanager/v2/resources.pyi | 6 +- .../_apis/tasks/v1/resources.pyi | 2 + .../_apis/tasks/v1/schemas.pyi | 19 + .../_apis/tpu/v2/schemas.pyi | 4 +- .../_apis/tpu/v2alpha1/schemas.pyi | 4 +- .../_apis/translate/v3/schemas.pyi | 18 + .../_apis/vault/v1/schemas.pyi | 7 + .../_apis/versionhistory/v1/schemas.pyi | 1 + .../_apis/vmmigration/v1/resources.pyi | 18 + .../_apis/vmmigration/v1/schemas.pyi | 58 + .../_apis/vmmigration/v1alpha1/resources.pyi | 18 + .../_apis/vmmigration/v1alpha1/schemas.pyi | 58 + .../_apis/vmwareengine/v1/schemas.pyi | 27 +- .../_apis/walletobjects/v1/schemas.pyi | 21 + .../_apis/workflowexecutions/v1/schemas.pyi | 6 + .../_apis/workloadmanager/v1/schemas.pyi | 49 +- .../_apis/workstations/v1/schemas.pyi | 8 + .../_apis/workstations/v1beta/schemas.pyi | 27 + googleapiclient-stubs/discovery.pyi | 399 +++++ 319 files changed, 27294 insertions(+), 1631 deletions(-) create mode 100644 googleapiclient-stubs/_apis/adsenseplatform/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/adsenseplatform/v1/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/adsenseplatform/v1/resources.pyi create mode 100644 googleapiclient-stubs/_apis/adsenseplatform/v1/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/adsenseplatform/v1alpha/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi create mode 100644 googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/airquality/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/airquality/v1/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/airquality/v1/resources.pyi create mode 100644 googleapiclient-stubs/_apis/airquality/v1/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/apim/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/apim/v1alpha/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/apim/v1alpha/resources.pyi create mode 100644 googleapiclient-stubs/_apis/apim/v1alpha/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/resources.pyi create mode 100644 googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/css/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/css/v1/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/css/v1/resources.pyi create mode 100644 googleapiclient-stubs/_apis/css/v1/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/developerconnect/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/developerconnect/v1/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi create mode 100644 googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/meet/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/meet/v2/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/meet/v2/resources.pyi create mode 100644 googleapiclient-stubs/_apis/meet/v2/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/products_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/products_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/quota_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/quota_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/reports_v1beta/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/reports_v1beta/resources.pyi create mode 100644 googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi create mode 100644 googleapiclient-stubs/_apis/pollen/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/pollen/v1/__init__.pyi create mode 100644 googleapiclient-stubs/_apis/pollen/v1/resources.pyi create mode 100644 googleapiclient-stubs/_apis/pollen/v1/schemas.pyi diff --git a/googleapiclient-stubs/_apis/accessapproval/v1/schemas.pyi b/googleapiclient-stubs/_apis/accessapproval/v1/schemas.pyi index 7b72baef..9ce9967b 100644 --- a/googleapiclient-stubs/_apis/accessapproval/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/accessapproval/v1/schemas.pyi @@ -21,6 +21,12 @@ class AccessApprovalSettings(typing_extensions.TypedDict, total=False): notificationPubsubTopic: str preferNoBroadApprovalRequests: bool preferredRequestExpirationDays: int + requestScopeMaxWidthPreference: typing_extensions.Literal[ + "REQUEST_SCOPE_MAX_WIDTH_PREFERENCE_UNSPECIFIED", + "ORGANIZATION", + "FOLDER", + "PROJECT", + ] requireCustomerVisibleJustification: bool @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi b/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi index f2343c54..dc77907a 100644 --- a/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/accesscontextmanager/v1/schemas.pyi @@ -329,6 +329,9 @@ class SupportedService(typing_extensions.TypedDict, total=False): availableOnRestrictedVip: bool knownLimitations: bool name: str + serviceSupportStage: typing_extensions.Literal[ + "SERVICE_SUPPORT_STAGE_UNSPECIFIED", "GA", "PREVIEW", "DEPRECATED" + ] supportStage: typing_extensions.Literal[ "LAUNCH_STAGE_UNSPECIFIED", "UNIMPLEMENTED", diff --git a/googleapiclient-stubs/_apis/adsenseplatform/__init__.pyi b/googleapiclient-stubs/_apis/adsenseplatform/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1/__init__.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1/resources.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1/resources.pyi new file mode 100644 index 00000000..990dd4f8 --- /dev/null +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1/resources.pyi @@ -0,0 +1,170 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class AdSensePlatformResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class PlatformsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class EventsResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: Event = ..., **kwargs: typing.Any + ) -> EventHttpRequest: ... + + @typing.type_check_only + class SitesResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: Site = ..., **kwargs: typing.Any + ) -> SiteHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SiteHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListSitesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListSitesResponseHttpRequest, + previous_response: ListSitesResponse, + ) -> ListSitesResponseHttpRequest | None: ... + def requestReview( + self, *, name: str, **kwargs: typing.Any + ) -> RequestSiteReviewResponseHttpRequest: ... + + def close( # type: ignore[override] + self, + *, + name: str, + body: CloseAccountRequest = ..., + **kwargs: typing.Any, + ) -> CloseAccountResponseHttpRequest: ... + def create( + self, *, parent: str, body: Account = ..., **kwargs: typing.Any + ) -> AccountHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> AccountHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAccountsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAccountsResponseHttpRequest, + previous_response: ListAccountsResponse, + ) -> ListAccountsResponseHttpRequest | None: ... + def lookup( + self, *, parent: str, creationRequestId: str = ..., **kwargs: typing.Any + ) -> LookupAccountResponseHttpRequest: ... + def events(self) -> EventsResource: ... + def sites(self) -> SitesResource: ... + + def accounts(self) -> AccountsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def platforms(self) -> PlatformsResource: ... + +@typing.type_check_only +class AccountHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Account: ... + +@typing.type_check_only +class CloseAccountResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> CloseAccountResponse: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class EventHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Event: ... + +@typing.type_check_only +class ListAccountsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAccountsResponse: ... + +@typing.type_check_only +class ListSitesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListSitesResponse: ... + +@typing.type_check_only +class LookupAccountResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LookupAccountResponse: ... + +@typing.type_check_only +class RequestSiteReviewResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RequestSiteReviewResponse: ... + +@typing.type_check_only +class SiteHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Site: ... diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1/schemas.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1/schemas.pyi new file mode 100644 index 00000000..4f04cbe4 --- /dev/null +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1/schemas.pyi @@ -0,0 +1,86 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Account(typing_extensions.TypedDict, total=False): + createTime: str + creationRequestId: str + displayName: str + name: str + regionCode: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "UNCHECKED", "APPROVED", "DISAPPROVED" + ] + timeZone: TimeZone + +@typing.type_check_only +class Address(typing_extensions.TypedDict, total=False): + address1: str + address2: str + city: str + company: str + contact: str + fax: str + phone: str + regionCode: str + state: str + zip: str + +@typing.type_check_only +class CloseAccountRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class CloseAccountResponse(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Event(typing_extensions.TypedDict, total=False): + eventInfo: EventInfo + eventTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "LOG_IN_VIA_PLATFORM", "SIGN_UP_VIA_PLATFORM" + ] + +@typing.type_check_only +class EventInfo(typing_extensions.TypedDict, total=False): + billingAddress: Address + email: str + +@typing.type_check_only +class ListAccountsResponse(typing_extensions.TypedDict, total=False): + accounts: _list[Account] + nextPageToken: str + +@typing.type_check_only +class ListSitesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + sites: _list[Site] + +@typing.type_check_only +class LookupAccountResponse(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class RequestSiteReviewResponse(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Site(typing_extensions.TypedDict, total=False): + domain: str + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "REQUIRES_REVIEW", + "GETTING_READY", + "READY", + "NEEDS_ATTENTION", + ] + +@typing.type_check_only +class TimeZone(typing_extensions.TypedDict, total=False): + id: str + version: str diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/__init__.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi new file mode 100644 index 00000000..990dd4f8 --- /dev/null +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/resources.pyi @@ -0,0 +1,170 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class AdSensePlatformResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class PlatformsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class EventsResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: Event = ..., **kwargs: typing.Any + ) -> EventHttpRequest: ... + + @typing.type_check_only + class SitesResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: Site = ..., **kwargs: typing.Any + ) -> SiteHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SiteHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListSitesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListSitesResponseHttpRequest, + previous_response: ListSitesResponse, + ) -> ListSitesResponseHttpRequest | None: ... + def requestReview( + self, *, name: str, **kwargs: typing.Any + ) -> RequestSiteReviewResponseHttpRequest: ... + + def close( # type: ignore[override] + self, + *, + name: str, + body: CloseAccountRequest = ..., + **kwargs: typing.Any, + ) -> CloseAccountResponseHttpRequest: ... + def create( + self, *, parent: str, body: Account = ..., **kwargs: typing.Any + ) -> AccountHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> AccountHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAccountsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAccountsResponseHttpRequest, + previous_response: ListAccountsResponse, + ) -> ListAccountsResponseHttpRequest | None: ... + def lookup( + self, *, parent: str, creationRequestId: str = ..., **kwargs: typing.Any + ) -> LookupAccountResponseHttpRequest: ... + def events(self) -> EventsResource: ... + def sites(self) -> SitesResource: ... + + def accounts(self) -> AccountsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def platforms(self) -> PlatformsResource: ... + +@typing.type_check_only +class AccountHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Account: ... + +@typing.type_check_only +class CloseAccountResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> CloseAccountResponse: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class EventHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Event: ... + +@typing.type_check_only +class ListAccountsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAccountsResponse: ... + +@typing.type_check_only +class ListSitesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListSitesResponse: ... + +@typing.type_check_only +class LookupAccountResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LookupAccountResponse: ... + +@typing.type_check_only +class RequestSiteReviewResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RequestSiteReviewResponse: ... + +@typing.type_check_only +class SiteHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Site: ... diff --git a/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi new file mode 100644 index 00000000..4f04cbe4 --- /dev/null +++ b/googleapiclient-stubs/_apis/adsenseplatform/v1alpha/schemas.pyi @@ -0,0 +1,86 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Account(typing_extensions.TypedDict, total=False): + createTime: str + creationRequestId: str + displayName: str + name: str + regionCode: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "UNCHECKED", "APPROVED", "DISAPPROVED" + ] + timeZone: TimeZone + +@typing.type_check_only +class Address(typing_extensions.TypedDict, total=False): + address1: str + address2: str + city: str + company: str + contact: str + fax: str + phone: str + regionCode: str + state: str + zip: str + +@typing.type_check_only +class CloseAccountRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class CloseAccountResponse(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Event(typing_extensions.TypedDict, total=False): + eventInfo: EventInfo + eventTime: str + eventType: typing_extensions.Literal[ + "EVENT_TYPE_UNSPECIFIED", "LOG_IN_VIA_PLATFORM", "SIGN_UP_VIA_PLATFORM" + ] + +@typing.type_check_only +class EventInfo(typing_extensions.TypedDict, total=False): + billingAddress: Address + email: str + +@typing.type_check_only +class ListAccountsResponse(typing_extensions.TypedDict, total=False): + accounts: _list[Account] + nextPageToken: str + +@typing.type_check_only +class ListSitesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + sites: _list[Site] + +@typing.type_check_only +class LookupAccountResponse(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class RequestSiteReviewResponse(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Site(typing_extensions.TypedDict, total=False): + domain: str + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "REQUIRES_REVIEW", + "GETTING_READY", + "READY", + "NEEDS_ATTENTION", + ] + +@typing.type_check_only +class TimeZone(typing_extensions.TypedDict, total=False): + id: str + version: str diff --git a/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi b/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi index e781728b..5874f492 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1/resources.pyi @@ -634,6 +634,14 @@ class AiplatformResource(googleapiclient.discovery.Resource): GoogleCloudAiplatformV1ListDeploymentResourcePoolsResponseHttpRequest | None ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1DeploymentResourcePool = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def queryDeployedModels( self, *, @@ -2630,8 +2638,117 @@ class AiplatformResource(googleapiclient.discovery.Resource): ) -> GoogleCloudAiplatformV1ListNasJobsResponseHttpRequest | None: ... def nasTrialDetails(self) -> NasTrialDetailsResource: ... + @typing.type_check_only + class NotebookExecutionJobsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1NotebookExecutionJob = ..., + notebookExecutionJobId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, + *, + name: str, + view: typing_extensions.Literal[ + "NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED", + "NOTEBOOK_EXECUTION_JOB_VIEW_BASIC", + "NOTEBOOK_EXECUTION_JOB_VIEW_FULL", + ] = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1NotebookExecutionJobHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + view: typing_extensions.Literal[ + "NOTEBOOK_EXECUTION_JOB_VIEW_UNSPECIFIED", + "NOTEBOOK_EXECUTION_JOB_VIEW_BASIC", + "NOTEBOOK_EXECUTION_JOB_VIEW_FULL", + ] = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudAiplatformV1ListNotebookExecutionJobsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1ListNotebookExecutionJobsResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse, + ) -> ( + GoogleCloudAiplatformV1ListNotebookExecutionJobsResponseHttpRequest + | None + ): ... + def operations(self) -> OperationsResource: ... + @typing.type_check_only class NotebookRuntimeTemplatesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def create( self, *, @@ -2672,6 +2789,14 @@ class AiplatformResource(googleapiclient.discovery.Resource): GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponseHttpRequest | None ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1NotebookRuntimeTemplate = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1NotebookRuntimeTemplateHttpRequest: ... def setIamPolicy( self, *, @@ -2686,9 +2811,39 @@ class AiplatformResource(googleapiclient.discovery.Resource): permissions: str | _list[str] = ..., **kwargs: typing.Any, ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + def operations(self) -> OperationsResource: ... @typing.type_check_only class NotebookRuntimesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def assign( self, *, @@ -2735,6 +2890,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1UpgradeNotebookRuntimeRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def operations(self) -> OperationsResource: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -3848,6 +4004,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): ): ... def operations(self) -> OperationsResource: ... + def evaluateInstances( + self, + *, + location: str, + body: GoogleCloudAiplatformV1EvaluateInstancesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1EvaluateInstancesResponseHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudLocationLocationHttpRequest: ... @@ -3884,6 +4047,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): ) -> ModelDeploymentMonitoringJobsResource: ... def models(self) -> ModelsResource: ... def nasJobs(self) -> NasJobsResource: ... + def notebookExecutionJobs(self) -> NotebookExecutionJobsResource: ... def notebookRuntimeTemplates(self) -> NotebookRuntimeTemplatesResource: ... def notebookRuntimes(self) -> NotebookRuntimesResource: ... def operations(self) -> OperationsResource: ... @@ -3907,6 +4071,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): self, *, name: str, + isHuggingFaceModel: bool = ..., languageCode: str = ..., view: typing_extensions.Literal[ "PUBLISHER_MODEL_VIEW_UNSPECIFIED", @@ -4150,6 +4315,16 @@ class GoogleCloudAiplatformV1EntityTypeHttpRequest(googleapiclient.http.HttpRequ num_retries: int = 0, ) -> GoogleCloudAiplatformV1EntityType: ... +@typing.type_check_only +class GoogleCloudAiplatformV1EvaluateInstancesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1EvaluateInstancesResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1ExecutionHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -4606,6 +4781,16 @@ class GoogleCloudAiplatformV1ListNasTrialDetailsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1ListNasTrialDetailsResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1ListNotebookExecutionJobsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponseHttpRequest( googleapiclient.http.HttpRequest @@ -4840,6 +5025,16 @@ class GoogleCloudAiplatformV1NasTrialDetailHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1NasTrialDetail: ... +@typing.type_check_only +class GoogleCloudAiplatformV1NotebookExecutionJobHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1NotebookExecutionJob: ... + @typing.type_check_only class GoogleCloudAiplatformV1NotebookRuntimeHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi b/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi index 0bd1c1f6..5aba9291 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1/schemas.pyi @@ -4,68 +4,18 @@ import typing_extensions _list = list -@typing.type_check_only -class CloudAiLargeModelsVisionFilteredText(typing_extensions.TypedDict, total=False): - category: typing_extensions.Literal[ - "RAI_CATEGORY_UNSPECIFIED", - "OBSCENE", - "SEXUALLY_EXPLICIT", - "IDENTITY_ATTACK", - "VIOLENCE_ABUSE", - "CSAI", - "SPII", - "CELEBRITY", - "FACE_IMG", - "WATERMARK_IMG", - "MEMORIZATION_IMG", - "CSAI_IMG", - "PORN_IMG", - "VIOLENCE_IMG", - "CHILD_IMG", - "TOXIC", - "SENSITIVE_WORD", - "PERSON_IMG", - "ICA_IMG", - "SEXUAL_IMG", - "IU_IMG", - "RACY_IMG", - "PEDO_IMG", - "DEATH_HARM_TRAGEDY", - "HEALTH", - "FIREARMS_WEAPONS", - "RELIGIOUS_BELIEF", - "ILLICIT_DRUGS", - "WAR_CONFLICT", - "POLITICS", - "HATE_SYMBOL_IMG", - "CHILD_TEXT", - "DANGEROUS_CONTENT", - "RECITATION_TEXT", - "CELEBRITY_IMG", - "WATERMARK_IMG_REMOVAL", - ] - confidence: typing_extensions.Literal[ - "CONFIDENCE_UNSPECIFIED", - "CONFIDENCE_LOW", - "CONFIDENCE_MEDIUM", - "CONFIDENCE_HIGH", - ] - prompt: str - score: float - @typing.type_check_only class CloudAiLargeModelsVisionGenerateVideoResponse( typing_extensions.TypedDict, total=False ): generatedSamples: _list[CloudAiLargeModelsVisionMedia] - raiErrorMessage: str raiMediaFilteredCount: int raiMediaFilteredReasons: _list[str] - raiTextFilteredReason: CloudAiLargeModelsVisionFilteredText @typing.type_check_only class CloudAiLargeModelsVisionImage(typing_extensions.TypedDict, total=False): encoding: str + generationSeed: int image: str imageRaiScores: CloudAiLargeModelsVisionImageRAIScores raiInfo: CloudAiLargeModelsVisionRaiInfo @@ -96,9 +46,37 @@ class CloudAiLargeModelsVisionNamedBoundingBox( @typing.type_check_only class CloudAiLargeModelsVisionRaiInfo(typing_extensions.TypedDict, total=False): + detectedLabels: _list[CloudAiLargeModelsVisionRaiInfoDetectedLabels] + modelName: str raiCategories: _list[str] scores: _list[float] +@typing.type_check_only +class CloudAiLargeModelsVisionRaiInfoDetectedLabels( + typing_extensions.TypedDict, total=False +): + entities: _list[CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity] + raiCategory: str + +@typing.type_check_only +class CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox( + typing_extensions.TypedDict, total=False +): + x1: int + x2: int + y1: int + y2: int + +@typing.type_check_only +class CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity( + typing_extensions.TypedDict, total=False +): + boundingBox: CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox + description: str + iouScore: float + mid: str + score: float + @typing.type_check_only class CloudAiLargeModelsVisionSemanticFilterResponse( typing_extensions.TypedDict, total=False @@ -111,6 +89,39 @@ class CloudAiLargeModelsVisionVideo(typing_extensions.TypedDict, total=False): uri: str video: str +@typing.type_check_only +class CloudAiPlatformCommonCreatePipelineJobApiErrorDetail( + typing_extensions.TypedDict, total=False +): + errorCause: typing_extensions.Literal[ + "ERROR_CAUSE_UNSPECIFIED", + "INVALID_PIPELINE_SPEC_FORMAT", + "INVALID_PIPELINE_SPEC", + "INVALID_DEPLOYMENT_CONFIG", + "INVALID_DEPLOYMENT_SPEC", + "INVALID_INSTANCE_SCHEMA", + "INVALID_CUSTOM_JOB", + "INVALID_CONTAINER_SPEC", + "INVALID_NOTIFICATION_EMAIL_SETUP", + "INVALID_SERVICE_ACCOUNT_SETUP", + "INVALID_KMS_SETUP", + "INVALID_NETWORK_SETUP", + "INVALID_PIPELINE_TASK_SPEC", + "INVALID_PIPELINE_TASK_ARTIFACT", + "INVALID_IMPORTER_SPEC", + "INVALID_RESOLVER_SPEC", + "INVALID_RUNTIME_PARAMETERS", + "CLOUD_API_NOT_ENABLED", + "INVALID_GCS_INPUT_URI", + "INVALID_GCS_OUTPUT_URI", + "INVALID_COMPONENT_SPEC", + "INVALID_DAG_OUTPUTS_SPEC", + "INVALID_DAG_SPEC", + "INSUFFICIENT_QUOTA", + "INTERNAL", + ] + publicMessage: str + @typing.type_check_only class GoogleApiHttpBody(typing_extensions.TypedDict, total=False): contentType: str @@ -385,6 +396,8 @@ class GoogleCloudAiplatformV1BatchPredictionJob( outputInfo: GoogleCloudAiplatformV1BatchPredictionJobOutputInfo partialFailures: _list[GoogleRpcStatus] resourcesConsumed: GoogleCloudAiplatformV1ResourcesConsumed + satisfiesPzi: bool + satisfiesPzs: bool serviceAccount: str startTime: str state: typing_extensions.Literal[ @@ -493,6 +506,28 @@ class GoogleCloudAiplatformV1BigQueryDestination( class GoogleCloudAiplatformV1BigQuerySource(typing_extensions.TypedDict, total=False): inputUri: str +@typing.type_check_only +class GoogleCloudAiplatformV1BleuInput(typing_extensions.TypedDict, total=False): + instances: _list[GoogleCloudAiplatformV1BleuInstance] + metricSpec: GoogleCloudAiplatformV1BleuSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1BleuInstance(typing_extensions.TypedDict, total=False): + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1BleuMetricValue(typing_extensions.TypedDict, total=False): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1BleuResults(typing_extensions.TypedDict, total=False): + bleuMetricValues: _list[GoogleCloudAiplatformV1BleuMetricValue] + +@typing.type_check_only +class GoogleCloudAiplatformV1BleuSpec(typing_extensions.TypedDict, total=False): + useEffectiveOrder: bool + @typing.type_check_only class GoogleCloudAiplatformV1Blob(typing_extensions.TypedDict, total=False): data: str @@ -563,6 +598,7 @@ class GoogleCloudAiplatformV1Candidate(typing_extensions.TypedDict, total=False) "BLOCKLIST", "PROHIBITED_CONTENT", "SPII", + "MALFORMED_FUNCTION_CALL", ] groundingMetadata: GoogleCloudAiplatformV1GroundingMetadata index: int @@ -600,6 +636,27 @@ class GoogleCloudAiplatformV1Citation(typing_extensions.TypedDict, total=False): class GoogleCloudAiplatformV1CitationMetadata(typing_extensions.TypedDict, total=False): citations: _list[GoogleCloudAiplatformV1Citation] +@typing.type_check_only +class GoogleCloudAiplatformV1CoherenceInput(typing_extensions.TypedDict, total=False): + instance: GoogleCloudAiplatformV1CoherenceInstance + metricSpec: GoogleCloudAiplatformV1CoherenceSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1CoherenceInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + +@typing.type_check_only +class GoogleCloudAiplatformV1CoherenceResult(typing_extensions.TypedDict, total=False): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1CoherenceSpec(typing_extensions.TypedDict, total=False): + version: int + @typing.type_check_only class GoogleCloudAiplatformV1CompleteTrialRequest( typing_extensions.TypedDict, total=False @@ -619,7 +676,9 @@ class GoogleCloudAiplatformV1CompletionStats(typing_extensions.TypedDict, total= class GoogleCloudAiplatformV1ComputeTokensRequest( typing_extensions.TypedDict, total=False ): + contents: _list[GoogleCloudAiplatformV1Content] instances: _list[typing.Any] + model: str @typing.type_check_only class GoogleCloudAiplatformV1ComputeTokensResponse( @@ -686,6 +745,8 @@ class GoogleCloudAiplatformV1CountTokensRequest( contents: _list[GoogleCloudAiplatformV1Content] instances: _list[typing.Any] model: str + systemInstruction: GoogleCloudAiplatformV1Content + tools: _list[GoogleCloudAiplatformV1Tool] @typing.type_check_only class GoogleCloudAiplatformV1CountTokensResponse( @@ -790,6 +851,13 @@ class GoogleCloudAiplatformV1CreateMetadataStoreOperationMetadata( ): genericMetadata: GoogleCloudAiplatformV1GenericOperationMetadata +@typing.type_check_only +class GoogleCloudAiplatformV1CreateNotebookExecutionJobOperationMetadata( + typing_extensions.TypedDict, total=False +): + genericMetadata: GoogleCloudAiplatformV1GenericOperationMetadata + progressMessage: str + @typing.type_check_only class GoogleCloudAiplatformV1CreateNotebookRuntimeTemplateOperationMetadata( typing_extensions.TypedDict, total=False @@ -863,6 +931,8 @@ class GoogleCloudAiplatformV1CustomJob(typing_extensions.TypedDict, total=False) jobSpec: GoogleCloudAiplatformV1CustomJobSpec labels: dict[str, typing.Any] name: str + satisfiesPzi: bool + satisfiesPzs: bool startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -905,6 +975,8 @@ class GoogleCloudAiplatformV1DataItem(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str payload: typing.Any + satisfiesPzi: bool + satisfiesPzs: bool updateTime: str @typing.type_check_only @@ -961,6 +1033,8 @@ class GoogleCloudAiplatformV1Dataset(typing_extensions.TypedDict, total=False): metadataSchemaUri: str modelReference: str name: str + satisfiesPzi: bool + satisfiesPzs: bool savedQueries: _list[GoogleCloudAiplatformV1SavedQuery] updateTime: str @@ -973,6 +1047,8 @@ class GoogleCloudAiplatformV1DatasetVersion(typing_extensions.TypedDict, total=F metadata: typing.Any modelReference: str name: str + satisfiesPzi: bool + satisfiesPzs: bool updateTime: str @typing.type_check_only @@ -983,6 +1059,7 @@ class GoogleCloudAiplatformV1DedicatedResources( machineSpec: GoogleCloudAiplatformV1MachineSpec maxReplicaCount: int minReplicaCount: int + spot: bool @typing.type_check_only class GoogleCloudAiplatformV1DeleteFeatureValuesOperationMetadata( @@ -1149,7 +1226,12 @@ class GoogleCloudAiplatformV1DeploymentResourcePool( ): createTime: str dedicatedResources: GoogleCloudAiplatformV1DedicatedResources + disableContainerLogging: bool + encryptionSpec: GoogleCloudAiplatformV1EncryptionSpec name: str + satisfiesPzi: bool + satisfiesPzs: bool + serviceAccount: str @typing.type_check_only class GoogleCloudAiplatformV1DestinationFeatureSetting( @@ -1201,6 +1283,8 @@ class GoogleCloudAiplatformV1EncryptionSpec(typing_extensions.TypedDict, total=F @typing.type_check_only class GoogleCloudAiplatformV1Endpoint(typing_extensions.TypedDict, total=False): createTime: str + dedicatedEndpointDns: str + dedicatedEndpointEnabled: bool deployedModels: _list[GoogleCloudAiplatformV1DeployedModel] description: str displayName: str @@ -1215,6 +1299,8 @@ class GoogleCloudAiplatformV1Endpoint(typing_extensions.TypedDict, total=False): GoogleCloudAiplatformV1PredictRequestResponseLoggingConfig ) privateServiceConnectConfig: GoogleCloudAiplatformV1PrivateServiceConnectConfig + satisfiesPzi: bool + satisfiesPzs: bool trafficSplit: dict[str, typing.Any] updateTime: str @@ -1260,6 +1346,82 @@ class GoogleCloudAiplatformV1ErrorAnalysisAnnotationAttributedItem( annotationResourceName: str distance: float +@typing.type_check_only +class GoogleCloudAiplatformV1EvaluateInstancesRequest( + typing_extensions.TypedDict, total=False +): + bleuInput: GoogleCloudAiplatformV1BleuInput + coherenceInput: GoogleCloudAiplatformV1CoherenceInput + exactMatchInput: GoogleCloudAiplatformV1ExactMatchInput + fluencyInput: GoogleCloudAiplatformV1FluencyInput + fulfillmentInput: GoogleCloudAiplatformV1FulfillmentInput + groundednessInput: GoogleCloudAiplatformV1GroundednessInput + pairwiseQuestionAnsweringQualityInput: ( + GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput + ) + pairwiseSummarizationQualityInput: ( + GoogleCloudAiplatformV1PairwiseSummarizationQualityInput + ) + questionAnsweringCorrectnessInput: ( + GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput + ) + questionAnsweringHelpfulnessInput: ( + GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput + ) + questionAnsweringQualityInput: GoogleCloudAiplatformV1QuestionAnsweringQualityInput + questionAnsweringRelevanceInput: ( + GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput + ) + rougeInput: GoogleCloudAiplatformV1RougeInput + safetyInput: GoogleCloudAiplatformV1SafetyInput + summarizationHelpfulnessInput: GoogleCloudAiplatformV1SummarizationHelpfulnessInput + summarizationQualityInput: GoogleCloudAiplatformV1SummarizationQualityInput + summarizationVerbosityInput: GoogleCloudAiplatformV1SummarizationVerbosityInput + toolCallValidInput: GoogleCloudAiplatformV1ToolCallValidInput + toolNameMatchInput: GoogleCloudAiplatformV1ToolNameMatchInput + toolParameterKeyMatchInput: GoogleCloudAiplatformV1ToolParameterKeyMatchInput + toolParameterKvMatchInput: GoogleCloudAiplatformV1ToolParameterKVMatchInput + +@typing.type_check_only +class GoogleCloudAiplatformV1EvaluateInstancesResponse( + typing_extensions.TypedDict, total=False +): + bleuResults: GoogleCloudAiplatformV1BleuResults + coherenceResult: GoogleCloudAiplatformV1CoherenceResult + exactMatchResults: GoogleCloudAiplatformV1ExactMatchResults + fluencyResult: GoogleCloudAiplatformV1FluencyResult + fulfillmentResult: GoogleCloudAiplatformV1FulfillmentResult + groundednessResult: GoogleCloudAiplatformV1GroundednessResult + pairwiseQuestionAnsweringQualityResult: ( + GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult + ) + pairwiseSummarizationQualityResult: ( + GoogleCloudAiplatformV1PairwiseSummarizationQualityResult + ) + questionAnsweringCorrectnessResult: ( + GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult + ) + questionAnsweringHelpfulnessResult: ( + GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult + ) + questionAnsweringQualityResult: ( + GoogleCloudAiplatformV1QuestionAnsweringQualityResult + ) + questionAnsweringRelevanceResult: ( + GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult + ) + rougeResults: GoogleCloudAiplatformV1RougeResults + safetyResult: GoogleCloudAiplatformV1SafetyResult + summarizationHelpfulnessResult: ( + GoogleCloudAiplatformV1SummarizationHelpfulnessResult + ) + summarizationQualityResult: GoogleCloudAiplatformV1SummarizationQualityResult + summarizationVerbosityResult: GoogleCloudAiplatformV1SummarizationVerbosityResult + toolCallValidResults: GoogleCloudAiplatformV1ToolCallValidResults + toolNameMatchResults: GoogleCloudAiplatformV1ToolNameMatchResults + toolParameterKeyMatchResults: GoogleCloudAiplatformV1ToolParameterKeyMatchResults + toolParameterKvMatchResults: GoogleCloudAiplatformV1ToolParameterKVMatchResults + @typing.type_check_only class GoogleCloudAiplatformV1EvaluatedAnnotation( typing_extensions.TypedDict, total=False @@ -1292,6 +1454,35 @@ class GoogleCloudAiplatformV1Event(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] type: typing_extensions.Literal["TYPE_UNSPECIFIED", "INPUT", "OUTPUT"] +@typing.type_check_only +class GoogleCloudAiplatformV1ExactMatchInput(typing_extensions.TypedDict, total=False): + instances: _list[GoogleCloudAiplatformV1ExactMatchInstance] + metricSpec: GoogleCloudAiplatformV1ExactMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1ExactMatchInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ExactMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1ExactMatchResults( + typing_extensions.TypedDict, total=False +): + exactMatchMetricValues: _list[GoogleCloudAiplatformV1ExactMatchMetricValue] + +@typing.type_check_only +class GoogleCloudAiplatformV1ExactMatchSpec( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1Examples(typing_extensions.TypedDict, total=False): exampleGcsSource: GoogleCloudAiplatformV1ExamplesExampleGcsSource @@ -1634,6 +1825,7 @@ class GoogleCloudAiplatformV1Feature(typing_extensions.TypedDict, total=False): "STRING", "STRING_ARRAY", "BYTES", + "STRUCT", ] versionColumnName: str @@ -1685,6 +1877,7 @@ class GoogleCloudAiplatformV1FeatureOnlineStore( dedicatedServingEndpoint: ( GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint ) + encryptionSpec: GoogleCloudAiplatformV1EncryptionSpec etag: str labels: dict[str, typing.Any] name: str @@ -1710,7 +1903,9 @@ class GoogleCloudAiplatformV1FeatureOnlineStoreBigtableAutoScaling( class GoogleCloudAiplatformV1FeatureOnlineStoreDedicatedServingEndpoint( typing_extensions.TypedDict, total=False ): + privateServiceConnectConfig: GoogleCloudAiplatformV1PrivateServiceConnectConfig publicEndpointDomainName: str + serviceAttachment: str @typing.type_check_only class GoogleCloudAiplatformV1FeatureOnlineStoreOptimized( @@ -1745,6 +1940,7 @@ class GoogleCloudAiplatformV1FeatureValue(typing_extensions.TypedDict, total=Fal metadata: GoogleCloudAiplatformV1FeatureValueMetadata stringArrayValue: GoogleCloudAiplatformV1StringArray stringValue: str + structValue: GoogleCloudAiplatformV1StructValue @typing.type_check_only class GoogleCloudAiplatformV1FeatureValueDestination( @@ -2024,17 +2220,67 @@ class GoogleCloudAiplatformV1FindNeighborsResponseNeighbor( distance: float sparseDistance: float +@typing.type_check_only +class GoogleCloudAiplatformV1FluencyInput(typing_extensions.TypedDict, total=False): + instance: GoogleCloudAiplatformV1FluencyInstance + metricSpec: GoogleCloudAiplatformV1FluencySpec + +@typing.type_check_only +class GoogleCloudAiplatformV1FluencyInstance(typing_extensions.TypedDict, total=False): + prediction: str + +@typing.type_check_only +class GoogleCloudAiplatformV1FluencyResult(typing_extensions.TypedDict, total=False): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1FluencySpec(typing_extensions.TypedDict, total=False): + version: int + @typing.type_check_only class GoogleCloudAiplatformV1FractionSplit(typing_extensions.TypedDict, total=False): testFraction: float trainingFraction: float validationFraction: float +@typing.type_check_only +class GoogleCloudAiplatformV1FulfillmentInput(typing_extensions.TypedDict, total=False): + instance: GoogleCloudAiplatformV1FulfillmentInstance + metricSpec: GoogleCloudAiplatformV1FulfillmentSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1FulfillmentInstance( + typing_extensions.TypedDict, total=False +): + instruction: str + prediction: str + +@typing.type_check_only +class GoogleCloudAiplatformV1FulfillmentResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1FulfillmentSpec(typing_extensions.TypedDict, total=False): + version: int + @typing.type_check_only class GoogleCloudAiplatformV1FunctionCall(typing_extensions.TypedDict, total=False): args: dict[str, typing.Any] name: str +@typing.type_check_only +class GoogleCloudAiplatformV1FunctionCallingConfig( + typing_extensions.TypedDict, total=False +): + allowedFunctionNames: _list[str] + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"] + @typing.type_check_only class GoogleCloudAiplatformV1FunctionDeclaration( typing_extensions.TypedDict, total=False @@ -2064,6 +2310,7 @@ class GoogleCloudAiplatformV1GenerateContentRequest( generationConfig: GoogleCloudAiplatformV1GenerationConfig safetySettings: _list[GoogleCloudAiplatformV1SafetySetting] systemInstruction: GoogleCloudAiplatformV1Content + toolConfig: GoogleCloudAiplatformV1ToolConfig tools: _list[GoogleCloudAiplatformV1Tool] @typing.type_check_only @@ -2103,17 +2350,34 @@ class GoogleCloudAiplatformV1GenerationConfig(typing_extensions.TypedDict, total maxOutputTokens: int presencePenalty: float responseMimeType: str - responseStyle: typing_extensions.Literal[ - "RESPONSE_STYLE_UNSPECIFIED", - "RESPONSE_STYLE_PRECISE", - "RESPONSE_STYLE_BALANCED", - "RESPONSE_STYLE_CREATIVE", - ] + responseSchema: GoogleCloudAiplatformV1Schema + routingConfig: GoogleCloudAiplatformV1GenerationConfigRoutingConfig stopSequences: _list[str] temperature: float topK: float topP: float +@typing.type_check_only +class GoogleCloudAiplatformV1GenerationConfigRoutingConfig( + typing_extensions.TypedDict, total=False +): + autoMode: GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode + manualMode: GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode + +@typing.type_check_only +class GoogleCloudAiplatformV1GenerationConfigRoutingConfigAutoRoutingMode( + typing_extensions.TypedDict, total=False +): + modelRoutingPreference: typing_extensions.Literal[ + "UNKNOWN", "PRIORITIZE_QUALITY", "BALANCED", "PRIORITIZE_COST" + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1GenerationConfigRoutingConfigManualRoutingMode( + typing_extensions.TypedDict, total=False +): + modelName: str + @typing.type_check_only class GoogleCloudAiplatformV1GenericOperationMetadata( typing_extensions.TypedDict, total=False @@ -2126,13 +2390,71 @@ class GoogleCloudAiplatformV1GenericOperationMetadata( class GoogleCloudAiplatformV1GenieSource(typing_extensions.TypedDict, total=False): baseModelUri: str +@typing.type_check_only +class GoogleCloudAiplatformV1GoogleSearchRetrieval( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1GroundednessInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1GroundednessInstance + metricSpec: GoogleCloudAiplatformV1GroundednessSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1GroundednessInstance( + typing_extensions.TypedDict, total=False +): + context: str + prediction: str + +@typing.type_check_only +class GoogleCloudAiplatformV1GroundednessResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1GroundednessSpec(typing_extensions.TypedDict, total=False): + version: int + +@typing.type_check_only +class GoogleCloudAiplatformV1GroundingChunk(typing_extensions.TypedDict, total=False): + retrievedContext: GoogleCloudAiplatformV1GroundingChunkRetrievedContext + web: GoogleCloudAiplatformV1GroundingChunkWeb + +@typing.type_check_only +class GoogleCloudAiplatformV1GroundingChunkRetrievedContext( + typing_extensions.TypedDict, total=False +): + title: str + uri: str + +@typing.type_check_only +class GoogleCloudAiplatformV1GroundingChunkWeb( + typing_extensions.TypedDict, total=False +): + title: str + uri: str + @typing.type_check_only class GoogleCloudAiplatformV1GroundingMetadata( typing_extensions.TypedDict, total=False ): + groundingChunks: _list[GoogleCloudAiplatformV1GroundingChunk] + groundingSupports: _list[GoogleCloudAiplatformV1GroundingSupport] searchEntryPoint: GoogleCloudAiplatformV1SearchEntryPoint webSearchQueries: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1GroundingSupport(typing_extensions.TypedDict, total=False): + confidenceScores: _list[float] + groundingChunkIndices: _list[int] + segment: GoogleCloudAiplatformV1Segment + @typing.type_check_only class GoogleCloudAiplatformV1HyperparameterTuningJob( typing_extensions.TypedDict, total=False @@ -2147,6 +2469,8 @@ class GoogleCloudAiplatformV1HyperparameterTuningJob( maxTrialCount: int name: str parallelTrialCount: int + satisfiesPzi: bool + satisfiesPzs: bool startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -2599,6 +2923,13 @@ class GoogleCloudAiplatformV1ListNasTrialDetailsResponse( nasTrialDetails: _list[GoogleCloudAiplatformV1NasTrialDetail] nextPageToken: str +@typing.type_check_only +class GoogleCloudAiplatformV1ListNotebookExecutionJobsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + notebookExecutionJobs: _list[GoogleCloudAiplatformV1NotebookExecutionJob] + @typing.type_check_only class GoogleCloudAiplatformV1ListNotebookRuntimeTemplatesResponse( typing_extensions.TypedDict, total=False @@ -2741,6 +3072,7 @@ class GoogleCloudAiplatformV1MachineSpec(typing_extensions.TypedDict, total=Fals "TPU_V5_LITEPOD", ] machineType: str + reservationAffinity: GoogleCloudAiplatformV1ReservationAffinity tpuTopology: str @typing.type_check_only @@ -2785,12 +3117,19 @@ class GoogleCloudAiplatformV1MetadataSchema(typing_extensions.TypedDict, total=F @typing.type_check_only class GoogleCloudAiplatformV1MetadataStore(typing_extensions.TypedDict, total=False): createTime: str + dataplexConfig: GoogleCloudAiplatformV1MetadataStoreDataplexConfig description: str encryptionSpec: GoogleCloudAiplatformV1EncryptionSpec name: str state: GoogleCloudAiplatformV1MetadataStoreMetadataStoreState updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1MetadataStoreDataplexConfig( + typing_extensions.TypedDict, total=False +): + enabledPipelinesLineage: bool + @typing.type_check_only class GoogleCloudAiplatformV1MetadataStoreMetadataStoreState( typing_extensions.TypedDict, total=False @@ -2931,6 +3270,8 @@ class GoogleCloudAiplatformV1Model(typing_extensions.TypedDict, total=False): originalModelInfo: GoogleCloudAiplatformV1ModelOriginalModelInfo pipelineJob: str predictSchemata: GoogleCloudAiplatformV1PredictSchemata + satisfiesPzi: bool + satisfiesPzs: bool supportedDeploymentResourcesTypes: _list[ typing_extensions.Literal[ "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED", @@ -3312,6 +3653,8 @@ class GoogleCloudAiplatformV1NasJob(typing_extensions.TypedDict, total=False): name: str nasJobOutput: GoogleCloudAiplatformV1NasJobOutput nasJobSpec: GoogleCloudAiplatformV1NasJobSpec + satisfiesPzi: bool + satisfiesPzs: bool startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -3414,6 +3757,7 @@ class GoogleCloudAiplatformV1NearestNeighborQuery( embedding: GoogleCloudAiplatformV1NearestNeighborQueryEmbedding entityId: str neighborCount: int + numericFilters: _list[GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter] parameters: GoogleCloudAiplatformV1NearestNeighborQueryParameters perCrowdingAttributeNeighborCount: int stringFilters: _list[GoogleCloudAiplatformV1NearestNeighborQueryStringFilter] @@ -3424,6 +3768,24 @@ class GoogleCloudAiplatformV1NearestNeighborQueryEmbedding( ): value: _list[float] +@typing.type_check_only +class GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter( + typing_extensions.TypedDict, total=False +): + name: str + op: typing_extensions.Literal[ + "OPERATOR_UNSPECIFIED", + "LESS", + "LESS_EQUAL", + "EQUAL", + "GREATER_EQUAL", + "GREATER", + "NOT_EQUAL", + ] + valueDouble: float + valueFloat: float + valueInt: str + @typing.type_check_only class GoogleCloudAiplatformV1NearestNeighborQueryParameters( typing_extensions.TypedDict, total=False @@ -3485,6 +3847,7 @@ class GoogleCloudAiplatformV1NearestNeighborSearchOperationMetadataRecordError( "INVALID_SPARSE_DIMENSIONS", "INVALID_TOKEN_VALUE", "INVALID_SPARSE_EMBEDDING", + "INVALID_EMBEDDING", ] rawRecord: str sourceGcsUri: str @@ -3526,34 +3889,82 @@ class GoogleCloudAiplatformV1NotebookEucConfig( eucDisabled: bool @typing.type_check_only -class GoogleCloudAiplatformV1NotebookIdleShutdownConfig( +class GoogleCloudAiplatformV1NotebookExecutionJob( typing_extensions.TypedDict, total=False ): - idleShutdownDisabled: bool - idleTimeout: str + createTime: str + dataformRepositorySource: ( + GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource + ) + directNotebookSource: ( + GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource + ) + displayName: str + encryptionSpec: GoogleCloudAiplatformV1EncryptionSpec + executionTimeout: str + executionUser: str + gcsNotebookSource: GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource + gcsOutputUri: str + jobState: typing_extensions.Literal[ + "JOB_STATE_UNSPECIFIED", + "JOB_STATE_QUEUED", + "JOB_STATE_PENDING", + "JOB_STATE_RUNNING", + "JOB_STATE_SUCCEEDED", + "JOB_STATE_FAILED", + "JOB_STATE_CANCELLING", + "JOB_STATE_CANCELLED", + "JOB_STATE_PAUSED", + "JOB_STATE_EXPIRED", + "JOB_STATE_UPDATING", + "JOB_STATE_PARTIALLY_SUCCEEDED", + ] + labels: dict[str, typing.Any] + name: str + notebookRuntimeTemplateResourceName: str + scheduleResourceName: str + serviceAccount: str + status: GoogleRpcStatus + updateTime: str @typing.type_check_only -class GoogleCloudAiplatformV1NotebookReservationAffinity( +class GoogleCloudAiplatformV1NotebookExecutionJobDataformRepositorySource( typing_extensions.TypedDict, total=False ): - consumeReservationType: typing_extensions.Literal[ - "RESERVATION_AFFINITY_TYPE_UNSPECIFIED", - "RESERVATION_NONE", - "RESERVATION_ANY", - "RESERVATION_SPECIFIC", - ] - key: str - values: _list[str] + commitSha: str + dataformRepositoryResourceName: str @typing.type_check_only -class GoogleCloudAiplatformV1NotebookRuntime(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1NotebookExecutionJobDirectNotebookSource( + typing_extensions.TypedDict, total=False +): + content: str + +@typing.type_check_only +class GoogleCloudAiplatformV1NotebookExecutionJobGcsNotebookSource( + typing_extensions.TypedDict, total=False +): + generation: str + uri: str + +@typing.type_check_only +class GoogleCloudAiplatformV1NotebookIdleShutdownConfig( + typing_extensions.TypedDict, total=False +): + idleShutdownDisabled: bool + idleTimeout: str + +@typing.type_check_only +class GoogleCloudAiplatformV1NotebookRuntime(typing_extensions.TypedDict, total=False): createTime: str description: str displayName: str + encryptionSpec: GoogleCloudAiplatformV1EncryptionSpec expirationTime: str healthState: typing_extensions.Literal[ "HEALTH_STATE_UNSPECIFIED", "HEALTHY", "UNHEALTHY" ] + idleShutdownConfig: GoogleCloudAiplatformV1NotebookIdleShutdownConfig isUpgradable: bool labels: dict[str, typing.Any] name: str @@ -3563,7 +3974,6 @@ class GoogleCloudAiplatformV1NotebookRuntime(typing_extensions.TypedDict, total= "NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED", "USER_DEFINED", "ONE_CLICK" ] proxyUri: str - reservationAffinity: GoogleCloudAiplatformV1NotebookReservationAffinity runtimeState: typing_extensions.Literal[ "RUNTIME_STATE_UNSPECIFIED", "RUNNING", @@ -3589,6 +3999,7 @@ class GoogleCloudAiplatformV1NotebookRuntimeTemplate( dataPersistentDiskSpec: GoogleCloudAiplatformV1PersistentDiskSpec description: str displayName: str + encryptionSpec: GoogleCloudAiplatformV1EncryptionSpec etag: str eucConfig: GoogleCloudAiplatformV1NotebookEucConfig idleShutdownConfig: GoogleCloudAiplatformV1NotebookIdleShutdownConfig @@ -3601,7 +4012,6 @@ class GoogleCloudAiplatformV1NotebookRuntimeTemplate( notebookRuntimeType: typing_extensions.Literal[ "NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED", "USER_DEFINED", "ONE_CLICK" ] - reservationAffinity: GoogleCloudAiplatformV1NotebookReservationAffinity serviceAccount: str shieldedVmConfig: GoogleCloudAiplatformV1ShieldedVmConfig updateTime: str @@ -3612,6 +4022,74 @@ class GoogleCloudAiplatformV1NotebookRuntimeTemplateRef( ): notebookRuntimeTemplate: str +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance + metricSpec: GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec + +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInstance( + typing_extensions.TypedDict, total=False +): + baselinePrediction: str + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + pairwiseChoice: typing_extensions.Literal[ + "PAIRWISE_CHOICE_UNSPECIFIED", "BASELINE", "CANDIDATE", "TIE" + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualitySpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseSummarizationQualityInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance + metricSpec: GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec + +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseSummarizationQualityInstance( + typing_extensions.TypedDict, total=False +): + baselinePrediction: str + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseSummarizationQualityResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + pairwiseChoice: typing_extensions.Literal[ + "PAIRWISE_CHOICE_UNSPECIFIED", "BASELINE", "CANDIDATE", "TIE" + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1PairwiseSummarizationQualitySpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + @typing.type_check_only class GoogleCloudAiplatformV1Part(typing_extensions.TypedDict, total=False): fileData: GoogleCloudAiplatformV1FileData @@ -3677,6 +4155,7 @@ class GoogleCloudAiplatformV1PipelineJob(typing_extensions.TypedDict, total=Fals name: str network: str pipelineSpec: dict[str, typing.Any] + preflightValidations: bool reservedIpRanges: _list[str] runtimeConfig: GoogleCloudAiplatformV1PipelineJobRuntimeConfig scheduleName: str @@ -3866,6 +4345,7 @@ class GoogleCloudAiplatformV1PrivateServiceConnectConfig( ): enablePrivateServiceConnect: bool projectAllowlist: _list[str] + serviceAttachment: str @typing.type_check_only class GoogleCloudAiplatformV1Probe(typing_extensions.TypedDict, total=False): @@ -3921,9 +4401,6 @@ class GoogleCloudAiplatformV1PublisherModelCallToAction( ) deploy: GoogleCloudAiplatformV1PublisherModelCallToActionDeploy deployGke: GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke - fineTune: ( - GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences - ) openEvaluationPipeline: ( GoogleCloudAiplatformV1PublisherModelCallToActionRegionalResourceReferences ) @@ -3959,6 +4436,9 @@ class GoogleCloudAiplatformV1PublisherModelCallToActionDeploy( automaticResources: GoogleCloudAiplatformV1AutomaticResources containerSpec: GoogleCloudAiplatformV1ModelContainerSpec dedicatedResources: GoogleCloudAiplatformV1DedicatedResources + deployMetadata: ( + GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata + ) deployTaskName: str largeModelReference: GoogleCloudAiplatformV1LargeModelReference modelDisplayName: str @@ -3966,6 +4446,13 @@ class GoogleCloudAiplatformV1PublisherModelCallToActionDeploy( sharedResources: str title: str +@typing.type_check_only +class GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata( + typing_extensions.TypedDict, total=False +): + labels: dict[str, typing.Any] + sampleRequest: str + @typing.type_check_only class GoogleCloudAiplatformV1PublisherModelCallToActionDeployGke( typing_extensions.TypedDict, total=False @@ -4101,6 +4588,130 @@ class GoogleCloudAiplatformV1QueryDeployedModelsResponse( totalDeployedModelCount: int totalEndpointCount: int +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance + metricSpec: GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInstance( + typing_extensions.TypedDict, total=False +): + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringCorrectnessSpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance + metricSpec: GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessInstance( + typing_extensions.TypedDict, total=False +): + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringHelpfulnessSpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringQualityInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1QuestionAnsweringQualityInstance + metricSpec: GoogleCloudAiplatformV1QuestionAnsweringQualitySpec + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringQualityInstance( + typing_extensions.TypedDict, total=False +): + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringQualityResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringQualitySpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringRelevanceInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance + metricSpec: GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringRelevanceInstance( + typing_extensions.TypedDict, total=False +): + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringRelevanceResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1QuestionAnsweringRelevanceSpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + @typing.type_check_only class GoogleCloudAiplatformV1RawPredictRequest( typing_extensions.TypedDict, total=False @@ -4108,7 +4719,20 @@ class GoogleCloudAiplatformV1RawPredictRequest( httpBody: GoogleApiHttpBody @typing.type_check_only -class GoogleCloudAiplatformV1RaySpec(typing_extensions.TypedDict, total=False): ... +class GoogleCloudAiplatformV1RayLogsSpec(typing_extensions.TypedDict, total=False): + disabled: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1RayMetricSpec(typing_extensions.TypedDict, total=False): + disabled: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1RaySpec(typing_extensions.TypedDict, total=False): + headNodeResourcePoolId: str + imageUri: str + rayLogsSpec: GoogleCloudAiplatformV1RayLogsSpec + rayMetricSpec: GoogleCloudAiplatformV1RayMetricSpec + resourcePoolImages: dict[str, typing.Any] @typing.type_check_only class GoogleCloudAiplatformV1ReadFeatureValuesRequest( @@ -4239,6 +4863,16 @@ class GoogleCloudAiplatformV1RemoveDatapointsResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudAiplatformV1ReservationAffinity( + typing_extensions.TypedDict, total=False +): + key: str + reservationAffinityType: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "NO_RESERVATION", "ANY_RESERVATION", "SPECIFIC_RESERVATION" + ] + values: _list[str] + @typing.type_check_only class GoogleCloudAiplatformV1ResourcePool(typing_extensions.TypedDict, total=False): autoscalingSpec: GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec @@ -4256,9 +4890,8 @@ class GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec( minReplicaCount: str @typing.type_check_only -class GoogleCloudAiplatformV1ResourceRuntime( - typing_extensions.TypedDict, total=False -): ... +class GoogleCloudAiplatformV1ResourceRuntime(typing_extensions.TypedDict, total=False): + accessUris: dict[str, typing.Any] @typing.type_check_only class GoogleCloudAiplatformV1ResourceRuntimeSpec( @@ -4295,6 +4928,39 @@ class GoogleCloudAiplatformV1Retrieval(typing_extensions.TypedDict, total=False) disableAttribution: bool vertexAiSearch: GoogleCloudAiplatformV1VertexAISearch +@typing.type_check_only +class GoogleCloudAiplatformV1RougeInput(typing_extensions.TypedDict, total=False): + instances: _list[GoogleCloudAiplatformV1RougeInstance] + metricSpec: GoogleCloudAiplatformV1RougeSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1RougeInstance(typing_extensions.TypedDict, total=False): + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1RougeMetricValue(typing_extensions.TypedDict, total=False): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1RougeResults(typing_extensions.TypedDict, total=False): + rougeMetricValues: _list[GoogleCloudAiplatformV1RougeMetricValue] + +@typing.type_check_only +class GoogleCloudAiplatformV1RougeSpec(typing_extensions.TypedDict, total=False): + rougeType: str + splitSummaries: bool + useStemmer: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1SafetyInput(typing_extensions.TypedDict, total=False): + instance: GoogleCloudAiplatformV1SafetyInstance + metricSpec: GoogleCloudAiplatformV1SafetySpec + +@typing.type_check_only +class GoogleCloudAiplatformV1SafetyInstance(typing_extensions.TypedDict, total=False): + prediction: str + @typing.type_check_only class GoogleCloudAiplatformV1SafetyRating(typing_extensions.TypedDict, total=False): blocked: bool @@ -4318,6 +4984,12 @@ class GoogleCloudAiplatformV1SafetyRating(typing_extensions.TypedDict, total=Fal ] severityScore: float +@typing.type_check_only +class GoogleCloudAiplatformV1SafetyResult(typing_extensions.TypedDict, total=False): + confidence: float + explanation: str + score: float + @typing.type_check_only class GoogleCloudAiplatformV1SafetySetting(typing_extensions.TypedDict, total=False): category: typing_extensions.Literal[ @@ -4338,6 +5010,10 @@ class GoogleCloudAiplatformV1SafetySetting(typing_extensions.TypedDict, total=Fa "BLOCK_NONE", ] +@typing.type_check_only +class GoogleCloudAiplatformV1SafetySpec(typing_extensions.TypedDict, total=False): + version: int + @typing.type_check_only class GoogleCloudAiplatformV1SampleConfig(typing_extensions.TypedDict, total=False): followingBatchSamplePercentage: int @@ -4413,6 +5089,9 @@ class GoogleCloudAiplatformV1ScheduleRunResponse( class GoogleCloudAiplatformV1Scheduling(typing_extensions.TypedDict, total=False): disableRetries: bool restartJobOnWorkerRestart: bool + strategy: typing_extensions.Literal[ + "STRATEGY_UNSPECIFIED", "ON_DEMAND", "LOW_COST", "STANDARD", "SPOT" + ] timeout: str @typing.type_check_only @@ -5132,10 +5811,12 @@ class GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata( candidateCount: str gcsUri: str groundingConfig: GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig + hasPromptVariable: bool maxOutputTokens: str note: str promptType: str stopSequences: _list[str] + systemInstruction: str systemInstructionGcsUri: str temperature: float text: str @@ -5992,6 +6673,13 @@ class GoogleCloudAiplatformV1SearchNearestEntitiesResponse( ): nearestNeighbors: GoogleCloudAiplatformV1NearestNeighbors +@typing.type_check_only +class GoogleCloudAiplatformV1Segment(typing_extensions.TypedDict, total=False): + endIndex: int + partIndex: int + startIndex: int + text: str + @typing.type_check_only class GoogleCloudAiplatformV1ServiceAccountSpec( typing_extensions.TypedDict, total=False @@ -6073,6 +6761,15 @@ class GoogleCloudAiplatformV1StreamingReadFeatureValuesRequest( class GoogleCloudAiplatformV1StringArray(typing_extensions.TypedDict, total=False): values: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1StructFieldValue(typing_extensions.TypedDict, total=False): + name: str + value: GoogleCloudAiplatformV1FeatureValue + +@typing.type_check_only +class GoogleCloudAiplatformV1StructValue(typing_extensions.TypedDict, total=False): + values: _list[GoogleCloudAiplatformV1StructFieldValue] + @typing.type_check_only class GoogleCloudAiplatformV1Study(typing_extensions.TypedDict, total=False): createTime: str @@ -6269,6 +6966,99 @@ class GoogleCloudAiplatformV1SuggestTrialsResponse( ] trials: _list[GoogleCloudAiplatformV1Trial] +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationHelpfulnessInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1SummarizationHelpfulnessInstance + metricSpec: GoogleCloudAiplatformV1SummarizationHelpfulnessSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationHelpfulnessInstance( + typing_extensions.TypedDict, total=False +): + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationHelpfulnessResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationHelpfulnessSpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationQualityInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1SummarizationQualityInstance + metricSpec: GoogleCloudAiplatformV1SummarizationQualitySpec + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationQualityInstance( + typing_extensions.TypedDict, total=False +): + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationQualityResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationQualitySpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationVerbosityInput( + typing_extensions.TypedDict, total=False +): + instance: GoogleCloudAiplatformV1SummarizationVerbosityInstance + metricSpec: GoogleCloudAiplatformV1SummarizationVerbositySpec + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationVerbosityInstance( + typing_extensions.TypedDict, total=False +): + context: str + instruction: str + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationVerbosityResult( + typing_extensions.TypedDict, total=False +): + confidence: float + explanation: str + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1SummarizationVerbositySpec( + typing_extensions.TypedDict, total=False +): + useReference: bool + version: int + @typing.type_check_only class GoogleCloudAiplatformV1SupervisedHyperParameters( typing_extensions.TypedDict, total=False @@ -6279,6 +7069,7 @@ class GoogleCloudAiplatformV1SupervisedHyperParameters( "ADAPTER_SIZE_FOUR", "ADAPTER_SIZE_EIGHT", "ADAPTER_SIZE_SIXTEEN", + "ADAPTER_SIZE_THIRTY_TWO", ] epochCount: str learningRateMultiplier: float @@ -6288,6 +7079,7 @@ class GoogleCloudAiplatformV1SupervisedTuningDataStats( typing_extensions.TypedDict, total=False ): totalBillableCharacterCount: str + totalBillableTokenCount: str totalTuningCharacterCount: str tuningDatasetExampleCount: str tuningStepCount: str @@ -6306,6 +7098,7 @@ class GoogleCloudAiplatformV1SupervisedTuningDataStats( class GoogleCloudAiplatformV1SupervisedTuningDatasetDistribution( typing_extensions.TypedDict, total=False ): + billableSum: str buckets: _list[ GoogleCloudAiplatformV1SupervisedTuningDatasetDistributionDatasetBucket ] @@ -6393,6 +7186,8 @@ class GoogleCloudAiplatformV1Tensorboard(typing_extensions.TypedDict, total=Fals labels: dict[str, typing.Any] name: str runCount: int + satisfiesPzi: bool + satisfiesPzs: bool updateTime: str @typing.type_check_only @@ -6492,14 +7287,149 @@ class GoogleCloudAiplatformV1TimestampSplit(typing_extensions.TypedDict, total=F @typing.type_check_only class GoogleCloudAiplatformV1TokensInfo(typing_extensions.TypedDict, total=False): + role: str tokenIds: _list[str] tokens: _list[str] @typing.type_check_only class GoogleCloudAiplatformV1Tool(typing_extensions.TypedDict, total=False): functionDeclarations: _list[GoogleCloudAiplatformV1FunctionDeclaration] + googleSearchRetrieval: GoogleCloudAiplatformV1GoogleSearchRetrieval retrieval: GoogleCloudAiplatformV1Retrieval +@typing.type_check_only +class GoogleCloudAiplatformV1ToolCallValidInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1ToolCallValidInstance] + metricSpec: GoogleCloudAiplatformV1ToolCallValidSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolCallValidInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolCallValidMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolCallValidResults( + typing_extensions.TypedDict, total=False +): + toolCallValidMetricValues: _list[GoogleCloudAiplatformV1ToolCallValidMetricValue] + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolCallValidSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolConfig(typing_extensions.TypedDict, total=False): + functionCallingConfig: GoogleCloudAiplatformV1FunctionCallingConfig + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolNameMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1ToolNameMatchInstance] + metricSpec: GoogleCloudAiplatformV1ToolNameMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolNameMatchInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolNameMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolNameMatchResults( + typing_extensions.TypedDict, total=False +): + toolNameMatchMetricValues: _list[GoogleCloudAiplatformV1ToolNameMatchMetricValue] + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolNameMatchSpec( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKVMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1ToolParameterKVMatchInstance] + metricSpec: GoogleCloudAiplatformV1ToolParameterKVMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKVMatchInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKVMatchResults( + typing_extensions.TypedDict, total=False +): + toolParameterKvMatchMetricValues: _list[ + GoogleCloudAiplatformV1ToolParameterKVMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKVMatchSpec( + typing_extensions.TypedDict, total=False +): + useStrictStringMatch: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKeyMatchInput( + typing_extensions.TypedDict, total=False +): + instances: _list[GoogleCloudAiplatformV1ToolParameterKeyMatchInstance] + metricSpec: GoogleCloudAiplatformV1ToolParameterKeyMatchSpec + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKeyMatchInstance( + typing_extensions.TypedDict, total=False +): + prediction: str + reference: str + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue( + typing_extensions.TypedDict, total=False +): + score: float + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKeyMatchResults( + typing_extensions.TypedDict, total=False +): + toolParameterKeyMatchMetricValues: _list[ + GoogleCloudAiplatformV1ToolParameterKeyMatchMetricValue + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1ToolParameterKeyMatchSpec( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1TrainingConfig(typing_extensions.TypedDict, total=False): timeoutTrainingMilliHours: str diff --git a/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi index 8158ae40..39ce9b19 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1beta1/resources.pyi @@ -134,6 +134,48 @@ class AiplatformResource(googleapiclient.discovery.Resource): | None ): ... + @typing.type_check_only + class CachedContentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1beta1CachedContent = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1beta1CachedContentHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAiplatformV1beta1CachedContentHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudAiplatformV1beta1ListCachedContentsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudAiplatformV1beta1ListCachedContentsResponseHttpRequest, + previous_response: GoogleCloudAiplatformV1beta1ListCachedContentsResponse, + ) -> ( + GoogleCloudAiplatformV1beta1ListCachedContentsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1beta1CachedContent = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1beta1CachedContentHttpRequest: ... + @typing.type_check_only class CustomJobsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -714,6 +756,14 @@ class AiplatformResource(googleapiclient.discovery.Resource): GoogleCloudAiplatformV1beta1ListDeploymentResourcePoolsResponseHttpRequest | None ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1beta1DeploymentResourcePool = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def queryDeployedModels( self, *, @@ -769,6 +819,16 @@ class AiplatformResource(googleapiclient.discovery.Resource): @typing.type_check_only class EndpointsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ChatResource(googleapiclient.discovery.Resource): + def completions( + self, + *, + endpoint: str, + body: GoogleApiHttpBody = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -939,6 +999,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1GenerateContentRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudAiplatformV1beta1GenerateContentResponseHttpRequest: ... + def streamRawPredict( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1beta1StreamRawPredictRequest = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... def testIamPermissions( self, *, @@ -953,6 +1020,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1UndeployModelRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def chat(self) -> ChatResource: ... def operations(self) -> OperationsResource: ... @typing.type_check_only @@ -3171,6 +3239,43 @@ class AiplatformResource(googleapiclient.discovery.Resource): @typing.type_check_only class NotebookExecutionJobsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudAiplatformV1beta1NotebookExecutionJob = ..., + notebookExecutionJobId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def delete( self, *, name: str, **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... @@ -3226,9 +3331,39 @@ class AiplatformResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudAiplatformV1beta1ReportExecutionEventResponseHttpRequest ): ... + def operations(self) -> OperationsResource: ... @typing.type_check_only class NotebookRuntimeTemplatesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def create( self, *, @@ -3269,6 +3404,14 @@ class AiplatformResource(googleapiclient.discovery.Resource): GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponseHttpRequest | None ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudAiplatformV1beta1NotebookRuntimeTemplateHttpRequest: ... def setIamPolicy( self, *, @@ -3283,9 +3426,39 @@ class AiplatformResource(googleapiclient.discovery.Resource): permissions: str | _list[str] = ..., **kwargs: typing.Any, ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + def operations(self) -> OperationsResource: ... @typing.type_check_only class NotebookRuntimesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def wait( + self, *, name: str, timeout: str = ..., **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def assign( self, *, @@ -3352,6 +3525,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): body: GoogleCloudAiplatformV1beta1UpgradeNotebookRuntimeRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def operations(self) -> OperationsResource: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -3617,6 +3791,13 @@ class AiplatformResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudAiplatformV1beta1GenerateContentResponseHttpRequest ): ... + def streamRawPredict( + self, + *, + endpoint: str, + body: GoogleCloudAiplatformV1beta1StreamRawPredictRequest = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... def models(self) -> ModelsResource: ... @@ -3811,6 +3992,14 @@ class AiplatformResource(googleapiclient.discovery.Resource): GoogleCloudAiplatformV1beta1ListReasoningEnginesResponseHttpRequest | None ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudAiplatformV1beta1ReasoningEngine = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def query( self, *, @@ -4727,6 +4916,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): def agents(self) -> AgentsResource: ... def apps(self) -> AppsResource: ... def batchPredictionJobs(self) -> BatchPredictionJobsResource: ... + def cachedContents(self) -> CachedContentsResource: ... def customJobs(self) -> CustomJobsResource: ... def dataLabelingJobs(self) -> DataLabelingJobsResource: ... def datasets(self) -> DatasetsResource: ... @@ -4788,6 +4978,7 @@ class AiplatformResource(googleapiclient.discovery.Resource): self, *, name: str, + isHuggingFaceModel: bool = ..., languageCode: str = ..., view: typing_extensions.Literal[ "PUBLISHER_MODEL_VIEW_UNSPECIFIED", @@ -4957,6 +5148,16 @@ class GoogleCloudAiplatformV1beta1CacheConfigHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1beta1CacheConfig: ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CachedContentHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1beta1CachedContent: ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1ComputeTokensResponseHttpRequest( googleapiclient.http.HttpRequest @@ -5297,6 +5498,16 @@ class GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse: ... +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ListCachedContentsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAiplatformV1beta1ListCachedContentsResponse: ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1ListContextsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi index e2e7741e..711326b6 100644 --- a/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/aiplatform/v1beta1/schemas.pyi @@ -4,68 +4,18 @@ import typing_extensions _list = list -@typing.type_check_only -class CloudAiLargeModelsVisionFilteredText(typing_extensions.TypedDict, total=False): - category: typing_extensions.Literal[ - "RAI_CATEGORY_UNSPECIFIED", - "OBSCENE", - "SEXUALLY_EXPLICIT", - "IDENTITY_ATTACK", - "VIOLENCE_ABUSE", - "CSAI", - "SPII", - "CELEBRITY", - "FACE_IMG", - "WATERMARK_IMG", - "MEMORIZATION_IMG", - "CSAI_IMG", - "PORN_IMG", - "VIOLENCE_IMG", - "CHILD_IMG", - "TOXIC", - "SENSITIVE_WORD", - "PERSON_IMG", - "ICA_IMG", - "SEXUAL_IMG", - "IU_IMG", - "RACY_IMG", - "PEDO_IMG", - "DEATH_HARM_TRAGEDY", - "HEALTH", - "FIREARMS_WEAPONS", - "RELIGIOUS_BELIEF", - "ILLICIT_DRUGS", - "WAR_CONFLICT", - "POLITICS", - "HATE_SYMBOL_IMG", - "CHILD_TEXT", - "DANGEROUS_CONTENT", - "RECITATION_TEXT", - "CELEBRITY_IMG", - "WATERMARK_IMG_REMOVAL", - ] - confidence: typing_extensions.Literal[ - "CONFIDENCE_UNSPECIFIED", - "CONFIDENCE_LOW", - "CONFIDENCE_MEDIUM", - "CONFIDENCE_HIGH", - ] - prompt: str - score: float - @typing.type_check_only class CloudAiLargeModelsVisionGenerateVideoResponse( typing_extensions.TypedDict, total=False ): generatedSamples: _list[CloudAiLargeModelsVisionMedia] - raiErrorMessage: str raiMediaFilteredCount: int raiMediaFilteredReasons: _list[str] - raiTextFilteredReason: CloudAiLargeModelsVisionFilteredText @typing.type_check_only class CloudAiLargeModelsVisionImage(typing_extensions.TypedDict, total=False): encoding: str + generationSeed: int image: str imageRaiScores: CloudAiLargeModelsVisionImageRAIScores raiInfo: CloudAiLargeModelsVisionRaiInfo @@ -96,9 +46,37 @@ class CloudAiLargeModelsVisionNamedBoundingBox( @typing.type_check_only class CloudAiLargeModelsVisionRaiInfo(typing_extensions.TypedDict, total=False): + detectedLabels: _list[CloudAiLargeModelsVisionRaiInfoDetectedLabels] + modelName: str raiCategories: _list[str] scores: _list[float] +@typing.type_check_only +class CloudAiLargeModelsVisionRaiInfoDetectedLabels( + typing_extensions.TypedDict, total=False +): + entities: _list[CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity] + raiCategory: str + +@typing.type_check_only +class CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox( + typing_extensions.TypedDict, total=False +): + x1: int + x2: int + y1: int + y2: int + +@typing.type_check_only +class CloudAiLargeModelsVisionRaiInfoDetectedLabelsEntity( + typing_extensions.TypedDict, total=False +): + boundingBox: CloudAiLargeModelsVisionRaiInfoDetectedLabelsBoundingBox + description: str + iouScore: float + mid: str + score: float + @typing.type_check_only class CloudAiLargeModelsVisionSemanticFilterResponse( typing_extensions.TypedDict, total=False @@ -111,6 +89,39 @@ class CloudAiLargeModelsVisionVideo(typing_extensions.TypedDict, total=False): uri: str video: str +@typing.type_check_only +class CloudAiPlatformCommonCreatePipelineJobApiErrorDetail( + typing_extensions.TypedDict, total=False +): + errorCause: typing_extensions.Literal[ + "ERROR_CAUSE_UNSPECIFIED", + "INVALID_PIPELINE_SPEC_FORMAT", + "INVALID_PIPELINE_SPEC", + "INVALID_DEPLOYMENT_CONFIG", + "INVALID_DEPLOYMENT_SPEC", + "INVALID_INSTANCE_SCHEMA", + "INVALID_CUSTOM_JOB", + "INVALID_CONTAINER_SPEC", + "INVALID_NOTIFICATION_EMAIL_SETUP", + "INVALID_SERVICE_ACCOUNT_SETUP", + "INVALID_KMS_SETUP", + "INVALID_NETWORK_SETUP", + "INVALID_PIPELINE_TASK_SPEC", + "INVALID_PIPELINE_TASK_ARTIFACT", + "INVALID_IMPORTER_SPEC", + "INVALID_RESOLVER_SPEC", + "INVALID_RUNTIME_PARAMETERS", + "CLOUD_API_NOT_ENABLED", + "INVALID_GCS_INPUT_URI", + "INVALID_GCS_OUTPUT_URI", + "INVALID_COMPONENT_SPEC", + "INVALID_DAG_OUTPUTS_SPEC", + "INVALID_DAG_SPEC", + "INSUFFICIENT_QUOTA", + "INTERNAL", + ] + publicMessage: str + @typing.type_check_only class GoogleApiHttpBody(typing_extensions.TypedDict, total=False): contentType: str @@ -187,6 +198,12 @@ class GoogleCloudAiplatformV1beta1AnnotationSpec( name: str updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig( + typing_extensions.TypedDict, total=False +): + apiKeySecretVersion: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1Artifact(typing_extensions.TypedDict, total=False): createTime: str @@ -464,6 +481,8 @@ class GoogleCloudAiplatformV1beta1BatchPredictionJob( outputInfo: GoogleCloudAiplatformV1beta1BatchPredictionJobOutputInfo partialFailures: _list[GoogleRpcStatus] resourcesConsumed: GoogleCloudAiplatformV1beta1ResourcesConsumed + satisfiesPzi: bool + satisfiesPzs: bool serviceAccount: str startTime: str state: typing_extensions.Literal[ @@ -597,9 +616,8 @@ class GoogleCloudAiplatformV1beta1BleuResults(typing_extensions.TypedDict, total bleuMetricValues: _list[GoogleCloudAiplatformV1beta1BleuMetricValue] @typing.type_check_only -class GoogleCloudAiplatformV1beta1BleuSpec( - typing_extensions.TypedDict, total=False -): ... +class GoogleCloudAiplatformV1beta1BleuSpec(typing_extensions.TypedDict, total=False): + useEffectiveOrder: bool @typing.type_check_only class GoogleCloudAiplatformV1beta1Blob(typing_extensions.TypedDict, total=False): @@ -621,6 +639,22 @@ class GoogleCloudAiplatformV1beta1CacheConfig(typing_extensions.TypedDict, total disableCache: bool name: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CachedContent( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudAiplatformV1beta1Content] + createTime: str + displayName: str + expireTime: str + model: str + name: str + systemInstruction: GoogleCloudAiplatformV1beta1Content + toolConfig: GoogleCloudAiplatformV1beta1ToolConfig + tools: _list[GoogleCloudAiplatformV1beta1Tool] + ttl: str + updateTime: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1CancelBatchPredictionJobRequest( typing_extensions.TypedDict, total=False @@ -676,6 +710,7 @@ class GoogleCloudAiplatformV1beta1Candidate(typing_extensions.TypedDict, total=F "BLOCKLIST", "PROHIBITED_CONTENT", "SPII", + "MALFORMED_FUNCTION_CALL", ] groundingMetadata: GoogleCloudAiplatformV1beta1GroundingMetadata index: int @@ -763,7 +798,9 @@ class GoogleCloudAiplatformV1beta1CompletionStats( class GoogleCloudAiplatformV1beta1ComputeTokensRequest( typing_extensions.TypedDict, total=False ): + contents: _list[GoogleCloudAiplatformV1beta1Content] instances: _list[typing.Any] + model: str @typing.type_check_only class GoogleCloudAiplatformV1beta1ComputeTokensResponse( @@ -834,6 +871,8 @@ class GoogleCloudAiplatformV1beta1CountTokensRequest( contents: _list[GoogleCloudAiplatformV1beta1Content] instances: _list[typing.Any] model: str + systemInstruction: GoogleCloudAiplatformV1beta1Content + tools: _list[GoogleCloudAiplatformV1beta1Tool] @typing.type_check_only class GoogleCloudAiplatformV1beta1CountTokensResponse( @@ -958,6 +997,13 @@ class GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest( modelMonitoringJobId: str parent: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobOperationMetadata( + typing_extensions.TypedDict, total=False +): + genericMetadata: GoogleCloudAiplatformV1beta1GenericOperationMetadata + progressMessage: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1CreateNotebookExecutionJobRequest( typing_extensions.TypedDict, total=False @@ -1047,6 +1093,8 @@ class GoogleCloudAiplatformV1beta1CustomJob(typing_extensions.TypedDict, total=F jobSpec: GoogleCloudAiplatformV1beta1CustomJobSpec labels: dict[str, typing.Any] name: str + satisfiesPzi: bool + satisfiesPzs: bool startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -1091,6 +1139,8 @@ class GoogleCloudAiplatformV1beta1DataItem(typing_extensions.TypedDict, total=Fa labels: dict[str, typing.Any] name: str payload: typing.Any + satisfiesPzi: bool + satisfiesPzs: bool updateTime: str @typing.type_check_only @@ -1151,9 +1201,45 @@ class GoogleCloudAiplatformV1beta1Dataset(typing_extensions.TypedDict, total=Fal metadataSchemaUri: str modelReference: str name: str + satisfiesPzi: bool + satisfiesPzs: bool savedQueries: _list[GoogleCloudAiplatformV1beta1SavedQuery] updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DatasetDistribution( + typing_extensions.TypedDict, total=False +): + buckets: _list[GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket] + max: float + mean: float + median: float + min: float + p5: float + p95: float + sum: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket( + typing_extensions.TypedDict, total=False +): + count: str + left: float + right: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DatasetStats( + typing_extensions.TypedDict, total=False +): + totalBillableCharacterCount: str + totalTuningCharacterCount: str + tuningDatasetExampleCount: str + tuningStepCount: str + userDatasetExamples: _list[GoogleCloudAiplatformV1beta1Content] + userInputTokenDistribution: GoogleCloudAiplatformV1beta1DatasetDistribution + userMessagePerExampleDistribution: GoogleCloudAiplatformV1beta1DatasetDistribution + userOutputTokenDistribution: GoogleCloudAiplatformV1beta1DatasetDistribution + @typing.type_check_only class GoogleCloudAiplatformV1beta1DatasetVersion( typing_extensions.TypedDict, total=False @@ -1165,6 +1251,8 @@ class GoogleCloudAiplatformV1beta1DatasetVersion( metadata: typing.Any modelReference: str name: str + satisfiesPzi: bool + satisfiesPzs: bool updateTime: str @typing.type_check_only @@ -1175,6 +1263,7 @@ class GoogleCloudAiplatformV1beta1DedicatedResources( machineSpec: GoogleCloudAiplatformV1beta1MachineSpec maxReplicaCount: int minReplicaCount: int + spot: bool @typing.type_check_only class GoogleCloudAiplatformV1beta1DeleteFeatureValuesOperationMetadata( @@ -1355,7 +1444,12 @@ class GoogleCloudAiplatformV1beta1DeploymentResourcePool( ): createTime: str dedicatedResources: GoogleCloudAiplatformV1beta1DedicatedResources + disableContainerLogging: bool + encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec name: str + satisfiesPzi: bool + satisfiesPzs: bool + serviceAccount: str @typing.type_check_only class GoogleCloudAiplatformV1beta1DestinationFeatureSetting( @@ -1401,6 +1495,39 @@ class GoogleCloudAiplatformV1beta1DiskSpec(typing_extensions.TypedDict, total=Fa bootDiskSizeGb: int bootDiskType: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DistillationDataStats( + typing_extensions.TypedDict, total=False +): + trainingDatasetStats: GoogleCloudAiplatformV1beta1DatasetStats + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DistillationHyperParameters( + typing_extensions.TypedDict, total=False +): + adapterSize: typing_extensions.Literal[ + "ADAPTER_SIZE_UNSPECIFIED", + "ADAPTER_SIZE_ONE", + "ADAPTER_SIZE_FOUR", + "ADAPTER_SIZE_EIGHT", + "ADAPTER_SIZE_SIXTEEN", + "ADAPTER_SIZE_THIRTY_TWO", + ] + epochCount: str + learningRateMultiplier: float + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1DistillationSpec( + typing_extensions.TypedDict, total=False +): + baseTeacherModel: str + hyperParameters: GoogleCloudAiplatformV1beta1DistillationHyperParameters + pipelineRootDirectory: str + studentModel: str + trainingDatasetUri: str + tunedTeacherModelSource: str + validationDatasetUri: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1DoubleArray(typing_extensions.TypedDict, total=False): values: _list[float] @@ -1414,6 +1541,8 @@ class GoogleCloudAiplatformV1beta1EncryptionSpec( @typing.type_check_only class GoogleCloudAiplatformV1beta1Endpoint(typing_extensions.TypedDict, total=False): createTime: str + dedicatedEndpointDns: str + dedicatedEndpointEnabled: bool deployedModels: _list[GoogleCloudAiplatformV1beta1DeployedModel] description: str displayName: str @@ -1428,6 +1557,8 @@ class GoogleCloudAiplatformV1beta1Endpoint(typing_extensions.TypedDict, total=Fa GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig ) privateServiceConnectConfig: GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig + satisfiesPzi: bool + satisfiesPzs: bool trafficSplit: dict[str, typing.Any] updateTime: str @@ -2033,6 +2164,7 @@ class GoogleCloudAiplatformV1beta1Feature(typing_extensions.TypedDict, total=Fal "STRING", "STRING_ARRAY", "BYTES", + "STRUCT", ] versionColumnName: str @@ -2089,6 +2221,7 @@ class GoogleCloudAiplatformV1beta1FeatureOnlineStore( embeddingManagement: ( GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement ) + encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec etag: str labels: dict[str, typing.Any] name: str @@ -2161,6 +2294,7 @@ class GoogleCloudAiplatformV1beta1FeatureValue( metadata: GoogleCloudAiplatformV1beta1FeatureValueMetadata stringArrayValue: GoogleCloudAiplatformV1beta1StringArray stringValue: str + structValue: GoogleCloudAiplatformV1beta1StructValue @typing.type_check_only class GoogleCloudAiplatformV1beta1FeatureValueDestination( @@ -2608,6 +2742,7 @@ class GoogleCloudAiplatformV1beta1GenerateAccessTokenResponse( class GoogleCloudAiplatformV1beta1GenerateContentRequest( typing_extensions.TypedDict, total=False ): + cachedContent: str contents: _list[GoogleCloudAiplatformV1beta1Content] generationConfig: GoogleCloudAiplatformV1beta1GenerationConfig safetySettings: _list[GoogleCloudAiplatformV1beta1SafetySetting] @@ -2645,6 +2780,14 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata( promptTokenCount: int totalTokenCount: int +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GenerateVideoResponse( + typing_extensions.TypedDict, total=False +): + generatedSamples: _list[str] + raiMediaFilteredCount: int + raiMediaFilteredReasons: _list[str] + @typing.type_check_only class GoogleCloudAiplatformV1beta1GenerationConfig( typing_extensions.TypedDict, total=False @@ -2654,17 +2797,36 @@ class GoogleCloudAiplatformV1beta1GenerationConfig( maxOutputTokens: int presencePenalty: float responseMimeType: str - responseStyle: typing_extensions.Literal[ - "RESPONSE_STYLE_UNSPECIFIED", - "RESPONSE_STYLE_PRECISE", - "RESPONSE_STYLE_BALANCED", - "RESPONSE_STYLE_CREATIVE", - ] + responseSchema: GoogleCloudAiplatformV1beta1Schema + routingConfig: GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig stopSequences: _list[str] temperature: float topK: float topP: float +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig( + typing_extensions.TypedDict, total=False +): + autoMode: GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode + manualMode: ( + GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode + ) + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode( + typing_extensions.TypedDict, total=False +): + modelRoutingPreference: typing_extensions.Literal[ + "UNKNOWN", "PRIORITIZE_QUALITY", "BALANCED", "PRIORITIZE_COST" + ] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode( + typing_extensions.TypedDict, total=False +): + modelName: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1GenericOperationMetadata( typing_extensions.TypedDict, total=False @@ -2692,6 +2854,11 @@ class GoogleCloudAiplatformV1beta1GoogleDriveSourceResourceId( "RESOURCE_TYPE_UNSPECIFIED", "RESOURCE_TYPE_FILE", "RESOURCE_TYPE_FOLDER" ] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAiplatformV1beta1GroundednessInput( typing_extensions.TypedDict, total=False @@ -2720,14 +2887,45 @@ class GoogleCloudAiplatformV1beta1GroundednessSpec( ): version: int +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GroundingChunk( + typing_extensions.TypedDict, total=False +): + retrievedContext: GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext + web: GoogleCloudAiplatformV1beta1GroundingChunkWeb + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext( + typing_extensions.TypedDict, total=False +): + title: str + uri: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GroundingChunkWeb( + typing_extensions.TypedDict, total=False +): + title: str + uri: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1GroundingMetadata( typing_extensions.TypedDict, total=False ): + groundingChunks: _list[GoogleCloudAiplatformV1beta1GroundingChunk] + groundingSupports: _list[GoogleCloudAiplatformV1beta1GroundingSupport] retrievalQueries: _list[str] searchEntryPoint: GoogleCloudAiplatformV1beta1SearchEntryPoint webSearchQueries: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GroundingSupport( + typing_extensions.TypedDict, total=False +): + confidenceScores: _list[float] + groundingChunkIndices: _list[int] + segment: GoogleCloudAiplatformV1beta1Segment + @typing.type_check_only class GoogleCloudAiplatformV1beta1HyperparameterTuningJob( typing_extensions.TypedDict, total=False @@ -2742,6 +2940,8 @@ class GoogleCloudAiplatformV1beta1HyperparameterTuningJob( maxTrialCount: int name: str parallelTrialCount: int + satisfiesPzi: bool + satisfiesPzs: bool startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -2855,7 +3055,10 @@ class GoogleCloudAiplatformV1beta1ImportRagFilesConfig( ): gcsSource: GoogleCloudAiplatformV1beta1GcsSource googleDriveSource: GoogleCloudAiplatformV1beta1GoogleDriveSource + jiraSource: GoogleCloudAiplatformV1beta1JiraSource + maxEmbeddingRequestsPerMin: int ragFileChunkingConfig: GoogleCloudAiplatformV1beta1RagFileChunkingConfig + slackSource: GoogleCloudAiplatformV1beta1SlackSource @typing.type_check_only class GoogleCloudAiplatformV1beta1ImportRagFilesRequest( @@ -3010,9 +3213,24 @@ class GoogleCloudAiplatformV1beta1InternalOsServiceStateInstance( "EUC_AGENT_API_STATE", "IDLE_SHUTDOWN_AGENT_STATE", "PROXY_AGENT_STATE", + "GCR_DNS_STATE", ] serviceState: typing_extensions.Literal["UNKNOWN", "HEALTHY", "UNHEALTHY"] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1JiraSource(typing_extensions.TypedDict, total=False): + jiraQueries: _list[GoogleCloudAiplatformV1beta1JiraSourceJiraQueries] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1JiraSourceJiraQueries( + typing_extensions.TypedDict, total=False +): + apiKeyConfig: GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig + customQueries: _list[str] + email: str + projects: _list[str] + serverUri: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1LargeModelReference( typing_extensions.TypedDict, total=False @@ -3048,6 +3266,13 @@ class GoogleCloudAiplatformV1beta1ListBatchPredictionJobsResponse( batchPredictionJobs: _list[GoogleCloudAiplatformV1beta1BatchPredictionJob] nextPageToken: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ListCachedContentsResponse( + typing_extensions.TypedDict, total=False +): + cachedContents: _list[GoogleCloudAiplatformV1beta1CachedContent] + nextPageToken: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1ListContextsResponse( typing_extensions.TypedDict, total=False @@ -3444,6 +3669,7 @@ class GoogleCloudAiplatformV1beta1MachineSpec(typing_extensions.TypedDict, total "TPU_V5_LITEPOD", ] machineType: str + reservationAffinity: GoogleCloudAiplatformV1beta1ReservationAffinity tpuTopology: str @typing.type_check_only @@ -3492,12 +3718,19 @@ class GoogleCloudAiplatformV1beta1MetadataStore( typing_extensions.TypedDict, total=False ): createTime: str + dataplexConfig: GoogleCloudAiplatformV1beta1MetadataStoreDataplexConfig description: str encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec name: str state: GoogleCloudAiplatformV1beta1MetadataStoreMetadataStoreState updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1MetadataStoreDataplexConfig( + typing_extensions.TypedDict, total=False +): + enabledPipelinesLineage: bool + @typing.type_check_only class GoogleCloudAiplatformV1beta1MetadataStoreMetadataStoreState( typing_extensions.TypedDict, total=False @@ -3636,6 +3869,8 @@ class GoogleCloudAiplatformV1beta1Model(typing_extensions.TypedDict, total=False name: str originalModelInfo: GoogleCloudAiplatformV1beta1ModelOriginalModelInfo predictSchemata: GoogleCloudAiplatformV1beta1PredictSchemata + satisfiesPzi: bool + satisfiesPzs: bool supportedDeploymentResourcesTypes: _list[ typing_extensions.Literal[ "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED", @@ -3871,6 +4106,8 @@ class GoogleCloudAiplatformV1beta1ModelMonitor( name: str notificationSpec: GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec outputSpec: GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec + satisfiesPzi: bool + satisfiesPzs: bool tabularObjective: ( GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective ) @@ -4354,6 +4591,8 @@ class GoogleCloudAiplatformV1beta1NasJob(typing_extensions.TypedDict, total=Fals name: str nasJobOutput: GoogleCloudAiplatformV1beta1NasJobOutput nasJobSpec: GoogleCloudAiplatformV1beta1NasJobSpec + satisfiesPzi: bool + satisfiesPzs: bool startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", @@ -4462,6 +4701,7 @@ class GoogleCloudAiplatformV1beta1NearestNeighborQuery( embedding: GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding entityId: str neighborCount: int + numericFilters: _list[GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter] parameters: GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters perCrowdingAttributeNeighborCount: int stringFilters: _list[GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter] @@ -4472,6 +4712,24 @@ class GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding( ): value: _list[float] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1NearestNeighborQueryNumericFilter( + typing_extensions.TypedDict, total=False +): + name: str + op: typing_extensions.Literal[ + "OPERATOR_UNSPECIFIED", + "LESS", + "LESS_EQUAL", + "EQUAL", + "GREATER_EQUAL", + "GREATER", + "NOT_EQUAL", + ] + valueDouble: float + valueFloat: float + valueInt: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters( typing_extensions.TypedDict, total=False @@ -4533,6 +4791,7 @@ class GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataRecordEr "INVALID_SPARSE_DIMENSIONS", "INVALID_TOKEN_VALUE", "INVALID_SPARSE_EMBEDDING", + "INVALID_EMBEDDING", ] rawRecord: str sourceGcsUri: str @@ -4580,9 +4839,6 @@ class GoogleCloudAiplatformV1beta1NotebookExecutionJob( typing_extensions.TypedDict, total=False ): createTime: str - customEnvironmentSpec: ( - GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec - ) dataformRepositorySource: ( GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource ) @@ -4590,6 +4846,7 @@ class GoogleCloudAiplatformV1beta1NotebookExecutionJob( GoogleCloudAiplatformV1beta1NotebookExecutionJobDirectNotebookSource ) displayName: str + encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec executionTimeout: str executionUser: str gcsNotebookSource: GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource @@ -4616,14 +4873,6 @@ class GoogleCloudAiplatformV1beta1NotebookExecutionJob( status: GoogleRpcStatus updateTime: str -@typing.type_check_only -class GoogleCloudAiplatformV1beta1NotebookExecutionJobCustomEnvironmentSpec( - typing_extensions.TypedDict, total=False -): - machineSpec: GoogleCloudAiplatformV1beta1MachineSpec - networkSpec: GoogleCloudAiplatformV1beta1NetworkSpec - persistentDiskSpec: GoogleCloudAiplatformV1beta1PersistentDiskSpec - @typing.type_check_only class GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource( typing_extensions.TypedDict, total=False @@ -4651,19 +4900,6 @@ class GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig( idleShutdownDisabled: bool idleTimeout: str -@typing.type_check_only -class GoogleCloudAiplatformV1beta1NotebookReservationAffinity( - typing_extensions.TypedDict, total=False -): - consumeReservationType: typing_extensions.Literal[ - "RESERVATION_AFFINITY_TYPE_UNSPECIFIED", - "RESERVATION_NONE", - "RESERVATION_ANY", - "RESERVATION_SPECIFIC", - ] - key: str - values: _list[str] - @typing.type_check_only class GoogleCloudAiplatformV1beta1NotebookRuntime( typing_extensions.TypedDict, total=False @@ -4671,10 +4907,12 @@ class GoogleCloudAiplatformV1beta1NotebookRuntime( createTime: str description: str displayName: str + encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec expirationTime: str healthState: typing_extensions.Literal[ "HEALTH_STATE_UNSPECIFIED", "HEALTHY", "UNHEALTHY" ] + idleShutdownConfig: GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig isUpgradable: bool labels: dict[str, typing.Any] name: str @@ -4684,7 +4922,6 @@ class GoogleCloudAiplatformV1beta1NotebookRuntime( "NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED", "USER_DEFINED", "ONE_CLICK" ] proxyUri: str - reservationAffinity: GoogleCloudAiplatformV1beta1NotebookReservationAffinity runtimeState: typing_extensions.Literal[ "RUNTIME_STATE_UNSPECIFIED", "RUNNING", @@ -4710,6 +4947,7 @@ class GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate( dataPersistentDiskSpec: GoogleCloudAiplatformV1beta1PersistentDiskSpec description: str displayName: str + encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec etag: str eucConfig: GoogleCloudAiplatformV1beta1NotebookEucConfig idleShutdownConfig: GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig @@ -4722,7 +4960,6 @@ class GoogleCloudAiplatformV1beta1NotebookRuntimeTemplate( notebookRuntimeType: typing_extensions.Literal[ "NOTEBOOK_RUNTIME_TYPE_UNSPECIFIED", "USER_DEFINED", "ONE_CLICK" ] - reservationAffinity: GoogleCloudAiplatformV1beta1NotebookReservationAffinity serviceAccount: str shieldedVmConfig: GoogleCloudAiplatformV1beta1ShieldedVmConfig updateTime: str @@ -4838,6 +5075,7 @@ class GoogleCloudAiplatformV1beta1PersistentResource( labels: dict[str, typing.Any] name: str network: str + pscInterfaceConfig: GoogleCloudAiplatformV1beta1PscInterfaceConfig reservedIpRanges: _list[str] resourcePools: _list[GoogleCloudAiplatformV1beta1ResourcePool] resourceRuntime: GoogleCloudAiplatformV1beta1ResourceRuntime @@ -4869,6 +5107,8 @@ class GoogleCloudAiplatformV1beta1PipelineJob(typing_extensions.TypedDict, total preflightValidations: bool reservedIpRanges: _list[str] runtimeConfig: GoogleCloudAiplatformV1beta1PipelineJobRuntimeConfig + satisfiesPzi: bool + satisfiesPzs: bool scheduleName: str serviceAccount: str startTime: str @@ -5014,6 +5254,17 @@ class GoogleCloudAiplatformV1beta1PredefinedSplit( ): key: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PredictLongRunningMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PredictLongRunningResponse( + typing_extensions.TypedDict, total=False +): + generateVideoResponse: GoogleCloudAiplatformV1beta1GenerateVideoResponse + @typing.type_check_only class GoogleCloudAiplatformV1beta1PredictRequest( typing_extensions.TypedDict, total=False @@ -5070,6 +5321,7 @@ class GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig( ): enablePrivateServiceConnect: bool projectAllowlist: _list[str] + serviceAttachment: str @typing.type_check_only class GoogleCloudAiplatformV1beta1Probe(typing_extensions.TypedDict, total=False): @@ -5091,6 +5343,12 @@ class GoogleCloudAiplatformV1beta1PscAutomatedEndpoints( network: str projectId: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PscInterfaceConfig( + typing_extensions.TypedDict, total=False +): + networkAttachment: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1PublisherModel( typing_extensions.TypedDict, total=False @@ -5130,9 +5388,6 @@ class GoogleCloudAiplatformV1beta1PublisherModelCallToAction( ) deploy: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy deployGke: GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke - fineTune: ( - GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences - ) openEvaluationPipeline: ( GoogleCloudAiplatformV1beta1PublisherModelCallToActionRegionalResourceReferences ) @@ -5168,6 +5423,9 @@ class GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy( automaticResources: GoogleCloudAiplatformV1beta1AutomaticResources containerSpec: GoogleCloudAiplatformV1beta1ModelContainerSpec dedicatedResources: GoogleCloudAiplatformV1beta1DedicatedResources + deployMetadata: ( + GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployDeployMetadata + ) deployTaskName: str largeModelReference: GoogleCloudAiplatformV1beta1LargeModelReference modelDisplayName: str @@ -5175,6 +5433,13 @@ class GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeploy( sharedResources: str title: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployDeployMetadata( + typing_extensions.TypedDict, total=False +): + labels: dict[str, typing.Any] + sampleRequest: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployGke( typing_extensions.TypedDict, total=False @@ -5476,6 +5741,7 @@ class GoogleCloudAiplatformV1beta1RagContextsContext( ): distance: float sourceUri: str + sparseDistance: float text: str @typing.type_check_only @@ -5484,8 +5750,53 @@ class GoogleCloudAiplatformV1beta1RagCorpus(typing_extensions.TypedDict, total=F description: str displayName: str name: str + ragEmbeddingModelConfig: GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig updateTime: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagEmbeddingModelConfig( + typing_extensions.TypedDict, total=False +): + hybridSearchConfig: ( + GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigHybridSearchConfig + ) + vertexPredictionEndpoint: ( + GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigVertexPredictionEndpoint + ) + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigHybridSearchConfig( + typing_extensions.TypedDict, total=False +): + denseEmbeddingModelPredictionEndpoint: ( + GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigVertexPredictionEndpoint + ) + sparseEmbeddingConfig: ( + GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfig + ) + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfig( + typing_extensions.TypedDict, total=False +): + bm25: GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25 + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigSparseEmbeddingConfigBm25( + typing_extensions.TypedDict, total=False +): + b: float + k1: float + multilingual: bool + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RagEmbeddingModelConfigVertexPredictionEndpoint( + typing_extensions.TypedDict, total=False +): + endpoint: str + model: str + modelVersionId: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1RagFile(typing_extensions.TypedDict, total=False): createTime: str @@ -5494,11 +5805,13 @@ class GoogleCloudAiplatformV1beta1RagFile(typing_extensions.TypedDict, total=Fal displayName: str gcsSource: GoogleCloudAiplatformV1beta1GcsSource googleDriveSource: GoogleCloudAiplatformV1beta1GoogleDriveSource + jiraSource: GoogleCloudAiplatformV1beta1JiraSource name: str ragFileType: typing_extensions.Literal[ "RAG_FILE_TYPE_UNSPECIFIED", "RAG_FILE_TYPE_TXT", "RAG_FILE_TYPE_PDF" ] sizeBytes: str + slackSource: GoogleCloudAiplatformV1beta1SlackSource updateTime: str @typing.type_check_only @@ -5519,6 +5832,10 @@ class GoogleCloudAiplatformV1beta1RawPredictRequest( ): httpBody: GoogleApiHttpBody +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RayLogsSpec(typing_extensions.TypedDict, total=False): + disabled: bool + @typing.type_check_only class GoogleCloudAiplatformV1beta1RayMetricSpec( typing_extensions.TypedDict, total=False @@ -5529,6 +5846,7 @@ class GoogleCloudAiplatformV1beta1RayMetricSpec( class GoogleCloudAiplatformV1beta1RaySpec(typing_extensions.TypedDict, total=False): headNodeResourcePoolId: str imageUri: str + rayLogsSpec: GoogleCloudAiplatformV1beta1RayLogsSpec rayMetricSpec: GoogleCloudAiplatformV1beta1RayMetricSpec resourcePoolImages: dict[str, typing.Any] @@ -5724,6 +6042,16 @@ class GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse( ): idleShutdownMessage: str +@typing.type_check_only +class GoogleCloudAiplatformV1beta1ReservationAffinity( + typing_extensions.TypedDict, total=False +): + key: str + reservationAffinityType: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "NO_RESERVATION", "ANY_RESERVATION", "SPECIFIC_RESERVATION" + ] + values: _list[str] + @typing.type_check_only class GoogleCloudAiplatformV1beta1ResourcePool( typing_extensions.TypedDict, total=False @@ -5800,6 +6128,7 @@ class GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStore( ragResources: _list[ GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRagResource ] + ranking: GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking vectorDistanceThreshold: float @typing.type_check_only @@ -5809,6 +6138,12 @@ class GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRagResour ragCorpus: str ragFileIds: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStoreRanking( + typing_extensions.TypedDict, total=False +): + alpha: float + @typing.type_check_only class GoogleCloudAiplatformV1beta1RetrieveContextsResponse( typing_extensions.TypedDict, total=False @@ -5868,7 +6203,7 @@ class GoogleCloudAiplatformV1beta1RuntimeConfigCodeInterpreterRuntimeConfig( class GoogleCloudAiplatformV1beta1RuntimeConfigVertexAISearchRuntimeConfig( typing_extensions.TypedDict, total=False ): - appId: str + engineId: str servingConfigName: str @typing.type_check_only @@ -6026,6 +6361,9 @@ class GoogleCloudAiplatformV1beta1ScheduleRunResponse( class GoogleCloudAiplatformV1beta1Scheduling(typing_extensions.TypedDict, total=False): disableRetries: bool restartJobOnWorkerRestart: bool + strategy: typing_extensions.Literal[ + "STRATEGY_UNSPECIFIED", "ON_DEMAND", "LOW_COST", "STANDARD", "SPOT" + ] timeout: str @typing.type_check_only @@ -7639,6 +7977,13 @@ class GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse( ): nearestNeighbors: GoogleCloudAiplatformV1beta1NearestNeighbors +@typing.type_check_only +class GoogleCloudAiplatformV1beta1Segment(typing_extensions.TypedDict, total=False): + endIndex: int + partIndex: int + startIndex: int + text: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1ServiceAccountSpec( typing_extensions.TypedDict, total=False @@ -7652,6 +7997,25 @@ class GoogleCloudAiplatformV1beta1ShieldedVmConfig( ): enableSecureBoot: bool +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SlackSource(typing_extensions.TypedDict, total=False): + channels: _list[GoogleCloudAiplatformV1beta1SlackSourceSlackChannels] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SlackSourceSlackChannels( + typing_extensions.TypedDict, total=False +): + apiKeyConfig: GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig + channels: _list[GoogleCloudAiplatformV1beta1SlackSourceSlackChannelsSlackChannel] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1SlackSourceSlackChannelsSlackChannel( + typing_extensions.TypedDict, total=False +): + channelId: str + endTime: str + startTime: str + @typing.type_check_only class GoogleCloudAiplatformV1beta1SmoothGradConfig( typing_extensions.TypedDict, total=False @@ -7697,6 +8061,12 @@ class GoogleCloudAiplatformV1beta1StratifiedSplit( trainingFraction: float validationFraction: float +@typing.type_check_only +class GoogleCloudAiplatformV1beta1StreamRawPredictRequest( + typing_extensions.TypedDict, total=False +): + httpBody: GoogleApiHttpBody + @typing.type_check_only class GoogleCloudAiplatformV1beta1StreamingFetchFeatureValuesRequest( typing_extensions.TypedDict, total=False @@ -7739,6 +8109,17 @@ class GoogleCloudAiplatformV1beta1StreamingReadFeatureValuesRequest( class GoogleCloudAiplatformV1beta1StringArray(typing_extensions.TypedDict, total=False): values: _list[str] +@typing.type_check_only +class GoogleCloudAiplatformV1beta1StructFieldValue( + typing_extensions.TypedDict, total=False +): + name: str + value: GoogleCloudAiplatformV1beta1FeatureValue + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1StructValue(typing_extensions.TypedDict, total=False): + values: _list[GoogleCloudAiplatformV1beta1StructFieldValue] + @typing.type_check_only class GoogleCloudAiplatformV1beta1Study(typing_extensions.TypedDict, total=False): createTime: str @@ -8059,6 +8440,7 @@ class GoogleCloudAiplatformV1beta1SupervisedHyperParameters( "ADAPTER_SIZE_FOUR", "ADAPTER_SIZE_EIGHT", "ADAPTER_SIZE_SIXTEEN", + "ADAPTER_SIZE_THIRTY_TWO", ] epochCount: str learningRateMultiplier: float @@ -8068,6 +8450,7 @@ class GoogleCloudAiplatformV1beta1SupervisedTuningDataStats( typing_extensions.TypedDict, total=False ): totalBillableCharacterCount: str + totalBillableTokenCount: str totalTuningCharacterCount: str tuningDatasetExampleCount: str tuningStepCount: str @@ -8086,6 +8469,7 @@ class GoogleCloudAiplatformV1beta1SupervisedTuningDataStats( class GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistribution( typing_extensions.TypedDict, total=False ): + billableSum: str buckets: _list[ GoogleCloudAiplatformV1beta1SupervisedTuningDatasetDistributionDatasetBucket ] @@ -8173,6 +8557,8 @@ class GoogleCloudAiplatformV1beta1Tensorboard(typing_extensions.TypedDict, total labels: dict[str, typing.Any] name: str runCount: int + satisfiesPzi: bool + satisfiesPzs: bool updateTime: str @typing.type_check_only @@ -8282,12 +8668,14 @@ class GoogleCloudAiplatformV1beta1TimestampSplit( @typing.type_check_only class GoogleCloudAiplatformV1beta1TokensInfo(typing_extensions.TypedDict, total=False): + role: str tokenIds: _list[str] tokens: _list[str] @typing.type_check_only class GoogleCloudAiplatformV1beta1Tool(typing_extensions.TypedDict, total=False): functionDeclarations: _list[GoogleCloudAiplatformV1beta1FunctionDeclaration] + googleSearchRetrieval: GoogleCloudAiplatformV1beta1GoogleSearchRetrieval retrieval: GoogleCloudAiplatformV1beta1Retrieval @typing.type_check_only @@ -8529,6 +8917,7 @@ class GoogleCloudAiplatformV1beta1TunedModel(typing_extensions.TypedDict, total= class GoogleCloudAiplatformV1beta1TuningDataStats( typing_extensions.TypedDict, total=False ): + distillationDataStats: GoogleCloudAiplatformV1beta1DistillationDataStats supervisedTuningDataStats: GoogleCloudAiplatformV1beta1SupervisedTuningDataStats @typing.type_check_only @@ -8536,12 +8925,14 @@ class GoogleCloudAiplatformV1beta1TuningJob(typing_extensions.TypedDict, total=F baseModel: str createTime: str description: str + distillationSpec: GoogleCloudAiplatformV1beta1DistillationSpec encryptionSpec: GoogleCloudAiplatformV1beta1EncryptionSpec endTime: str error: GoogleRpcStatus experiment: str labels: dict[str, typing.Any] name: str + pipelineJob: str startTime: str state: typing_extensions.Literal[ "JOB_STATE_UNSPECIFIED", diff --git a/googleapiclient-stubs/_apis/airquality/__init__.pyi b/googleapiclient-stubs/_apis/airquality/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/airquality/v1/__init__.pyi b/googleapiclient-stubs/_apis/airquality/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/airquality/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/airquality/v1/resources.pyi b/googleapiclient-stubs/_apis/airquality/v1/resources.pyi new file mode 100644 index 00000000..eedf5cee --- /dev/null +++ b/googleapiclient-stubs/_apis/airquality/v1/resources.pyi @@ -0,0 +1,117 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class AirQualityResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class CurrentConditionsResource(googleapiclient.discovery.Resource): + def lookup( + self, *, body: LookupCurrentConditionsRequest = ..., **kwargs: typing.Any + ) -> LookupCurrentConditionsResponseHttpRequest: ... + + @typing.type_check_only + class ForecastResource(googleapiclient.discovery.Resource): + def lookup( + self, *, body: LookupForecastRequest = ..., **kwargs: typing.Any + ) -> LookupForecastResponseHttpRequest: ... + def lookup_next( + self, + previous_request: LookupForecastResponseHttpRequest, + previous_response: LookupForecastResponse, + ) -> LookupForecastResponseHttpRequest | None: ... + + @typing.type_check_only + class HistoryResource(googleapiclient.discovery.Resource): + def lookup( + self, *, body: LookupHistoryRequest = ..., **kwargs: typing.Any + ) -> LookupHistoryResponseHttpRequest: ... + def lookup_next( + self, + previous_request: LookupHistoryResponseHttpRequest, + previous_response: LookupHistoryResponse, + ) -> LookupHistoryResponseHttpRequest | None: ... + + @typing.type_check_only + class MapTypesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class HeatmapTilesResource(googleapiclient.discovery.Resource): + def lookupHeatmapTile( + self, + *, + mapType: typing_extensions.Literal[ + "MAP_TYPE_UNSPECIFIED", + "UAQI_RED_GREEN", + "UAQI_INDIGO_PERSIAN", + "PM25_INDIGO_PERSIAN", + "GBR_DEFRA", + "DEU_UBA", + "CAN_EC", + "FRA_ATMO", + "US_AQI", + ], + zoom: int, + x: int, + y: int, + **kwargs: typing.Any, + ) -> HttpBodyHttpRequest: ... + + def heatmapTiles(self) -> HeatmapTilesResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def currentConditions(self) -> CurrentConditionsResource: ... + def forecast(self) -> ForecastResource: ... + def history(self) -> HistoryResource: ... + def mapTypes(self) -> MapTypesResource: ... + +@typing.type_check_only +class HttpBodyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> HttpBody: ... + +@typing.type_check_only +class LookupCurrentConditionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LookupCurrentConditionsResponse: ... + +@typing.type_check_only +class LookupForecastResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LookupForecastResponse: ... + +@typing.type_check_only +class LookupHistoryResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LookupHistoryResponse: ... diff --git a/googleapiclient-stubs/_apis/airquality/v1/schemas.pyi b/googleapiclient-stubs/_apis/airquality/v1/schemas.pyi new file mode 100644 index 00000000..5a24f0b0 --- /dev/null +++ b/googleapiclient-stubs/_apis/airquality/v1/schemas.pyi @@ -0,0 +1,185 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class AdditionalInfo(typing_extensions.TypedDict, total=False): + effects: str + sources: str + +@typing.type_check_only +class AirQualityIndex(typing_extensions.TypedDict, total=False): + aqi: int + aqiDisplay: str + category: str + code: str + color: Color + displayName: str + dominantPollutant: str + +@typing.type_check_only +class Color(typing_extensions.TypedDict, total=False): + alpha: float + blue: float + green: float + red: float + +@typing.type_check_only +class Concentration(typing_extensions.TypedDict, total=False): + units: typing_extensions.Literal[ + "UNIT_UNSPECIFIED", "PARTS_PER_BILLION", "MICROGRAMS_PER_CUBIC_METER" + ] + value: float + +@typing.type_check_only +class CustomLocalAqi(typing_extensions.TypedDict, total=False): + aqi: str + regionCode: str + +@typing.type_check_only +class HealthRecommendations(typing_extensions.TypedDict, total=False): + athletes: str + children: str + elderly: str + generalPopulation: str + heartDiseasePopulation: str + lungDiseasePopulation: str + pregnantWomen: str + +@typing.type_check_only +class HourInfo(typing_extensions.TypedDict, total=False): + dateTime: str + healthRecommendations: HealthRecommendations + indexes: _list[AirQualityIndex] + pollutants: _list[Pollutant] + +@typing.type_check_only +class HourlyForecast(typing_extensions.TypedDict, total=False): + dateTime: str + healthRecommendations: HealthRecommendations + indexes: _list[AirQualityIndex] + pollutants: _list[Pollutant] + +@typing.type_check_only +class HttpBody(typing_extensions.TypedDict, total=False): + contentType: str + data: str + extensions: _list[dict[str, typing.Any]] + +@typing.type_check_only +class Interval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + +@typing.type_check_only +class LatLng(typing_extensions.TypedDict, total=False): + latitude: float + longitude: float + +@typing.type_check_only +class LookupCurrentConditionsRequest(typing_extensions.TypedDict, total=False): + customLocalAqis: _list[CustomLocalAqi] + extraComputations: _list[ + typing_extensions.Literal[ + "EXTRA_COMPUTATION_UNSPECIFIED", + "LOCAL_AQI", + "HEALTH_RECOMMENDATIONS", + "POLLUTANT_ADDITIONAL_INFO", + "DOMINANT_POLLUTANT_CONCENTRATION", + "POLLUTANT_CONCENTRATION", + ] + ] + languageCode: str + location: LatLng + uaqiColorPalette: typing_extensions.Literal[ + "COLOR_PALETTE_UNSPECIFIED", + "RED_GREEN", + "INDIGO_PERSIAN_DARK", + "INDIGO_PERSIAN_LIGHT", + ] + universalAqi: bool + +@typing.type_check_only +class LookupCurrentConditionsResponse(typing_extensions.TypedDict, total=False): + dateTime: str + healthRecommendations: HealthRecommendations + indexes: _list[AirQualityIndex] + pollutants: _list[Pollutant] + regionCode: str + +@typing.type_check_only +class LookupForecastRequest(typing_extensions.TypedDict, total=False): + customLocalAqis: _list[CustomLocalAqi] + dateTime: str + extraComputations: _list[ + typing_extensions.Literal[ + "EXTRA_COMPUTATION_UNSPECIFIED", + "LOCAL_AQI", + "HEALTH_RECOMMENDATIONS", + "POLLUTANT_ADDITIONAL_INFO", + "DOMINANT_POLLUTANT_CONCENTRATION", + "POLLUTANT_CONCENTRATION", + ] + ] + languageCode: str + location: LatLng + pageSize: int + pageToken: str + period: Interval + uaqiColorPalette: typing_extensions.Literal[ + "COLOR_PALETTE_UNSPECIFIED", + "RED_GREEN", + "INDIGO_PERSIAN_DARK", + "INDIGO_PERSIAN_LIGHT", + ] + universalAqi: bool + +@typing.type_check_only +class LookupForecastResponse(typing_extensions.TypedDict, total=False): + hourlyForecasts: _list[HourlyForecast] + nextPageToken: str + regionCode: str + +@typing.type_check_only +class LookupHistoryRequest(typing_extensions.TypedDict, total=False): + customLocalAqis: _list[CustomLocalAqi] + dateTime: str + extraComputations: _list[ + typing_extensions.Literal[ + "EXTRA_COMPUTATION_UNSPECIFIED", + "LOCAL_AQI", + "HEALTH_RECOMMENDATIONS", + "POLLUTANT_ADDITIONAL_INFO", + "DOMINANT_POLLUTANT_CONCENTRATION", + "POLLUTANT_CONCENTRATION", + ] + ] + hours: int + languageCode: str + location: LatLng + pageSize: int + pageToken: str + period: Interval + uaqiColorPalette: typing_extensions.Literal[ + "COLOR_PALETTE_UNSPECIFIED", + "RED_GREEN", + "INDIGO_PERSIAN_DARK", + "INDIGO_PERSIAN_LIGHT", + ] + universalAqi: bool + +@typing.type_check_only +class LookupHistoryResponse(typing_extensions.TypedDict, total=False): + hoursInfo: _list[HourInfo] + nextPageToken: str + regionCode: str + +@typing.type_check_only +class Pollutant(typing_extensions.TypedDict, total=False): + additionalInfo: AdditionalInfo + code: str + concentration: Concentration + displayName: str + fullName: str diff --git a/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi b/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi index e8cc689a..b49ced6a 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1/resources.pyi @@ -294,6 +294,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): body: RestoreClusterRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def switchover( + self, + *, + name: str, + body: SwitchoverClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def instances(self) -> InstancesResource: ... def users(self) -> UsersResource: ... diff --git a/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi b/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi index 699fd4b5..b28bed29 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1/schemas.pyi @@ -117,6 +117,10 @@ class Cluster(typing_extensions.TypedDict, total=False): "MAINTENANCE", "PROMOTING", ] + subscriptionType: typing_extensions.Literal[ + "SUBSCRIPTION_TYPE_UNSPECIFIED", "STANDARD", "TRIAL" + ] + trialMetadata: TrialMetadata uid: str updateTime: str @@ -495,6 +499,9 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed( "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", ] + observabilityMetricData: ( + StorageDatabasecenterPartnerapiV1mainObservabilityMetricData + ) recommendationSignalData: ( StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData ) @@ -550,9 +557,17 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -602,6 +617,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -664,13 +683,13 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( "SUB_RESOURCE_TYPE_OTHER", ] location: str + machineConfiguration: StorageDatabasecenterPartnerapiV1mainMachineConfiguration primaryResourceId: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId product: StorageDatabasecenterProtoCommonProduct resourceContainer: str resourceName: str updationTime: str userLabelSet: StorageDatabasecenterPartnerapiV1mainUserLabels - userLabels: dict[str, typing.Any] @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData( @@ -701,9 +720,17 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -753,6 +780,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] @typing.type_check_only @@ -764,6 +795,32 @@ class StorageDatabasecenterPartnerapiV1mainEntitlement( ] type: typing_extensions.Literal["ENTITLEMENT_TYPE_UNSPECIFIED", "GEMINI"] +@typing.type_check_only +class StorageDatabasecenterPartnerapiV1mainMachineConfiguration( + typing_extensions.TypedDict, total=False +): + cpuCount: int + memorySizeInBytes: str + +@typing.type_check_only +class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData( + typing_extensions.TypedDict, total=False +): + aggregationType: typing_extensions.Literal[ + "AGGREGATION_TYPE_UNSPECIFIED", "PEAK", "P99", "P95", "CURRENT" + ] + metricType: typing_extensions.Literal[ + "METRIC_TYPE_UNSPECIFIED", + "CPU_UTILIZATION", + "MEMORY_UTILIZATION", + "NETWORK_CONNECTIONS", + "STORAGE_UTILIZATION", + "STORAGE_USED_BYTES", + ] + observationTime: str + resourceName: str + value: StorageDatabasecenterProtoCommonTypedValue + @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainOperationError( typing_extensions.TypedDict, total=False @@ -829,6 +886,15 @@ class StorageDatabasecenterProtoCommonProduct(typing_extensions.TypedDict, total ] version: str +@typing.type_check_only +class StorageDatabasecenterProtoCommonTypedValue( + typing_extensions.TypedDict, total=False +): + boolValue: bool + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class StringRestrictions(typing_extensions.TypedDict, total=False): allowedValues: _list[str] @@ -850,10 +916,21 @@ class SupportedDatabaseFlag(typing_extensions.TypedDict, total=False): "VALUE_TYPE_UNSPECIFIED", "STRING", "INTEGER", "FLOAT", "NONE" ] +@typing.type_check_only +class SwitchoverClusterRequest(typing_extensions.TypedDict, total=False): + requestId: str + validateOnly: bool + @typing.type_check_only class TimeBasedRetention(typing_extensions.TypedDict, total=False): retentionPeriod: str +@typing.type_check_only +class TrialMetadata(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + upgradeTime: str + @typing.type_check_only class User(typing_extensions.TypedDict, total=False): databaseRoles: _list[str] diff --git a/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi index e8cc689a..b49ced6a 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1alpha/resources.pyi @@ -294,6 +294,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): body: RestoreClusterRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def switchover( + self, + *, + name: str, + body: SwitchoverClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def instances(self) -> InstancesResource: ... def users(self) -> UsersResource: ... diff --git a/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi index 99856031..b7d6ac95 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1alpha/schemas.pyi @@ -26,7 +26,11 @@ class Backup(typing_extensions.TypedDict, total=False): clusterUid: str createTime: str databaseVersion: typing_extensions.Literal[ - "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", "POSTGRES_15" + "DATABASE_VERSION_UNSPECIFIED", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", ] deleteTime: str description: str @@ -85,7 +89,11 @@ class Cluster(typing_extensions.TypedDict, total=False): continuousBackupInfo: ContinuousBackupInfo createTime: str databaseVersion: typing_extensions.Literal[ - "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", "POSTGRES_15" + "DATABASE_VERSION_UNSPECIFIED", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", ] deleteTime: str displayName: str @@ -120,6 +128,10 @@ class Cluster(typing_extensions.TypedDict, total=False): "MAINTENANCE", "PROMOTING", ] + subscriptionType: typing_extensions.Literal[ + "SUBSCRIPTION_TYPE_UNSPECIFIED", "STANDARD", "TRIAL" + ] + trialMetadata: TrialMetadata uid: str updateTime: str @@ -240,6 +252,7 @@ class Instance(typing_extensions.TypedDict, total=False): networkConfig: InstanceNetworkConfig nodes: _list[Node] observabilityConfig: ObservabilityInstanceConfig + outboundPublicIpAddresses: _list[str] pscInstanceConfig: PscInstanceConfig publicIpAddress: str queryInsightsConfig: QueryInsightsInstanceConfig @@ -266,6 +279,7 @@ class Instance(typing_extensions.TypedDict, total=False): @typing.type_check_only class InstanceNetworkConfig(typing_extensions.TypedDict, total=False): authorizedExternalNetworks: _list[AuthorizedNetwork] + enableOutboundPublicIp: bool enablePublicIp: bool @typing.type_check_only @@ -523,6 +537,9 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed( "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", ] + observabilityMetricData: ( + StorageDatabasecenterPartnerapiV1mainObservabilityMetricData + ) recommendationSignalData: ( StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData ) @@ -578,9 +595,17 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -630,6 +655,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -692,13 +721,13 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( "SUB_RESOURCE_TYPE_OTHER", ] location: str + machineConfiguration: StorageDatabasecenterPartnerapiV1mainMachineConfiguration primaryResourceId: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId product: StorageDatabasecenterProtoCommonProduct resourceContainer: str resourceName: str updationTime: str userLabelSet: StorageDatabasecenterPartnerapiV1mainUserLabels - userLabels: dict[str, typing.Any] @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData( @@ -729,9 +758,17 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -781,6 +818,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] @typing.type_check_only @@ -792,6 +833,32 @@ class StorageDatabasecenterPartnerapiV1mainEntitlement( ] type: typing_extensions.Literal["ENTITLEMENT_TYPE_UNSPECIFIED", "GEMINI"] +@typing.type_check_only +class StorageDatabasecenterPartnerapiV1mainMachineConfiguration( + typing_extensions.TypedDict, total=False +): + cpuCount: int + memorySizeInBytes: str + +@typing.type_check_only +class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData( + typing_extensions.TypedDict, total=False +): + aggregationType: typing_extensions.Literal[ + "AGGREGATION_TYPE_UNSPECIFIED", "PEAK", "P99", "P95", "CURRENT" + ] + metricType: typing_extensions.Literal[ + "METRIC_TYPE_UNSPECIFIED", + "CPU_UTILIZATION", + "MEMORY_UTILIZATION", + "NETWORK_CONNECTIONS", + "STORAGE_UTILIZATION", + "STORAGE_USED_BYTES", + ] + observationTime: str + resourceName: str + value: StorageDatabasecenterProtoCommonTypedValue + @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainOperationError( typing_extensions.TypedDict, total=False @@ -857,6 +924,15 @@ class StorageDatabasecenterProtoCommonProduct(typing_extensions.TypedDict, total ] version: str +@typing.type_check_only +class StorageDatabasecenterProtoCommonTypedValue( + typing_extensions.TypedDict, total=False +): + boolValue: bool + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class StringRestrictions(typing_extensions.TypedDict, total=False): allowedValues: _list[str] @@ -871,17 +947,32 @@ class SupportedDatabaseFlag(typing_extensions.TypedDict, total=False): stringRestrictions: StringRestrictions supportedDbVersions: _list[ typing_extensions.Literal[ - "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", "POSTGRES_15" + "DATABASE_VERSION_UNSPECIFIED", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", ] ] valueType: typing_extensions.Literal[ "VALUE_TYPE_UNSPECIFIED", "STRING", "INTEGER", "FLOAT", "NONE" ] +@typing.type_check_only +class SwitchoverClusterRequest(typing_extensions.TypedDict, total=False): + requestId: str + validateOnly: bool + @typing.type_check_only class TimeBasedRetention(typing_extensions.TypedDict, total=False): retentionPeriod: str +@typing.type_check_only +class TrialMetadata(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + upgradeTime: str + @typing.type_check_only class UpdatePolicy(typing_extensions.TypedDict, total=False): mode: typing_extensions.Literal["MODE_UNSPECIFIED", "DEFAULT", "FORCE_APPLY"] diff --git a/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi b/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi index ee032534..a3f5b025 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1beta/resources.pyi @@ -294,6 +294,13 @@ class CloudAlloyDBAdminResource(googleapiclient.discovery.Resource): body: RestoreClusterRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def switchover( + self, + *, + name: str, + body: SwitchoverClusterRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def instances(self) -> InstancesResource: ... def users(self) -> UsersResource: ... diff --git a/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi index f7fdd9e6..7ef0354f 100644 --- a/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/alloydb/v1beta/schemas.pyi @@ -26,7 +26,11 @@ class Backup(typing_extensions.TypedDict, total=False): clusterUid: str createTime: str databaseVersion: typing_extensions.Literal[ - "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", "POSTGRES_15" + "DATABASE_VERSION_UNSPECIFIED", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", ] deleteTime: str description: str @@ -81,7 +85,11 @@ class Cluster(typing_extensions.TypedDict, total=False): continuousBackupInfo: ContinuousBackupInfo createTime: str databaseVersion: typing_extensions.Literal[ - "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", "POSTGRES_15" + "DATABASE_VERSION_UNSPECIFIED", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", ] deleteTime: str displayName: str @@ -115,6 +123,10 @@ class Cluster(typing_extensions.TypedDict, total=False): "MAINTENANCE", "PROMOTING", ] + subscriptionType: typing_extensions.Literal[ + "SUBSCRIPTION_TYPE_UNSPECIFIED", "STANDARD", "TRIAL" + ] + trialMetadata: TrialMetadata uid: str updateTime: str @@ -235,6 +247,7 @@ class Instance(typing_extensions.TypedDict, total=False): networkConfig: InstanceNetworkConfig nodes: _list[Node] observabilityConfig: ObservabilityInstanceConfig + outboundPublicIpAddresses: _list[str] pscInstanceConfig: PscInstanceConfig publicIpAddress: str queryInsightsConfig: QueryInsightsInstanceConfig @@ -260,6 +273,7 @@ class Instance(typing_extensions.TypedDict, total=False): @typing.type_check_only class InstanceNetworkConfig(typing_extensions.TypedDict, total=False): authorizedExternalNetworks: _list[AuthorizedNetwork] + enableOutboundPublicIp: bool enablePublicIp: bool @typing.type_check_only @@ -517,6 +531,9 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed( "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", ] + observabilityMetricData: ( + StorageDatabasecenterPartnerapiV1mainObservabilityMetricData + ) recommendationSignalData: ( StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData ) @@ -572,9 +589,17 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -624,6 +649,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData( "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -686,13 +715,13 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata( "SUB_RESOURCE_TYPE_OTHER", ] location: str + machineConfiguration: StorageDatabasecenterPartnerapiV1mainMachineConfiguration primaryResourceId: StorageDatabasecenterPartnerapiV1mainDatabaseResourceId product: StorageDatabasecenterProtoCommonProduct resourceContainer: str resourceName: str updationTime: str userLabelSet: StorageDatabasecenterPartnerapiV1mainUserLabels - userLabels: dict[str, typing.Any] @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalData( @@ -723,9 +752,17 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -775,6 +812,10 @@ class StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSignalD "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] @typing.type_check_only @@ -786,6 +827,32 @@ class StorageDatabasecenterPartnerapiV1mainEntitlement( ] type: typing_extensions.Literal["ENTITLEMENT_TYPE_UNSPECIFIED", "GEMINI"] +@typing.type_check_only +class StorageDatabasecenterPartnerapiV1mainMachineConfiguration( + typing_extensions.TypedDict, total=False +): + cpuCount: int + memorySizeInBytes: str + +@typing.type_check_only +class StorageDatabasecenterPartnerapiV1mainObservabilityMetricData( + typing_extensions.TypedDict, total=False +): + aggregationType: typing_extensions.Literal[ + "AGGREGATION_TYPE_UNSPECIFIED", "PEAK", "P99", "P95", "CURRENT" + ] + metricType: typing_extensions.Literal[ + "METRIC_TYPE_UNSPECIFIED", + "CPU_UTILIZATION", + "MEMORY_UTILIZATION", + "NETWORK_CONNECTIONS", + "STORAGE_UTILIZATION", + "STORAGE_USED_BYTES", + ] + observationTime: str + resourceName: str + value: StorageDatabasecenterProtoCommonTypedValue + @typing.type_check_only class StorageDatabasecenterPartnerapiV1mainOperationError( typing_extensions.TypedDict, total=False @@ -851,6 +918,15 @@ class StorageDatabasecenterProtoCommonProduct(typing_extensions.TypedDict, total ] version: str +@typing.type_check_only +class StorageDatabasecenterProtoCommonTypedValue( + typing_extensions.TypedDict, total=False +): + boolValue: bool + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class StringRestrictions(typing_extensions.TypedDict, total=False): allowedValues: _list[str] @@ -865,17 +941,32 @@ class SupportedDatabaseFlag(typing_extensions.TypedDict, total=False): stringRestrictions: StringRestrictions supportedDbVersions: _list[ typing_extensions.Literal[ - "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", "POSTGRES_15" + "DATABASE_VERSION_UNSPECIFIED", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", ] ] valueType: typing_extensions.Literal[ "VALUE_TYPE_UNSPECIFIED", "STRING", "INTEGER", "FLOAT", "NONE" ] +@typing.type_check_only +class SwitchoverClusterRequest(typing_extensions.TypedDict, total=False): + requestId: str + validateOnly: bool + @typing.type_check_only class TimeBasedRetention(typing_extensions.TypedDict, total=False): retentionPeriod: str +@typing.type_check_only +class TrialMetadata(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + upgradeTime: str + @typing.type_check_only class UpdatePolicy(typing_extensions.TypedDict, total=False): mode: typing_extensions.Literal["MODE_UNSPECIFIED", "DEFAULT", "FORCE_APPLY"] diff --git a/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/resources.pyi index dacfc908..6b90696b 100644 --- a/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/resources.pyi @@ -310,6 +310,16 @@ class GoogleAnalyticsAdminResource(googleapiclient.discovery.Resource): @typing.type_check_only class BigQueryLinksResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleAnalyticsAdminV1alphaBigQueryLink = ..., + **kwargs: typing.Any, + ) -> GoogleAnalyticsAdminV1alphaBigQueryLinkHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleAnalyticsAdminV1alphaBigQueryLinkHttpRequest: ... @@ -328,6 +338,14 @@ class GoogleAnalyticsAdminResource(googleapiclient.discovery.Resource): ) -> ( GoogleAnalyticsAdminV1alphaListBigQueryLinksResponseHttpRequest | None ): ... + def patch( + self, + *, + name: str, + body: GoogleAnalyticsAdminV1alphaBigQueryLink = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleAnalyticsAdminV1alphaBigQueryLinkHttpRequest: ... @typing.type_check_only class CalculatedMetricsResource(googleapiclient.discovery.Resource): @@ -582,6 +600,55 @@ class GoogleAnalyticsAdminResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleAnalyticsAdminV1alphaEventCreateRuleHttpRequest: ... + @typing.type_check_only + class EventEditRulesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleAnalyticsAdminV1alphaEventEditRule = ..., + **kwargs: typing.Any, + ) -> GoogleAnalyticsAdminV1alphaEventEditRuleHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleAnalyticsAdminV1alphaEventEditRuleHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleAnalyticsAdminV1alphaListEventEditRulesResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleAnalyticsAdminV1alphaListEventEditRulesResponseHttpRequest, + previous_response: GoogleAnalyticsAdminV1alphaListEventEditRulesResponse, + ) -> ( + GoogleAnalyticsAdminV1alphaListEventEditRulesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleAnalyticsAdminV1alphaEventEditRule = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleAnalyticsAdminV1alphaEventEditRuleHttpRequest: ... + def reorder( + self, + *, + parent: str, + body: GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleProtobufEmptyHttpRequest: ... + @typing.type_check_only class MeasurementProtocolSecretsResource( googleapiclient.discovery.Resource @@ -734,6 +801,7 @@ class GoogleAnalyticsAdminResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettingsHttpRequest: ... def eventCreateRules(self) -> EventCreateRulesResource: ... + def eventEditRules(self) -> EventEditRulesResource: ... def measurementProtocolSecrets( self, ) -> MeasurementProtocolSecretsResource: ... @@ -1119,12 +1187,6 @@ class GoogleAnalyticsAdminResource(googleapiclient.discovery.Resource): body: GoogleAnalyticsAdminV1alphaCreateRollupPropertyRequest = ..., **kwargs: typing.Any, ) -> GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponseHttpRequest: ... - def createSubproperty( - self, - *, - body: GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest = ..., - **kwargs: typing.Any, - ) -> GoogleAnalyticsAdminV1alphaCreateSubpropertyResponseHttpRequest: ... def delete( self, *, name: str, **kwargs: typing.Any ) -> GoogleAnalyticsAdminV1alphaPropertyHttpRequest: ... @@ -1185,6 +1247,12 @@ class GoogleAnalyticsAdminResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleAnalyticsAdminV1alphaPropertyHttpRequest: ... + def provisionSubproperty( + self, + *, + body: GoogleAnalyticsAdminV1alphaProvisionSubpropertyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleAnalyticsAdminV1alphaProvisionSubpropertyResponseHttpRequest: ... def runAccessReport( self, *, @@ -1420,16 +1488,6 @@ class GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponseHttpRequest( num_retries: int = 0, ) -> GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse: ... -@typing.type_check_only -class GoogleAnalyticsAdminV1alphaCreateSubpropertyResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse: ... - @typing.type_check_only class GoogleAnalyticsAdminV1alphaCustomDimensionHttpRequest( googleapiclient.http.HttpRequest @@ -1530,6 +1588,16 @@ class GoogleAnalyticsAdminV1alphaEventCreateRuleHttpRequest( num_retries: int = 0, ) -> GoogleAnalyticsAdminV1alphaEventCreateRule: ... +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaEventEditRuleHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleAnalyticsAdminV1alphaEventEditRule: ... + @typing.type_check_only class GoogleAnalyticsAdminV1alphaExpandedDataSetHttpRequest( googleapiclient.http.HttpRequest @@ -1770,6 +1838,16 @@ class GoogleAnalyticsAdminV1alphaListEventCreateRulesResponseHttpRequest( num_retries: int = 0, ) -> GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse: ... +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaListEventEditRulesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleAnalyticsAdminV1alphaListEventEditRulesResponse: ... + @typing.type_check_only class GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1898,6 +1976,16 @@ class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponseHttpRequest( num_retries: int = 0, ) -> GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse: ... +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaProvisionSubpropertyResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleAnalyticsAdminV1alphaProvisionSubpropertyResponse: ... + @typing.type_check_only class GoogleAnalyticsAdminV1alphaRollupPropertySourceLinkHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi index b8a642dd..c5666a0b 100644 --- a/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticsadmin/v1alpha/schemas.pyi @@ -458,6 +458,7 @@ class GoogleAnalyticsAdminV1alphaBatchUpdateAccessBindingsResponse( class GoogleAnalyticsAdminV1alphaBigQueryLink(typing_extensions.TypedDict, total=False): createTime: str dailyExportEnabled: bool + datasetLocation: str excludedEvents: _list[str] exportStreams: _list[str] freshDailyExportEnabled: bool @@ -697,20 +698,6 @@ class GoogleAnalyticsAdminV1alphaCreateRollupPropertyResponse( GoogleAnalyticsAdminV1alphaRollupPropertySourceLink ] -@typing.type_check_only -class GoogleAnalyticsAdminV1alphaCreateSubpropertyRequest( - typing_extensions.TypedDict, total=False -): - subproperty: GoogleAnalyticsAdminV1alphaProperty - subpropertyEventFilter: GoogleAnalyticsAdminV1alphaSubpropertyEventFilter - -@typing.type_check_only -class GoogleAnalyticsAdminV1alphaCreateSubpropertyResponse( - typing_extensions.TypedDict, total=False -): - subproperty: GoogleAnalyticsAdminV1alphaProperty - subpropertyEventFilter: GoogleAnalyticsAdminV1alphaSubpropertyEventFilter - @typing.type_check_only class GoogleAnalyticsAdminV1alphaCustomDimension( typing_extensions.TypedDict, total=False @@ -886,6 +873,16 @@ class GoogleAnalyticsAdminV1alphaEventCreateRule( parameterMutations: _list[GoogleAnalyticsAdminV1alphaParameterMutation] sourceCopyParameters: bool +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaEventEditRule( + typing_extensions.TypedDict, total=False +): + displayName: str + eventConditions: _list[GoogleAnalyticsAdminV1alphaMatchingCondition] + name: str + parameterMutations: _list[GoogleAnalyticsAdminV1alphaParameterMutation] + processingOrder: str + @typing.type_check_only class GoogleAnalyticsAdminV1alphaEventMapping(typing_extensions.TypedDict, total=False): eventName: str @@ -1169,6 +1166,13 @@ class GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse( eventCreateRules: _list[GoogleAnalyticsAdminV1alphaEventCreateRule] nextPageToken: str +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaListEventEditRulesResponse( + typing_extensions.TypedDict, total=False +): + eventEditRules: _list[GoogleAnalyticsAdminV1alphaEventEditRule] + nextPageToken: str + @typing.type_check_only class GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse( typing_extensions.TypedDict, total=False @@ -1375,6 +1379,26 @@ class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse( ): accountTicketId: str +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaProvisionSubpropertyRequest( + typing_extensions.TypedDict, total=False +): + subproperty: GoogleAnalyticsAdminV1alphaProperty + subpropertyEventFilter: GoogleAnalyticsAdminV1alphaSubpropertyEventFilter + +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaProvisionSubpropertyResponse( + typing_extensions.TypedDict, total=False +): + subproperty: GoogleAnalyticsAdminV1alphaProperty + subpropertyEventFilter: GoogleAnalyticsAdminV1alphaSubpropertyEventFilter + +@typing.type_check_only +class GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest( + typing_extensions.TypedDict, total=False +): + eventEditRules: _list[str] + @typing.type_check_only class GoogleAnalyticsAdminV1alphaRollupPropertySourceLink( typing_extensions.TypedDict, total=False @@ -1466,6 +1490,7 @@ class GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest( "ATTRIBUTION_SETTINGS", "EXPANDED_DATA_SET", "CHANNEL_GROUP", + "BIGQUERY_LINK", "ENHANCED_MEASUREMENT_SETTINGS", "DATA_REDACTION_SETTINGS", "SKADNETWORK_CONVERSION_VALUE_SCHEMA", diff --git a/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi b/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi index 313181be..93a12ffb 100644 --- a/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticshub/v1/schemas.pyi @@ -4,6 +4,11 @@ import typing_extensions _list = list +@typing.type_check_only +class AnalyticsHubSubscriptionInfo(typing_extensions.TypedDict, total=False): + listing: str + subscription: str + @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] @@ -16,6 +21,28 @@ class AuditLogConfig(typing_extensions.TypedDict, total=False): "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" ] +@typing.type_check_only +class AvroConfig(typing_extensions.TypedDict, total=False): + useTopicSchema: bool + writeMetadata: bool + +@typing.type_check_only +class BigQueryConfig(typing_extensions.TypedDict, total=False): + dropUnknownFields: bool + serviceAccountEmail: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "PERMISSION_DENIED", + "NOT_FOUND", + "SCHEMA_MISMATCH", + "IN_TRANSIT_LOCATION_RESTRICTION", + ] + table: str + useTableSchema: bool + useTopicSchema: bool + writeMetadata: bool + @typing.type_check_only class BigQueryDatasetSource(typing_extensions.TypedDict, total=False): dataset: str @@ -28,9 +55,33 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class CloudStorageConfig(typing_extensions.TypedDict, total=False): + avroConfig: AvroConfig + bucket: str + filenameDatetimeFormat: str + filenamePrefix: str + filenameSuffix: str + maxBytes: str + maxDuration: str + maxMessages: str + serviceAccountEmail: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "ACTIVE", + "PERMISSION_DENIED", + "NOT_FOUND", + "IN_TRANSIT_LOCATION_RESTRICTION", + "SCHEMA_MISMATCH", + ] + textConfig: TextConfig + @typing.type_check_only class DataExchange(typing_extensions.TypedDict, total=False): description: str + discoveryType: typing_extensions.Literal[ + "DISCOVERY_TYPE_UNSPECIFIED", "DISCOVERY_TYPE_PRIVATE", "DISCOVERY_TYPE_PUBLIC" + ] displayName: str documentation: str icon: str @@ -49,6 +100,11 @@ class DcrExchangeConfig(typing_extensions.TypedDict, total=False): singleLinkedDatasetPerCleanroom: bool singleSelectedResourceSharingRestriction: bool +@typing.type_check_only +class DeadLetterPolicy(typing_extensions.TypedDict, total=False): + deadLetterTopic: str + maxDeliveryAttempts: int + @typing.type_check_only class DefaultExchangeConfig(typing_extensions.TypedDict, total=False): ... @@ -65,9 +121,17 @@ class DestinationDatasetReference(typing_extensions.TypedDict, total=False): datasetId: str projectId: str +@typing.type_check_only +class DestinationPubSubSubscription(typing_extensions.TypedDict, total=False): + pubsubSubscription: GooglePubsubV1Subscription + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class ExpirationPolicy(typing_extensions.TypedDict, total=False): + ttl: str + @typing.type_check_only class Expr(typing_extensions.TypedDict, total=False): description: str @@ -83,9 +147,32 @@ class GetIamPolicyRequest(typing_extensions.TypedDict, total=False): class GetPolicyOptions(typing_extensions.TypedDict, total=False): requestedPolicyVersion: int +@typing.type_check_only +class GooglePubsubV1Subscription(typing_extensions.TypedDict, total=False): + ackDeadlineSeconds: int + analyticsHubSubscriptionInfo: AnalyticsHubSubscriptionInfo + bigqueryConfig: BigQueryConfig + cloudStorageConfig: CloudStorageConfig + deadLetterPolicy: DeadLetterPolicy + detached: bool + enableExactlyOnceDelivery: bool + enableMessageOrdering: bool + expirationPolicy: ExpirationPolicy + filter: str + labels: dict[str, typing.Any] + messageRetentionDuration: str + name: str + pushConfig: PushConfig + retainAckedMessages: bool + retryPolicy: RetryPolicy + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOURCE_ERROR"] + topicMessageRetentionDuration: str + @typing.type_check_only class LinkedResource(typing_extensions.TypedDict, total=False): linkedDataset: str + linkedPubsubSubscription: str + listing: str @typing.type_check_only class ListDataExchangesResponse(typing_extensions.TypedDict, total=False): @@ -141,16 +228,32 @@ class Listing(typing_extensions.TypedDict, total=False): ] dataProvider: DataProvider description: str + discoveryType: typing_extensions.Literal[ + "DISCOVERY_TYPE_UNSPECIFIED", "DISCOVERY_TYPE_PRIVATE", "DISCOVERY_TYPE_PUBLIC" + ] displayName: str documentation: str icon: str name: str primaryContact: str publisher: Publisher + pubsubTopic: PubSubTopicSource requestAccess: str + resourceType: typing_extensions.Literal[ + "SHARED_RESOURCE_TYPE_UNSPECIFIED", "BIGQUERY_DATASET", "PUBSUB_TOPIC" + ] restrictedExportConfig: RestrictedExportConfig state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE"] +@typing.type_check_only +class NoWrapper(typing_extensions.TypedDict, total=False): + writeMetadata: bool + +@typing.type_check_only +class OidcToken(typing_extensions.TypedDict, total=False): + audience: str + serviceAccountEmail: str + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -176,11 +279,27 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class PubSubTopicSource(typing_extensions.TypedDict, total=False): + dataAffinityRegions: _list[str] + topic: str + @typing.type_check_only class Publisher(typing_extensions.TypedDict, total=False): name: str primaryContact: str +@typing.type_check_only +class PubsubWrapper(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class PushConfig(typing_extensions.TypedDict, total=False): + attributes: dict[str, typing.Any] + noWrapper: NoWrapper + oidcToken: OidcToken + pubsubWrapper: PubsubWrapper + pushEndpoint: str + @typing.type_check_only class RefreshSubscriptionRequest(typing_extensions.TypedDict, total=False): ... @@ -200,6 +319,11 @@ class RestrictedExportPolicy(typing_extensions.TypedDict, total=False): restrictDirectTableAccess: bool restrictQueryResult: bool +@typing.type_check_only +class RetryPolicy(typing_extensions.TypedDict, total=False): + maximumBackoff: str + minimumBackoff: str + @typing.type_check_only class RevokeSubscriptionRequest(typing_extensions.TypedDict, total=False): ... @@ -239,6 +363,7 @@ class SubscribeDataExchangeResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class SubscribeListingRequest(typing_extensions.TypedDict, total=False): destinationDataset: DestinationDataset + destinationPubsubSubscription: DestinationPubSubSubscription @typing.type_check_only class SubscribeListingResponse(typing_extensions.TypedDict, total=False): @@ -250,10 +375,14 @@ class Subscription(typing_extensions.TypedDict, total=False): dataExchange: str lastModifyTime: str linkedDatasetMap: dict[str, typing.Any] + linkedResources: _list[LinkedResource] listing: str name: str organizationDisplayName: str organizationId: str + resourceType: typing_extensions.Literal[ + "SHARED_RESOURCE_TYPE_UNSPECIFIED", "BIGQUERY_DATASET", "PUBSUB_TOPIC" + ] state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "STATE_ACTIVE", "STATE_STALE", "STATE_INACTIVE" ] @@ -266,3 +395,6 @@ class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): permissions: _list[str] + +@typing.type_check_only +class TextConfig(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi index e69d3255..ae12e436 100644 --- a/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/analyticshub/v1beta1/schemas.pyi @@ -75,6 +75,8 @@ class GetPolicyOptions(typing_extensions.TypedDict, total=False): @typing.type_check_only class LinkedResource(typing_extensions.TypedDict, total=False): linkedDataset: str + linkedPubsubSubscription: str + listing: str @typing.type_check_only class ListDataExchangesResponse(typing_extensions.TypedDict, total=False): @@ -184,10 +186,14 @@ class Subscription(typing_extensions.TypedDict, total=False): dataExchange: str lastModifyTime: str linkedDatasetMap: dict[str, typing.Any] + linkedResources: _list[LinkedResource] listing: str name: str organizationDisplayName: str organizationId: str + resourceType: typing_extensions.Literal[ + "SHARED_RESOURCE_TYPE_UNSPECIFIED", "BIGQUERY_DATASET", "PUBSUB_TOPIC" + ] state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "STATE_ACTIVE", "STATE_STALE", "STATE_INACTIVE" ] diff --git a/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi b/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi index d1638002..bbe4aaac 100644 --- a/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/androidenterprise/v1/resources.pyi @@ -79,7 +79,7 @@ class AndroidEnterpriseResource(googleapiclient.discovery.Resource): self, *, token: str, body: Enterprise = ..., **kwargs: typing.Any ) -> EnterpriseHttpRequest: ... def generateSignupUrl( - self, *, callbackUrl: str = ..., **kwargs: typing.Any + self, *, adminEmail: str = ..., callbackUrl: str = ..., **kwargs: typing.Any ) -> SignupInfoHttpRequest: ... def get( self, *, enterpriseId: str, **kwargs: typing.Any diff --git a/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi index be874010..2d42a4f6 100644 --- a/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/androidmanagement/v1/schemas.pyi @@ -192,6 +192,11 @@ class ApplicationPolicy(typing_extensions.TypedDict, total=False): minimumVersionCode: int packageName: str permissionGrants: _list[PermissionGrant] + userControlSettings: typing_extensions.Literal[ + "USER_CONTROL_SETTINGS_UNSPECIFIED", + "USER_CONTROL_ALLOWED", + "USER_CONTROL_DISALLOWED", + ] workProfileWidgets: typing_extensions.Literal[ "WORK_PROFILE_WIDGETS_UNSPECIFIED", "WORK_PROFILE_WIDGETS_ALLOWED", @@ -529,6 +534,11 @@ class Display(typing_extensions.TypedDict, total=False): ] width: int +@typing.type_check_only +class DisplaySettings(typing_extensions.TypedDict, total=False): + screenBrightnessSettings: ScreenBrightnessSettings + screenTimeoutSettings: ScreenTimeoutSettings + @typing.type_check_only class DnsEvent(typing_extensions.TypedDict, total=False): hostname: str @@ -554,6 +564,7 @@ class EnrollmentToken(typing_extensions.TypedDict, total=False): "ALLOW_PERSONAL_USAGE_UNSPECIFIED", "PERSONAL_USAGE_ALLOWED", "PERSONAL_USAGE_DISALLOWED", + "PERSONAL_USAGE_DISALLOWED_USERLESS", ] duration: str expirationTimestamp: str @@ -579,6 +590,7 @@ class Enterprise(typing_extensions.TypedDict, total=False): ] ] enterpriseDisplayName: str + googleAuthenticationSettings: GoogleAuthenticationSettings logo: ExternalData name: str primaryColor: int @@ -609,6 +621,12 @@ class FreezePeriod(typing_extensions.TypedDict, total=False): endDate: Date startDate: Date +@typing.type_check_only +class GoogleAuthenticationSettings(typing_extensions.TypedDict, total=False): + googleAuthenticationRequired: typing_extensions.Literal[ + "GOOGLE_AUTHENTICATION_REQUIRED_UNSPECIFIED", "NOT_REQUIRED", "REQUIRED" + ] + @typing.type_check_only class HardwareInfo(typing_extensions.TypedDict, total=False): batteryShutdownTemperatures: _list[float] @@ -1117,6 +1135,7 @@ class Policy(typing_extensions.TypedDict, total=False): deviceConnectivityManagement: DeviceConnectivityManagement deviceOwnerLockScreenInfo: UserFacingMessage deviceRadioState: DeviceRadioState + displaySettings: DisplaySettings encryptionPolicy: typing_extensions.Literal[ "ENCRYPTION_POLICY_UNSPECIFIED", "ENABLED_WITHOUT_PASSWORD", @@ -1260,6 +1279,7 @@ class PowerManagementEvent(typing_extensions.TypedDict, total=False): @typing.type_check_only class ProvisioningInfo(typing_extensions.TypedDict, total=False): apiLevel: int + authenticatedUserEmail: str brand: str enterprise: str imei: str @@ -1287,6 +1307,25 @@ class RemoteLockEvent(typing_extensions.TypedDict, total=False): adminUserId: int targetUserId: int +@typing.type_check_only +class ScreenBrightnessSettings(typing_extensions.TypedDict, total=False): + screenBrightness: int + screenBrightnessMode: typing_extensions.Literal[ + "SCREEN_BRIGHTNESS_MODE_UNSPECIFIED", + "BRIGHTNESS_USER_CHOICE", + "BRIGHTNESS_AUTOMATIC", + "BRIGHTNESS_FIXED", + ] + +@typing.type_check_only +class ScreenTimeoutSettings(typing_extensions.TypedDict, total=False): + screenTimeout: str + screenTimeoutMode: typing_extensions.Literal[ + "SCREEN_TIMEOUT_MODE_UNSPECIFIED", + "SCREEN_TIMEOUT_USER_CHOICE", + "SCREEN_TIMEOUT_ENFORCED", + ] + @typing.type_check_only class SecurityPosture(typing_extensions.TypedDict, total=False): devicePosture: typing_extensions.Literal[ @@ -1306,6 +1345,12 @@ class SigninDetail(typing_extensions.TypedDict, total=False): "ALLOW_PERSONAL_USAGE_UNSPECIFIED", "PERSONAL_USAGE_ALLOWED", "PERSONAL_USAGE_DISALLOWED", + "PERSONAL_USAGE_DISALLOWED_USERLESS", + ] + defaultStatus: typing_extensions.Literal[ + "SIGNIN_DETAIL_DEFAULT_STATUS_UNSPECIFIED", + "SIGNIN_DETAIL_IS_DEFAULT", + "SIGNIN_DETAIL_IS_NOT_DEFAULT", ] qrCode: str signinEnrollmentToken: str diff --git a/googleapiclient-stubs/_apis/androidpublisher/v3/resources.pyi b/googleapiclient-stubs/_apis/androidpublisher/v3/resources.pyi index 108e34a4..42124142 100644 --- a/googleapiclient-stubs/_apis/androidpublisher/v3/resources.pyi +++ b/googleapiclient-stubs/_apis/androidpublisher/v3/resources.pyi @@ -61,9 +61,6 @@ class AndroidPublisherResource(googleapiclient.discovery.Resource): body: AddTargetingRequest = ..., **kwargs: typing.Any, ) -> AddTargetingResponseHttpRequest: ... - def appRecoveries( - self, *, packageName: str, versionCode: str = ..., **kwargs: typing.Any - ) -> ListAppRecoveriesResponseHttpRequest: ... def cancel( self, *, @@ -87,6 +84,9 @@ class AndroidPublisherResource(googleapiclient.discovery.Resource): body: DeployAppRecoveryRequest = ..., **kwargs: typing.Any, ) -> DeployAppRecoveryResponseHttpRequest: ... + def list( + self, *, packageName: str, versionCode: str = ..., **kwargs: typing.Any + ) -> ListAppRecoveriesResponseHttpRequest: ... @typing.type_check_only class EditsResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi b/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi index 528f3bde..d1c04ec3 100644 --- a/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/androidpublisher/v3/schemas.pyi @@ -477,6 +477,7 @@ class ExternalTransaction(typing_extensions.TypedDict, total=False): packageName: str recurringTransaction: RecurringExternalTransaction testPurchase: ExternalTransactionTestPurchase + transactionProgramCode: int transactionState: typing_extensions.Literal[ "TRANSACTION_STATE_UNSPECIFIED", "TRANSACTION_REPORTED", "TRANSACTION_CANCELED" ] diff --git a/googleapiclient-stubs/_apis/apim/__init__.pyi b/googleapiclient-stubs/_apis/apim/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/apim/v1alpha/__init__.pyi b/googleapiclient-stubs/_apis/apim/v1alpha/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/apim/v1alpha/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/apim/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/apim/v1alpha/resources.pyi new file mode 100644 index 00000000..797ccac8 --- /dev/null +++ b/googleapiclient-stubs/_apis/apim/v1alpha/resources.pyi @@ -0,0 +1,341 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class APIManagementResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ObservationJobsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ApiObservationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ApiOperationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ApiOperationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListApiOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListApiOperationsResponseHttpRequest, + previous_response: ListApiOperationsResponse, + ) -> ListApiOperationsResponseHttpRequest | None: ... + + def batchEditTags( + self, + *, + parent: str, + body: BatchEditTagsApiObservationsRequest = ..., + **kwargs: typing.Any, + ) -> BatchEditTagsApiObservationsResponseHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ApiObservationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListApiObservationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListApiObservationsResponseHttpRequest, + previous_response: ListApiObservationsResponse, + ) -> ListApiObservationsResponseHttpRequest | None: ... + def apiOperations(self) -> ApiOperationsResource: ... + + def create( + self, + *, + parent: str, + body: ObservationJob = ..., + observationJobId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def disable( + self, + *, + name: str, + body: DisableObservationJobRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def enable( + self, + *, + name: str, + body: EnableObservationJobRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ObservationJobHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListObservationJobsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListObservationJobsResponseHttpRequest, + previous_response: ListObservationJobsResponse, + ) -> ListObservationJobsResponseHttpRequest | None: ... + def apiObservations(self) -> ApiObservationsResource: ... + + @typing.type_check_only + class ObservationSourcesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: ObservationSource = ..., + observationSourceId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ObservationSourceHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListObservationSourcesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListObservationSourcesResponseHttpRequest, + previous_response: ListObservationSourcesResponse, + ) -> ListObservationSourcesResponseHttpRequest | None: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + def listApiObservationTags( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListApiObservationTagsResponseHttpRequest: ... + def listApiObservationTags_next( + self, + previous_request: ListApiObservationTagsResponseHttpRequest, + previous_response: ListApiObservationTagsResponse, + ) -> ListApiObservationTagsResponseHttpRequest | None: ... + def observationJobs(self) -> ObservationJobsResource: ... + def observationSources(self) -> ObservationSourcesResource: ... + def operations(self) -> OperationsResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class ApiObservationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ApiObservation: ... + +@typing.type_check_only +class ApiOperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ApiOperation: ... + +@typing.type_check_only +class BatchEditTagsApiObservationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BatchEditTagsApiObservationsResponse: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListApiObservationTagsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListApiObservationTagsResponse: ... + +@typing.type_check_only +class ListApiObservationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListApiObservationsResponse: ... + +@typing.type_check_only +class ListApiOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListApiOperationsResponse: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListObservationJobsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListObservationJobsResponse: ... + +@typing.type_check_only +class ListObservationSourcesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListObservationSourcesResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class ObservationJobHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ObservationJob: ... + +@typing.type_check_only +class ObservationSourceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ObservationSource: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... diff --git a/googleapiclient-stubs/_apis/apim/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/apim/v1alpha/schemas.pyi new file mode 100644 index 00000000..58042fb3 --- /dev/null +++ b/googleapiclient-stubs/_apis/apim/v1alpha/schemas.pyi @@ -0,0 +1,213 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class ApiObservation(typing_extensions.TypedDict, total=False): + apiOperationCount: str + createTime: str + hostname: str + lastEventDetectedTime: str + name: str + serverIps: _list[str] + sourceLocations: _list[str] + style: typing_extensions.Literal["STYLE_UNSPECIFIED", "REST", "GRPC", "GRAPHQL"] + tags: _list[str] + updateTime: str + +@typing.type_check_only +class ApiOperation(typing_extensions.TypedDict, total=False): + count: str + firstSeenTime: str + httpOperation: HttpOperation + lastSeenTime: str + name: str + +@typing.type_check_only +class BatchEditTagsApiObservationsRequest(typing_extensions.TypedDict, total=False): + requests: _list[EditTagsApiObservationsRequest] + +@typing.type_check_only +class BatchEditTagsApiObservationsResponse(typing_extensions.TypedDict, total=False): + apiObservations: _list[ApiObservation] + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class DisableObservationJobRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class EditTagsApiObservationsRequest(typing_extensions.TypedDict, total=False): + apiObservationId: str + tagActions: _list[TagAction] + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class EnableObservationJobRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class GclbObservationSource(typing_extensions.TypedDict, total=False): + pscNetworkConfigs: _list[GclbObservationSourcePscNetworkConfig] + +@typing.type_check_only +class GclbObservationSourcePscNetworkConfig(typing_extensions.TypedDict, total=False): + network: str + subnetwork: str + +@typing.type_check_only +class HttpOperation(typing_extensions.TypedDict, total=False): + method: typing_extensions.Literal[ + "HTTP_METHOD_UNSPECIFIED", + "GET", + "HEAD", + "POST", + "PUT", + "PATCH", + "DELETE", + "TRACE", + "OPTIONS", + "CONNECT", + ] + path: str + pathParams: _list[HttpOperationPathParam] + queryParams: dict[str, typing.Any] + request: HttpOperationHttpRequest + response: HttpOperationHttpResponse + +@typing.type_check_only +class HttpOperationHeader(typing_extensions.TypedDict, total=False): + count: str + dataType: typing_extensions.Literal[ + "DATA_TYPE_UNSPECIFIED", "BOOL", "INTEGER", "FLOAT", "STRING", "UUID" + ] + name: str + +@typing.type_check_only +class HttpOperationHttpRequest(typing_extensions.TypedDict, total=False): + headers: dict[str, typing.Any] + +@typing.type_check_only +class HttpOperationHttpResponse(typing_extensions.TypedDict, total=False): + headers: dict[str, typing.Any] + responseCodes: dict[str, typing.Any] + +@typing.type_check_only +class HttpOperationPathParam(typing_extensions.TypedDict, total=False): + dataType: typing_extensions.Literal[ + "DATA_TYPE_UNSPECIFIED", "BOOL", "INTEGER", "FLOAT", "STRING", "UUID" + ] + position: int + +@typing.type_check_only +class HttpOperationQueryParam(typing_extensions.TypedDict, total=False): + count: str + dataType: typing_extensions.Literal[ + "DATA_TYPE_UNSPECIFIED", "BOOL", "INTEGER", "FLOAT", "STRING", "UUID" + ] + name: str + +@typing.type_check_only +class ListApiObservationTagsResponse(typing_extensions.TypedDict, total=False): + apiObservationTags: _list[str] + nextPageToken: str + +@typing.type_check_only +class ListApiObservationsResponse(typing_extensions.TypedDict, total=False): + apiObservations: _list[ApiObservation] + nextPageToken: str + +@typing.type_check_only +class ListApiOperationsResponse(typing_extensions.TypedDict, total=False): + apiOperations: _list[ApiOperation] + nextPageToken: str + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListObservationJobsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + observationJobs: _list[ObservationJob] + unreachable: _list[str] + +@typing.type_check_only +class ListObservationSourcesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + observationSources: _list[ObservationSource] + unreachable: _list[str] + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class ObservationJob(typing_extensions.TypedDict, total=False): + createTime: str + name: str + sources: _list[str] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "CREATING", + "ENABLING", + "ENABLED", + "DISABLING", + "DISABLED", + "DELETING", + "ERROR", + ] + updateTime: str + +@typing.type_check_only +class ObservationSource(typing_extensions.TypedDict, total=False): + createTime: str + gclbObservationSource: GclbObservationSource + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "CREATED", "DELETING", "ERROR" + ] + updateTime: str + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str + +@typing.type_check_only +class TagAction(typing_extensions.TypedDict, total=False): + action: typing_extensions.Literal["ACTION_UNSPECIFIED", "ADD", "REMOVE"] + tag: str diff --git a/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi b/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi index 8cc2da81..dd560cff 100644 --- a/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/artifactregistry/v1/resources.pyi @@ -64,6 +64,9 @@ class ArtifactRegistryResource(googleapiclient.discovery.Resource): @typing.type_check_only class FilesResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... def download( self, *, name: str, **kwargs: typing.Any ) -> DownloadFileResponseHttpRequest: ... diff --git a/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi b/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi index e11c5835..fc24d8d7 100644 --- a/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/artifactregistry/v1/schemas.pyi @@ -390,8 +390,13 @@ class ProjectSettings(typing_extensions.TypedDict, total=False): "REDIRECTION_FROM_GCR_IO_ENABLED", "REDIRECTION_FROM_GCR_IO_FINALIZED", "REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING", + "REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING", ] name: str + pullPercent: int + +@typing.type_check_only +class PromoteArtifactMetadata(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class PythonPackage(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/artifactregistry/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/artifactregistry/v1beta2/schemas.pyi index 07ec049b..79b3e365 100644 --- a/googleapiclient-stubs/_apis/artifactregistry/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/artifactregistry/v1beta2/schemas.pyi @@ -172,8 +172,10 @@ class ProjectSettings(typing_extensions.TypedDict, total=False): "REDIRECTION_FROM_GCR_IO_ENABLED", "REDIRECTION_FROM_GCR_IO_FINALIZED", "REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING", + "REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING", ] name: str + pullPercent: int @typing.type_check_only class Repository(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi b/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi index 2e0eb208..a45cbeda 100644 --- a/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/assuredworkloads/v1/schemas.pyi @@ -46,29 +46,22 @@ class GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata( "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", - "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", - "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", - "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", - "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", - "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", - "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", - "FREE_REGIONS", ] createTime: str displayName: str @@ -184,6 +177,7 @@ class GoogleCloudAssuredworkloadsV1ViolationRemediation( "REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION", "REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION", "REMEDIATION_RESOURCE_VIOLATION", + "REMEDIATION_RESOURCE_VIOLATION_NON_CMEK_SERVICES", ] @typing.type_check_only @@ -222,29 +216,22 @@ class GoogleCloudAssuredworkloadsV1Workload(typing_extensions.TypedDict, total=F "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", - "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", - "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", - "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", - "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", - "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", - "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", - "FREE_REGIONS", ] complianceStatus: GoogleCloudAssuredworkloadsV1WorkloadComplianceStatus compliantButDisallowedServices: _list[str] @@ -323,6 +310,7 @@ class GoogleCloudAssuredworkloadsV1WorkloadKMSSettings( class GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions( typing_extensions.TypedDict, total=False ): + accessTransparencyLogsSupportCaseViewer: bool assuredWorkloadsMonitoring: bool dataLogsViewer: bool serviceAccessApprover: bool diff --git a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi index 7459aa8e..1e38fadc 100644 --- a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/resources.pyi @@ -100,6 +100,9 @@ class AssuredworkloadsResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, etag: str = ..., **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... + def enableComplianceUpdates( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponseHttpRequest: ... def enableResourceMonitoring( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponseHttpRequest: ... @@ -181,6 +184,16 @@ class GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudAssuredworkloadsV1beta1AnalyzeWorkloadMoveResponse: ... +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse: ... + @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi index 525d058c..8bcb2579 100644 --- a/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/assuredworkloads/v1beta1/schemas.pyi @@ -46,35 +46,33 @@ class GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata( "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", - "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", - "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", - "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", - "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", - "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", - "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", - "FREE_REGIONS", ] createTime: str displayName: str parent: str resourceSettings: _list[GoogleCloudAssuredworkloadsV1beta1WorkloadResourceSettings] +@typing.type_check_only +class GoogleCloudAssuredworkloadsV1beta1EnableComplianceUpdatesResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudAssuredworkloadsV1beta1EnableResourceMonitoringResponse( typing_extensions.TypedDict, total=False @@ -183,6 +181,7 @@ class GoogleCloudAssuredworkloadsV1beta1ViolationRemediation( "REMEDIATION_LIST_DENIED_VALUES_ORG_POLICY_VIOLATION", "REMEDIATION_RESTRICT_CMEK_CRYPTO_KEY_PROJECTS_ORG_POLICY_VIOLATION", "REMEDIATION_RESOURCE_VIOLATION", + "REMEDIATION_RESOURCE_VIOLATION_NON_CMEK_SERVICES", ] @typing.type_check_only @@ -224,31 +223,25 @@ class GoogleCloudAssuredworkloadsV1beta1Workload( "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", - "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", - "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", - "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", - "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", - "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", - "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", - "FREE_REGIONS", ] complianceStatus: GoogleCloudAssuredworkloadsV1beta1WorkloadComplianceStatus + complianceUpdatesEnabled: bool compliantButDisallowedServices: _list[str] createTime: str displayName: str @@ -356,6 +349,7 @@ class GoogleCloudAssuredworkloadsV1beta1WorkloadKMSSettings( class GoogleCloudAssuredworkloadsV1beta1WorkloadPartnerPermissions( typing_extensions.TypedDict, total=False ): + accessTransparencyLogsSupportCaseViewer: bool assuredWorkloadsMonitoring: bool dataLogsViewer: bool serviceAccessApprover: bool diff --git a/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/__init__.pyi b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/resources.pyi new file mode 100644 index 00000000..7df6547a --- /dev/null +++ b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/resources.pyi @@ -0,0 +1,547 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class AuthorizedBuyersMarketplaceResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BiddersResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AuctionPackagesResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAuctionPackagesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAuctionPackagesResponseHttpRequest, + previous_response: ListAuctionPackagesResponse, + ) -> ListAuctionPackagesResponseHttpRequest | None: ... + + @typing.type_check_only + class FinalizedDealsResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListFinalizedDealsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListFinalizedDealsResponseHttpRequest, + previous_response: ListFinalizedDealsResponse, + ) -> ListFinalizedDealsResponseHttpRequest | None: ... + + def auctionPackages(self) -> AuctionPackagesResource: ... + def finalizedDeals(self) -> FinalizedDealsResource: ... + + @typing.type_check_only + class BuyersResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AuctionPackagesResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> AuctionPackageHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAuctionPackagesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAuctionPackagesResponseHttpRequest, + previous_response: ListAuctionPackagesResponse, + ) -> ListAuctionPackagesResponseHttpRequest | None: ... + def subscribe( + self, + *, + name: str, + body: SubscribeAuctionPackageRequest = ..., + **kwargs: typing.Any, + ) -> AuctionPackageHttpRequest: ... + def subscribeClients( + self, + *, + auctionPackage: str, + body: SubscribeClientsRequest = ..., + **kwargs: typing.Any, + ) -> AuctionPackageHttpRequest: ... + def unsubscribe( + self, + *, + name: str, + body: UnsubscribeAuctionPackageRequest = ..., + **kwargs: typing.Any, + ) -> AuctionPackageHttpRequest: ... + def unsubscribeClients( + self, + *, + auctionPackage: str, + body: UnsubscribeClientsRequest = ..., + **kwargs: typing.Any, + ) -> AuctionPackageHttpRequest: ... + + @typing.type_check_only + class ClientsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class UsersResource(googleapiclient.discovery.Resource): + def activate( + self, + *, + name: str, + body: ActivateClientUserRequest = ..., + **kwargs: typing.Any, + ) -> ClientUserHttpRequest: ... + def create( + self, *, parent: str, body: ClientUser = ..., **kwargs: typing.Any + ) -> ClientUserHttpRequest: ... + def deactivate( + self, + *, + name: str, + body: DeactivateClientUserRequest = ..., + **kwargs: typing.Any, + ) -> ClientUserHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ClientUserHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListClientUsersResponseHttpRequest: ... + def list_next( + self, + previous_request: ListClientUsersResponseHttpRequest, + previous_response: ListClientUsersResponse, + ) -> ListClientUsersResponseHttpRequest | None: ... + + def activate( + self, + *, + name: str, + body: ActivateClientRequest = ..., + **kwargs: typing.Any, + ) -> ClientHttpRequest: ... + def create( + self, *, parent: str, body: Client = ..., **kwargs: typing.Any + ) -> ClientHttpRequest: ... + def deactivate( + self, + *, + name: str, + body: DeactivateClientRequest = ..., + **kwargs: typing.Any, + ) -> ClientHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> ClientHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListClientsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListClientsResponseHttpRequest, + previous_response: ListClientsResponse, + ) -> ListClientsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Client = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> ClientHttpRequest: ... + def users(self) -> UsersResource: ... + + @typing.type_check_only + class DataSegmentsResource(googleapiclient.discovery.Resource): + def activate( + self, + *, + name: str, + body: ActivateDataSegmentRequest = ..., + **kwargs: typing.Any, + ) -> DataSegmentHttpRequest: ... + def create( + self, *, parent: str, body: DataSegment = ..., **kwargs: typing.Any + ) -> DataSegmentHttpRequest: ... + def deactivate( + self, + *, + name: str, + body: DeactivateDataSegmentRequest = ..., + **kwargs: typing.Any, + ) -> DataSegmentHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> DataSegmentHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListDataSegmentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListDataSegmentsResponseHttpRequest, + previous_response: ListDataSegmentsResponse, + ) -> ListDataSegmentsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: DataSegment = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> DataSegmentHttpRequest: ... + + @typing.type_check_only + class FinalizedDealsResource(googleapiclient.discovery.Resource): + def addCreative( + self, *, deal: str, body: AddCreativeRequest = ..., **kwargs: typing.Any + ) -> FinalizedDealHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> FinalizedDealHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListFinalizedDealsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListFinalizedDealsResponseHttpRequest, + previous_response: ListFinalizedDealsResponse, + ) -> ListFinalizedDealsResponseHttpRequest | None: ... + def pause( + self, + *, + name: str, + body: PauseFinalizedDealRequest = ..., + **kwargs: typing.Any, + ) -> FinalizedDealHttpRequest: ... + def resume( + self, + *, + name: str, + body: ResumeFinalizedDealRequest = ..., + **kwargs: typing.Any, + ) -> FinalizedDealHttpRequest: ... + def setReadyToServe( + self, + *, + deal: str, + body: SetReadyToServeRequest = ..., + **kwargs: typing.Any, + ) -> FinalizedDealHttpRequest: ... + + @typing.type_check_only + class ProposalsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class DealsResource(googleapiclient.discovery.Resource): + def batchUpdate( + self, + *, + parent: str, + body: BatchUpdateDealsRequest = ..., + **kwargs: typing.Any, + ) -> BatchUpdateDealsResponseHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> DealHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListDealsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListDealsResponseHttpRequest, + previous_response: ListDealsResponse, + ) -> ListDealsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Deal = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> DealHttpRequest: ... + + def accept( + self, + *, + name: str, + body: AcceptProposalRequest = ..., + **kwargs: typing.Any, + ) -> ProposalHttpRequest: ... + def addNote( + self, *, proposal: str, body: AddNoteRequest = ..., **kwargs: typing.Any + ) -> ProposalHttpRequest: ... + def cancelNegotiation( + self, + *, + proposal: str, + body: CancelNegotiationRequest = ..., + **kwargs: typing.Any, + ) -> ProposalHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ProposalHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListProposalsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListProposalsResponseHttpRequest, + previous_response: ListProposalsResponse, + ) -> ListProposalsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Proposal = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> ProposalHttpRequest: ... + def sendRfp( + self, *, buyer: str, body: SendRfpRequest = ..., **kwargs: typing.Any + ) -> ProposalHttpRequest: ... + def deals(self) -> DealsResource: ... + + @typing.type_check_only + class PublisherProfilesResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> PublisherProfileHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPublisherProfilesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPublisherProfilesResponseHttpRequest, + previous_response: ListPublisherProfilesResponse, + ) -> ListPublisherProfilesResponseHttpRequest | None: ... + + def auctionPackages(self) -> AuctionPackagesResource: ... + def clients(self) -> ClientsResource: ... + def dataSegments(self) -> DataSegmentsResource: ... + def finalizedDeals(self) -> FinalizedDealsResource: ... + def proposals(self) -> ProposalsResource: ... + def publisherProfiles(self) -> PublisherProfilesResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def bidders(self) -> BiddersResource: ... + def buyers(self) -> BuyersResource: ... + +@typing.type_check_only +class AuctionPackageHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AuctionPackage: ... + +@typing.type_check_only +class BatchUpdateDealsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BatchUpdateDealsResponse: ... + +@typing.type_check_only +class ClientHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Client: ... + +@typing.type_check_only +class ClientUserHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ClientUser: ... + +@typing.type_check_only +class DataSegmentHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> DataSegment: ... + +@typing.type_check_only +class DealHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Deal: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class FinalizedDealHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FinalizedDeal: ... + +@typing.type_check_only +class ListAuctionPackagesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAuctionPackagesResponse: ... + +@typing.type_check_only +class ListClientUsersResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListClientUsersResponse: ... + +@typing.type_check_only +class ListClientsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListClientsResponse: ... + +@typing.type_check_only +class ListDataSegmentsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListDataSegmentsResponse: ... + +@typing.type_check_only +class ListDealsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListDealsResponse: ... + +@typing.type_check_only +class ListFinalizedDealsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListFinalizedDealsResponse: ... + +@typing.type_check_only +class ListProposalsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListProposalsResponse: ... + +@typing.type_check_only +class ListPublisherProfilesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPublisherProfilesResponse: ... + +@typing.type_check_only +class ProposalHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Proposal: ... + +@typing.type_check_only +class PublisherProfileHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> PublisherProfile: ... diff --git a/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi new file mode 100644 index 00000000..54d67336 --- /dev/null +++ b/googleapiclient-stubs/_apis/authorizedbuyersmarketplace/v1alpha/schemas.pyi @@ -0,0 +1,556 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class AcceptProposalRequest(typing_extensions.TypedDict, total=False): + proposalRevision: str + +@typing.type_check_only +class ActivateClientRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ActivateClientUserRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ActivateDataSegmentRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class AdSize(typing_extensions.TypedDict, total=False): + height: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "PIXEL", "INTERSTITIAL", "NATIVE", "FLUID" + ] + width: str + +@typing.type_check_only +class AddCreativeRequest(typing_extensions.TypedDict, total=False): + creative: str + +@typing.type_check_only +class AddNoteRequest(typing_extensions.TypedDict, total=False): + note: Note + +@typing.type_check_only +class AuctionPackage(typing_extensions.TypedDict, total=False): + createTime: str + creator: str + description: str + displayName: str + eligibleSeatIds: _list[str] + name: str + subscribedBuyers: _list[str] + subscribedClients: _list[str] + subscribedMediaPlanners: _list[MediaPlanner] + updateTime: str + +@typing.type_check_only +class BatchUpdateDealsRequest(typing_extensions.TypedDict, total=False): + requests: _list[UpdateDealRequest] + +@typing.type_check_only +class BatchUpdateDealsResponse(typing_extensions.TypedDict, total=False): + deals: _list[Deal] + +@typing.type_check_only +class CancelNegotiationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Client(typing_extensions.TypedDict, total=False): + displayName: str + name: str + partnerClientId: str + role: typing_extensions.Literal[ + "CLIENT_ROLE_UNSPECIFIED", + "CLIENT_DEAL_VIEWER", + "CLIENT_DEAL_NEGOTIATOR", + "CLIENT_DEAL_APPROVER", + ] + sellerVisible: bool + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + +@typing.type_check_only +class ClientUser(typing_extensions.TypedDict, total=False): + email: str + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "INVITED", "ACTIVE", "INACTIVE" + ] + +@typing.type_check_only +class Contact(typing_extensions.TypedDict, total=False): + displayName: str + email: str + +@typing.type_check_only +class CreativeRequirements(typing_extensions.TypedDict, total=False): + creativeFormat: typing_extensions.Literal[ + "CREATIVE_FORMAT_UNSPECIFIED", "DISPLAY", "VIDEO", "AUDIO" + ] + creativePreApprovalPolicy: typing_extensions.Literal[ + "CREATIVE_PRE_APPROVAL_POLICY_UNSPECIFIED", + "SELLER_PRE_APPROVAL_REQUIRED", + "SELLER_PRE_APPROVAL_NOT_REQUIRED", + ] + creativeSafeFrameCompatibility: typing_extensions.Literal[ + "CREATIVE_SAFE_FRAME_COMPATIBILITY_UNSPECIFIED", "COMPATIBLE", "INCOMPATIBLE" + ] + maxAdDurationMs: str + programmaticCreativeSource: typing_extensions.Literal[ + "PROGRAMMATIC_CREATIVE_SOURCE_UNSPECIFIED", "ADVERTISER", "PUBLISHER" + ] + skippableAdType: typing_extensions.Literal[ + "SKIPPABLE_AD_TYPE_UNSPECIFIED", + "SKIPPABLE", + "INSTREAM_SELECT", + "NOT_SKIPPABLE", + "ANY", + ] + +@typing.type_check_only +class CriteriaTargeting(typing_extensions.TypedDict, total=False): + excludedCriteriaIds: _list[str] + targetedCriteriaIds: _list[str] + +@typing.type_check_only +class DataSegment(typing_extensions.TypedDict, total=False): + cpmFee: Money + createTime: str + name: str + state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + updateTime: str + +@typing.type_check_only +class DayPart(typing_extensions.TypedDict, total=False): + dayOfWeek: typing_extensions.Literal[ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + ] + endTime: TimeOfDay + startTime: TimeOfDay + +@typing.type_check_only +class DayPartTargeting(typing_extensions.TypedDict, total=False): + dayParts: _list[DayPart] + timeZoneType: typing_extensions.Literal[ + "TIME_ZONE_TYPE_UNSPECIFIED", "SELLER", "USER" + ] + +@typing.type_check_only +class DeactivateClientRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class DeactivateClientUserRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class DeactivateDataSegmentRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Deal(typing_extensions.TypedDict, total=False): + billedBuyer: str + buyer: str + client: str + createTime: str + creativeRequirements: CreativeRequirements + dealType: typing_extensions.Literal[ + "DEAL_TYPE_UNSPECIFIED", + "PREFERRED_DEAL", + "PRIVATE_AUCTION", + "PROGRAMMATIC_GUARANTEED", + ] + deliveryControl: DeliveryControl + description: str + displayName: str + eligibleSeatIds: _list[str] + estimatedGrossSpend: Money + flightEndTime: str + flightStartTime: str + mediaPlanner: MediaPlanner + name: str + preferredDealTerms: PreferredDealTerms + privateAuctionTerms: PrivateAuctionTerms + programmaticGuaranteedTerms: ProgrammaticGuaranteedTerms + proposalRevision: str + publisherProfile: str + sellerTimeZone: TimeZone + targeting: MarketplaceTargeting + updateTime: str + +@typing.type_check_only +class DealPausingInfo(typing_extensions.TypedDict, total=False): + pauseReason: str + pauseRole: typing_extensions.Literal[ + "BUYER_SELLER_ROLE_UNSPECIFIED", "BUYER", "SELLER" + ] + pausingConsented: bool + +@typing.type_check_only +class DeliveryControl(typing_extensions.TypedDict, total=False): + companionDeliveryType: typing_extensions.Literal[ + "COMPANION_DELIVERY_TYPE_UNSPECIFIED", + "DELIVERY_OPTIONAL", + "DELIVERY_AT_LEAST_ONE", + "DELIVERY_ALL", + ] + creativeRotationType: typing_extensions.Literal[ + "CREATIVE_ROTATION_TYPE_UNSPECIFIED", + "ROTATION_EVEN", + "ROTATION_OPTIMIZED", + "ROTATION_MANUAL", + "ROTATION_SEQUENTIAL", + ] + deliveryRateType: typing_extensions.Literal[ + "DELIVERY_RATE_TYPE_UNSPECIFIED", + "EVENLY", + "FRONT_LOADED", + "AS_FAST_AS_POSSIBLE", + ] + frequencyCap: _list[FrequencyCap] + roadblockingType: typing_extensions.Literal[ + "ROADBLOCKING_TYPE_UNSPECIFIED", + "ONLY_ONE", + "ONE_OR_MORE", + "AS_MANY_AS_POSSIBLE", + "ALL_ROADBLOCK", + "CREATIVE_SET", + ] + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FinalizedDeal(typing_extensions.TypedDict, total=False): + deal: Deal + dealPausingInfo: DealPausingInfo + dealServingStatus: typing_extensions.Literal[ + "DEAL_SERVING_STATUS_UNSPECIFIED", + "ACTIVE", + "ENDED", + "PAUSED_BY_BUYER", + "PAUSED_BY_SELLER", + ] + name: str + readyToServe: bool + rtbMetrics: RtbMetrics + +@typing.type_check_only +class FirstPartyMobileApplicationTargeting(typing_extensions.TypedDict, total=False): + excludedAppIds: _list[str] + targetedAppIds: _list[str] + +@typing.type_check_only +class FrequencyCap(typing_extensions.TypedDict, total=False): + maxImpressions: int + timeUnitType: typing_extensions.Literal[ + "TIME_UNIT_TYPE_UNSPECIFIED", + "MINUTE", + "HOUR", + "DAY", + "WEEK", + "MONTH", + "LIFETIME", + "POD", + "STREAM", + ] + timeUnitsCount: int + +@typing.type_check_only +class InventorySizeTargeting(typing_extensions.TypedDict, total=False): + excludedInventorySizes: _list[AdSize] + targetedInventorySizes: _list[AdSize] + +@typing.type_check_only +class InventoryTypeTargeting(typing_extensions.TypedDict, total=False): + inventoryTypes: _list[ + typing_extensions.Literal[ + "INVENTORY_TYPE_UNSPECIFIED", "BROWSER", "MOBILE_APP", "VIDEO_PLAYER" + ] + ] + +@typing.type_check_only +class ListAuctionPackagesResponse(typing_extensions.TypedDict, total=False): + auctionPackages: _list[AuctionPackage] + nextPageToken: str + +@typing.type_check_only +class ListClientUsersResponse(typing_extensions.TypedDict, total=False): + clientUsers: _list[ClientUser] + nextPageToken: str + +@typing.type_check_only +class ListClientsResponse(typing_extensions.TypedDict, total=False): + clients: _list[Client] + nextPageToken: str + +@typing.type_check_only +class ListDataSegmentsResponse(typing_extensions.TypedDict, total=False): + dataSegments: _list[DataSegment] + nextPageToken: str + +@typing.type_check_only +class ListDealsResponse(typing_extensions.TypedDict, total=False): + deals: _list[Deal] + nextPageToken: str + +@typing.type_check_only +class ListFinalizedDealsResponse(typing_extensions.TypedDict, total=False): + finalizedDeals: _list[FinalizedDeal] + nextPageToken: str + +@typing.type_check_only +class ListProposalsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + proposals: _list[Proposal] + +@typing.type_check_only +class ListPublisherProfilesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + publisherProfiles: _list[PublisherProfile] + +@typing.type_check_only +class MarketplaceTargeting(typing_extensions.TypedDict, total=False): + daypartTargeting: DayPartTargeting + excludedSensitiveCategoryIds: _list[str] + geoTargeting: CriteriaTargeting + inventorySizeTargeting: InventorySizeTargeting + inventoryTypeTargeting: InventoryTypeTargeting + placementTargeting: PlacementTargeting + technologyTargeting: TechnologyTargeting + userListTargeting: CriteriaTargeting + verticalTargeting: CriteriaTargeting + videoTargeting: VideoTargeting + +@typing.type_check_only +class MediaPlanner(typing_extensions.TypedDict, total=False): + accountId: str + +@typing.type_check_only +class MobileApplicationTargeting(typing_extensions.TypedDict, total=False): + firstPartyTargeting: FirstPartyMobileApplicationTargeting + +@typing.type_check_only +class Money(typing_extensions.TypedDict, total=False): + currencyCode: str + nanos: int + units: str + +@typing.type_check_only +class Note(typing_extensions.TypedDict, total=False): + createTime: str + creatorRole: typing_extensions.Literal[ + "BUYER_SELLER_ROLE_UNSPECIFIED", "BUYER", "SELLER" + ] + note: str + +@typing.type_check_only +class OperatingSystemTargeting(typing_extensions.TypedDict, total=False): + operatingSystemCriteria: CriteriaTargeting + operatingSystemVersionCriteria: CriteriaTargeting + +@typing.type_check_only +class PauseFinalizedDealRequest(typing_extensions.TypedDict, total=False): + reason: str + +@typing.type_check_only +class PlacementTargeting(typing_extensions.TypedDict, total=False): + mobileApplicationTargeting: MobileApplicationTargeting + uriTargeting: UriTargeting + +@typing.type_check_only +class PreferredDealTerms(typing_extensions.TypedDict, total=False): + fixedPrice: Price + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amount: Money + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "CPM", "CPD"] + +@typing.type_check_only +class PrivateAuctionTerms(typing_extensions.TypedDict, total=False): + floorPrice: Price + openAuctionAllowed: bool + +@typing.type_check_only +class PrivateData(typing_extensions.TypedDict, total=False): + referenceId: str + +@typing.type_check_only +class ProgrammaticGuaranteedTerms(typing_extensions.TypedDict, total=False): + fixedPrice: Price + guaranteedLooks: str + impressionCap: str + minimumDailyLooks: str + percentShareOfVoice: str + reservationType: typing_extensions.Literal[ + "RESERVATION_TYPE_UNSPECIFIED", "STANDARD", "SPONSORSHIP" + ] + +@typing.type_check_only +class Proposal(typing_extensions.TypedDict, total=False): + billedBuyer: str + buyer: str + buyerContacts: _list[Contact] + buyerPrivateData: PrivateData + client: str + dealType: typing_extensions.Literal[ + "DEAL_TYPE_UNSPECIFIED", + "PREFERRED_DEAL", + "PRIVATE_AUCTION", + "PROGRAMMATIC_GUARANTEED", + ] + displayName: str + isRenegotiating: bool + lastUpdaterOrCommentorRole: typing_extensions.Literal[ + "BUYER_SELLER_ROLE_UNSPECIFIED", "BUYER", "SELLER" + ] + name: str + notes: _list[Note] + originatorRole: typing_extensions.Literal[ + "BUYER_SELLER_ROLE_UNSPECIFIED", "BUYER", "SELLER" + ] + pausingConsented: bool + proposalRevision: str + publisherProfile: str + sellerContacts: _list[Contact] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "BUYER_REVIEW_REQUESTED", + "SELLER_REVIEW_REQUESTED", + "BUYER_ACCEPTANCE_REQUESTED", + "FINALIZED", + "TERMINATED", + ] + termsAndConditions: str + updateTime: str + +@typing.type_check_only +class PublisherProfile(typing_extensions.TypedDict, total=False): + audienceDescription: str + directDealsContact: str + displayName: str + domains: _list[str] + isParent: bool + logoUrl: str + mediaKitUrl: str + mobileApps: _list[PublisherProfileMobileApplication] + name: str + overview: str + pitchStatement: str + programmaticDealsContact: str + publisherCode: str + samplePageUrl: str + topHeadlines: _list[str] + +@typing.type_check_only +class PublisherProfileMobileApplication(typing_extensions.TypedDict, total=False): + appStore: typing_extensions.Literal[ + "APP_STORE_TYPE_UNSPECIFIED", + "APPLE_ITUNES", + "GOOGLE_PLAY", + "ROKU", + "AMAZON_FIRE_TV", + "PLAYSTATION", + "XBOX", + "SAMSUNG_TV", + "AMAZON", + "OPPO", + "SAMSUNG", + "VIVO", + "XIAOMI", + "LG_TV", + ] + externalAppId: str + name: str + +@typing.type_check_only +class ResumeFinalizedDealRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class RtbMetrics(typing_extensions.TypedDict, total=False): + adImpressions7Days: str + bidRate7Days: float + bidRequests7Days: str + bids7Days: str + filteredBidRate7Days: float + mustBidRateCurrentMonth: float + +@typing.type_check_only +class SendRfpRequest(typing_extensions.TypedDict, total=False): + buyerContacts: _list[Contact] + client: str + displayName: str + estimatedGrossSpend: Money + flightEndTime: str + flightStartTime: str + geoTargeting: CriteriaTargeting + inventorySizeTargeting: InventorySizeTargeting + note: str + preferredDealTerms: PreferredDealTerms + programmaticGuaranteedTerms: ProgrammaticGuaranteedTerms + publisherProfile: str + +@typing.type_check_only +class SetReadyToServeRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class SubscribeAuctionPackageRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class SubscribeClientsRequest(typing_extensions.TypedDict, total=False): + clients: _list[str] + +@typing.type_check_only +class TechnologyTargeting(typing_extensions.TypedDict, total=False): + deviceCapabilityTargeting: CriteriaTargeting + deviceCategoryTargeting: CriteriaTargeting + operatingSystemTargeting: OperatingSystemTargeting + +@typing.type_check_only +class TimeOfDay(typing_extensions.TypedDict, total=False): + hours: int + minutes: int + nanos: int + seconds: int + +@typing.type_check_only +class TimeZone(typing_extensions.TypedDict, total=False): + id: str + version: str + +@typing.type_check_only +class UnsubscribeAuctionPackageRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class UnsubscribeClientsRequest(typing_extensions.TypedDict, total=False): + clients: _list[str] + +@typing.type_check_only +class UpdateDealRequest(typing_extensions.TypedDict, total=False): + deal: Deal + updateMask: str + +@typing.type_check_only +class UriTargeting(typing_extensions.TypedDict, total=False): + excludedUris: _list[str] + targetedUris: _list[str] + +@typing.type_check_only +class VideoTargeting(typing_extensions.TypedDict, total=False): + excludedPositionTypes: _list[ + typing_extensions.Literal[ + "POSITION_TYPE_UNSPECIFIED", "PREROLL", "MIDROLL", "POSTROLL" + ] + ] + targetedPositionTypes: _list[ + typing_extensions.Literal[ + "POSITION_TYPE_UNSPECIFIED", "PREROLL", "MIDROLL", "POSTROLL" + ] + ] diff --git a/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi b/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi index 00cd743b..310006b1 100644 --- a/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/backupdr/v1/resources.pyi @@ -17,6 +17,272 @@ class BackupdrResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupPlanAssociationsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: BackupPlanAssociation = ..., + backupPlanAssociationId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupPlanAssociationHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupPlanAssociationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupPlanAssociationsResponseHttpRequest, + previous_response: ListBackupPlanAssociationsResponse, + ) -> ListBackupPlanAssociationsResponseHttpRequest | None: ... + def triggerBackup( + self, + *, + name: str, + body: TriggerBackupRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + @typing.type_check_only + class BackupPlansResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: BackupPlan = ..., + backupPlanId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupPlanHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupPlansResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupPlansResponseHttpRequest, + previous_response: ListBackupPlansResponse, + ) -> ListBackupPlansResponseHttpRequest | None: ... + + @typing.type_check_only + class BackupVaultsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class DataSourcesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + name: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupsResponseHttpRequest, + previous_response: ListBackupsResponse, + ) -> ListBackupsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Backup = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def restore( + self, + *, + name: str, + body: RestoreBackupRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + + def abandonBackup( + self, + *, + dataSource: str, + body: AbandonBackupRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def fetchAccessToken( + self, + *, + name: str, + body: FetchAccessTokenRequest = ..., + **kwargs: typing.Any, + ) -> FetchAccessTokenResponseHttpRequest: ... + def finalizeBackup( + self, + *, + dataSource: str, + body: FinalizeBackupRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> DataSourceHttpRequest: ... + def initiateBackup( + self, + *, + dataSource: str, + body: InitiateBackupRequest = ..., + **kwargs: typing.Any, + ) -> InitiateBackupResponseHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListDataSourcesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListDataSourcesResponseHttpRequest, + previous_response: ListDataSourcesResponse, + ) -> ListDataSourcesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: DataSource = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def remove( + self, + *, + name: str, + body: RemoveDataSourceRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def setInternalStatus( + self, + *, + dataSource: str, + body: SetInternalStatusRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def backups(self) -> BackupsResource: ... + + def create( + self, + *, + parent: str, + body: BackupVault = ..., + backupVaultId: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + allowMissing: bool = ..., + etag: str = ..., + force: bool = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def fetchUsable( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> FetchUsableBackupVaultsResponseHttpRequest: ... + def fetchUsable_next( + self, + previous_request: FetchUsableBackupVaultsResponseHttpRequest, + previous_response: FetchUsableBackupVaultsResponse, + ) -> FetchUsableBackupVaultsResponseHttpRequest | None: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupVaultHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupVaultsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupVaultsResponseHttpRequest, + previous_response: ListBackupVaultsResponse, + ) -> ListBackupVaultsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: BackupVault = ..., + force: bool = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> TestIamPermissionsResponseHttpRequest: ... + def dataSources(self) -> DataSourcesResource: ... + @typing.type_check_only class ManagementServersResource(googleapiclient.discovery.Resource): def create( @@ -118,6 +384,9 @@ class BackupdrResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def backupPlanAssociations(self) -> BackupPlanAssociationsResource: ... + def backupPlans(self) -> BackupPlansResource: ... + def backupVaults(self) -> BackupVaultsResource: ... def managementServers(self) -> ManagementServersResource: ... def operations(self) -> OperationsResource: ... @@ -137,6 +406,46 @@ class BackupdrResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class BackupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Backup: ... + +@typing.type_check_only +class BackupPlanHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupPlan: ... + +@typing.type_check_only +class BackupPlanAssociationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupPlanAssociation: ... + +@typing.type_check_only +class BackupVaultHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupVault: ... + +@typing.type_check_only +class DataSourceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> DataSource: ... + @typing.type_check_only class EmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -145,6 +454,70 @@ class EmptyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Empty: ... +@typing.type_check_only +class FetchAccessTokenResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FetchAccessTokenResponse: ... + +@typing.type_check_only +class FetchUsableBackupVaultsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FetchUsableBackupVaultsResponse: ... + +@typing.type_check_only +class InitiateBackupResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InitiateBackupResponse: ... + +@typing.type_check_only +class ListBackupPlanAssociationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupPlanAssociationsResponse: ... + +@typing.type_check_only +class ListBackupPlansResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupPlansResponse: ... + +@typing.type_check_only +class ListBackupVaultsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupVaultsResponse: ... + +@typing.type_check_only +class ListBackupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupsResponse: ... + +@typing.type_check_only +class ListDataSourcesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListDataSourcesResponse: ... + @typing.type_check_only class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi b/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi index 34de04d4..ec8cbb7d 100644 --- a/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/backupdr/v1/schemas.pyi @@ -4,6 +4,84 @@ import typing_extensions _list = list +@typing.type_check_only +class AbandonBackupRequest(typing_extensions.TypedDict, total=False): + requestId: str + +@typing.type_check_only +class AcceleratorConfig(typing_extensions.TypedDict, total=False): + acceleratorCount: int + acceleratorType: str + +@typing.type_check_only +class AccessConfig(typing_extensions.TypedDict, total=False): + externalIpv6: str + externalIpv6PrefixLength: int + name: str + natIP: str + networkTier: typing_extensions.Literal[ + "NETWORK_TIER_UNSPECIFIED", "PREMIUM", "STANDARD" + ] + publicPtrDomainName: str + setPublicPtr: bool + type: typing_extensions.Literal[ + "ACCESS_TYPE_UNSPECIFIED", "ONE_TO_ONE_NAT", "DIRECT_IPV6" + ] + +@typing.type_check_only +class AdvancedMachineFeatures(typing_extensions.TypedDict, total=False): + enableNestedVirtualization: bool + enableUefiNetworking: bool + threadsPerCore: int + visibleCoreCount: int + +@typing.type_check_only +class AliasIpRange(typing_extensions.TypedDict, total=False): + ipCidrRange: str + subnetworkRangeName: str + +@typing.type_check_only +class AllocationAffinity(typing_extensions.TypedDict, total=False): + consumeReservationType: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "NO_RESERVATION", "ANY_RESERVATION", "SPECIFIC_RESERVATION" + ] + key: str + values: _list[str] + +@typing.type_check_only +class AssetLocation(typing_extensions.TypedDict, total=False): + ccfeRmsPath: str + expected: IsolationExpectations + extraParameters: _list[ExtraParameter] + locationData: _list[LocationData] + parentAsset: _list[CloudAsset] + +@typing.type_check_only +class AttachedDisk(typing_extensions.TypedDict, total=False): + autoDelete: bool + boot: bool + deviceName: str + diskEncryptionKey: CustomerEncryptionKey + diskInterface: typing_extensions.Literal[ + "DISK_INTERFACE_UNSPECIFIED", "SCSI", "NVME", "NVDIMM", "ISCSI" + ] + diskSizeGb: str + diskType: str + diskTypeDeprecated: typing_extensions.Literal[ + "DISK_TYPE_UNSPECIFIED", "SCRATCH", "PERSISTENT" + ] + guestOsFeature: _list[GuestOsFeature] + index: str + initializeParams: InitializeParams + kind: str + license: _list[str] + mode: typing_extensions.Literal[ + "DISK_MODE_UNSPECIFIED", "READ_WRITE", "READ_ONLY", "LOCKED" + ] + savedState: typing_extensions.Literal["DISK_SAVED_STATE_UNSPECIFIED", "PRESERVED"] + source: str + type: typing_extensions.Literal["DISK_TYPE_UNSPECIFIED", "SCRATCH", "PERSISTENT"] + @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] @@ -16,18 +94,291 @@ class AuditLogConfig(typing_extensions.TypedDict, total=False): "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" ] +@typing.type_check_only +class Backup(typing_extensions.TypedDict, total=False): + backupApplianceBackupProperties: BackupApplianceBackupProperties + backupApplianceLocks: _list[BackupLock] + backupType: typing_extensions.Literal[ + "BACKUP_TYPE_UNSPECIFIED", "SCHEDULED", "ON_DEMAND" + ] + computeInstanceBackupProperties: ComputeInstanceBackupProperties + consistencyTime: str + createTime: str + description: str + enforcedRetentionEndTime: str + etag: str + expireTime: str + gcpBackupPlanInfo: GCPBackupPlanInfo + labels: dict[str, typing.Any] + name: str + resourceSizeBytes: str + serviceLocks: _list[BackupLock] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "ERROR" + ] + updateTime: str + +@typing.type_check_only +class BackupApplianceBackupConfig(typing_extensions.TypedDict, total=False): + applicationName: str + backupApplianceId: str + backupApplianceName: str + hostName: str + slaId: str + slpName: str + sltName: str + +@typing.type_check_only +class BackupApplianceBackupProperties(typing_extensions.TypedDict, total=False): + finalizeTime: str + generationId: int + recoveryRangeEndTime: str + recoveryRangeStartTime: str + +@typing.type_check_only +class BackupApplianceLockInfo(typing_extensions.TypedDict, total=False): + backupApplianceId: str + backupApplianceName: str + backupImage: str + jobName: str + lockReason: str + slaId: str + +@typing.type_check_only +class BackupConfigInfo(typing_extensions.TypedDict, total=False): + backupApplianceBackupConfig: BackupApplianceBackupConfig + gcpBackupConfig: GcpBackupConfig + lastBackupError: Status + lastBackupState: typing_extensions.Literal[ + "LAST_BACKUP_STATE_UNSPECIFIED", + "FIRST_BACKUP_PENDING", + "SUCCEEDED", + "FAILED", + "PERMISSION_DENIED", + ] + lastSuccessfulBackupConsistencyTime: str + +@typing.type_check_only +class BackupLock(typing_extensions.TypedDict, total=False): + backupApplianceLockInfo: BackupApplianceLockInfo + lockUntilTime: str + serviceLockInfo: ServiceLockInfo + +@typing.type_check_only +class BackupPlan(typing_extensions.TypedDict, total=False): + backupRules: _list[BackupRule] + backupVault: str + backupVaultServiceAccount: str + createTime: str + description: str + etag: str + labels: dict[str, typing.Any] + name: str + resourceType: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "INACTIVE" + ] + updateTime: str + +@typing.type_check_only +class BackupPlanAssociation(typing_extensions.TypedDict, total=False): + backupPlan: str + createTime: str + dataSource: str + name: str + resource: str + resourceType: str + rulesConfigInfo: _list[RuleConfigInfo] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "INACTIVE" + ] + updateTime: str + +@typing.type_check_only +class BackupRule(typing_extensions.TypedDict, total=False): + backupRetentionDays: int + backupVault: str + backupVaultServiceAccount: str + ruleId: str + standardSchedule: StandardSchedule + +@typing.type_check_only +class BackupVault(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + backupCount: str + backupMinimumEnforcedRetentionDuration: str + createTime: str + deletable: bool + description: str + effectiveTime: str + enforcedRetentionDuration: str + etag: str + labels: dict[str, typing.Any] + name: str + serviceAccount: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "ERROR" + ] + totalStoredBytes: str + uid: str + updateTime: str + +@typing.type_check_only +class BackupWindow(typing_extensions.TypedDict, total=False): + endHourOfDay: int + startHourOfDay: int + @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): condition: Expr members: _list[str] role: str +@typing.type_check_only +class BlobstoreLocation(typing_extensions.TypedDict, total=False): + policyId: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudAsset(typing_extensions.TypedDict, total=False): + assetName: str + assetType: str + +@typing.type_check_only +class CloudAssetComposition(typing_extensions.TypedDict, total=False): + childAsset: _list[CloudAsset] + +@typing.type_check_only +class ComputeInstanceBackupProperties(typing_extensions.TypedDict, total=False): + canIpForward: bool + description: str + disk: _list[AttachedDisk] + guestAccelerator: _list[AcceleratorConfig] + keyRevocationActionType: typing_extensions.Literal[ + "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED", "NONE", "STOP" + ] + machineType: str + metadata: Metadata + minCpuPlatform: str + networkInterface: _list[NetworkInterface] + scheduling: Scheduling + serviceAccount: _list[ServiceAccount] + sourceInstance: str + tags: Tags + +@typing.type_check_only +class ComputeInstanceDataSourceProperties(typing_extensions.TypedDict, total=False): + description: str + machineType: str + name: str + totalDiskCount: str + totalDiskSizeGb: str + +@typing.type_check_only +class ComputeInstanceRestoreProperties(typing_extensions.TypedDict, total=False): + advancedMachineFeatures: AdvancedMachineFeatures + canIpForward: bool + confidentialInstanceConfig: ConfidentialInstanceConfig + deletionProtection: bool + description: str + disks: _list[AttachedDisk] + displayDevice: DisplayDevice + guestAccelerators: _list[AcceleratorConfig] + hostname: str + instanceEncryptionKey: CustomerEncryptionKey + keyRevocationActionType: typing_extensions.Literal[ + "KEY_REVOCATION_ACTION_TYPE_UNSPECIFIED", "NONE", "STOP" + ] + labels: dict[str, typing.Any] + machineType: str + metadata: Metadata + minCpuPlatform: str + name: str + networkInterfaces: _list[NetworkInterface] + networkPerformanceConfig: NetworkPerformanceConfig + params: InstanceParams + privateIpv6GoogleAccess: typing_extensions.Literal[ + "INSTANCE_PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED", + "INHERIT_FROM_SUBNETWORK", + "ENABLE_OUTBOUND_VM_ACCESS_TO_GOOGLE", + "ENABLE_BIDIRECTIONAL_ACCESS_TO_GOOGLE", + ] + reservationAffinity: AllocationAffinity + resourcePolicies: _list[str] + scheduling: Scheduling + serviceAccounts: _list[ServiceAccount] + tags: Tags + +@typing.type_check_only +class ComputeInstanceTargetEnvironment(typing_extensions.TypedDict, total=False): + project: str + zone: str + +@typing.type_check_only +class ConfidentialInstanceConfig(typing_extensions.TypedDict, total=False): + enableConfidentialCompute: bool + +@typing.type_check_only +class CustomerEncryptionKey(typing_extensions.TypedDict, total=False): + kmsKeyName: str + kmsKeyServiceAccount: str + rawKey: str + rsaEncryptedKey: str + +@typing.type_check_only +class DataSource(typing_extensions.TypedDict, total=False): + backupConfigInfo: BackupConfigInfo + backupCount: str + configState: typing_extensions.Literal[ + "BACKUP_CONFIG_STATE_UNSPECIFIED", "ACTIVE", "PASSIVE" + ] + createTime: str + dataSourceBackupApplianceApplication: DataSourceBackupApplianceApplication + dataSourceGcpResource: DataSourceGcpResource + etag: str + labels: dict[str, typing.Any] + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "ACTIVE", "DELETING", "ERROR" + ] + totalStoredBytes: str + updateTime: str + +@typing.type_check_only +class DataSourceBackupApplianceApplication(typing_extensions.TypedDict, total=False): + applianceId: str + applicationId: str + applicationName: str + backupAppliance: str + hostId: str + hostname: str + type: str + +@typing.type_check_only +class DataSourceGcpResource(typing_extensions.TypedDict, total=False): + computeInstanceDatasourceProperties: ComputeInstanceDataSourceProperties + gcpResourcename: str + location: str + type: str + +@typing.type_check_only +class DirectLocationAssignment(typing_extensions.TypedDict, total=False): + location: _list[LocationAssignment] + +@typing.type_check_only +class DisplayDevice(typing_extensions.TypedDict, total=False): + enableDisplay: bool + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Entry(typing_extensions.TypedDict, total=False): + key: str + value: str + @typing.type_check_only class Expr(typing_extensions.TypedDict, total=False): description: str @@ -35,6 +386,154 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class ExtraParameter(typing_extensions.TypedDict, total=False): + regionalMigDistributionPolicy: RegionalMigDistributionPolicy + +@typing.type_check_only +class FetchAccessTokenRequest(typing_extensions.TypedDict, total=False): + generationId: int + +@typing.type_check_only +class FetchAccessTokenResponse(typing_extensions.TypedDict, total=False): + expireTime: str + readLocation: str + token: str + writeLocation: str + +@typing.type_check_only +class FetchUsableBackupVaultsResponse(typing_extensions.TypedDict, total=False): + backupVaults: _list[BackupVault] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class FinalizeBackupRequest(typing_extensions.TypedDict, total=False): + backupId: str + consistencyTime: str + description: str + recoveryRangeEndTime: str + recoveryRangeStartTime: str + requestId: str + retentionDuration: str + +@typing.type_check_only +class GCPBackupPlanInfo(typing_extensions.TypedDict, total=False): + backupPlan: str + backupPlanRuleId: str + +@typing.type_check_only +class GcpBackupConfig(typing_extensions.TypedDict, total=False): + backupPlan: str + backupPlanAssociation: str + backupPlanDescription: str + backupPlanRules: _list[str] + +@typing.type_check_only +class GuestOsFeature(typing_extensions.TypedDict, total=False): + type: typing_extensions.Literal[ + "FEATURE_TYPE_UNSPECIFIED", + "VIRTIO_SCSI_MULTIQUEUE", + "WINDOWS", + "MULTI_IP_SUBNET", + "UEFI_COMPATIBLE", + "SECURE_BOOT", + "GVNIC", + "SEV_CAPABLE", + "BARE_METAL_LINUX_COMPATIBLE", + "SUSPEND_RESUME_COMPATIBLE", + "SEV_LIVE_MIGRATABLE", + "SEV_SNP_CAPABLE", + "TDX_CAPABLE", + "IDPF", + "SEV_LIVE_MIGRATABLE_V2", + ] + +@typing.type_check_only +class InitializeParams(typing_extensions.TypedDict, total=False): + diskName: str + replicaZones: _list[str] + +@typing.type_check_only +class InitiateBackupRequest(typing_extensions.TypedDict, total=False): + backupId: str + requestId: str + +@typing.type_check_only +class InitiateBackupResponse(typing_extensions.TypedDict, total=False): + backup: str + baseBackupGenerationId: int + newBackupGenerationId: int + +@typing.type_check_only +class InstanceParams(typing_extensions.TypedDict, total=False): + resourceManagerTags: dict[str, typing.Any] + +@typing.type_check_only +class IsolationExpectations(typing_extensions.TypedDict, total=False): + requirementOverride: RequirementOverride + ziOrgPolicy: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + ziRegionPolicy: typing_extensions.Literal[ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED", + ] + ziRegionState: typing_extensions.Literal[ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED", + ] + zoneIsolation: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zoneSeparation: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsOrgPolicy: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsRegionState: typing_extensions.Literal[ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED", + ] + +@typing.type_check_only +class ListBackupPlanAssociationsResponse(typing_extensions.TypedDict, total=False): + backupPlanAssociations: _list[BackupPlanAssociation] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupPlansResponse(typing_extensions.TypedDict, total=False): + backupPlans: _list[BackupPlan] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupVaultsResponse(typing_extensions.TypedDict, total=False): + backupVaults: _list[BackupVault] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListBackupsResponse(typing_extensions.TypedDict, total=False): + backups: _list[Backup] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListDataSourcesResponse(typing_extensions.TypedDict, total=False): + dataSources: _list[DataSource] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] @@ -59,6 +558,30 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LocationAssignment(typing_extensions.TypedDict, total=False): + location: str + locationType: typing_extensions.Literal[ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER", + ] + +@typing.type_check_only +class LocationData(typing_extensions.TypedDict, total=False): + blobstoreLocation: BlobstoreLocation + childAssetLocation: CloudAssetComposition + directLocation: DirectLocationAssignment + gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation + spannerLocation: SpannerLocation + @typing.type_check_only class ManagementServer(typing_extensions.TypedDict, total=False): baProxyUri: _list[str] @@ -70,6 +593,8 @@ class ManagementServer(typing_extensions.TypedDict, total=False): name: str networks: _list[NetworkConfig] oauth2ClientId: str + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "INSTANCE_STATE_UNSPECIFIED", "CREATING", @@ -90,6 +615,10 @@ class ManagementURI(typing_extensions.TypedDict, total=False): api: str webUi: str +@typing.type_check_only +class Metadata(typing_extensions.TypedDict, total=False): + items: _list[Entry] + @typing.type_check_only class NetworkConfig(typing_extensions.TypedDict, total=False): network: str @@ -97,6 +626,39 @@ class NetworkConfig(typing_extensions.TypedDict, total=False): "PEERING_MODE_UNSPECIFIED", "PRIVATE_SERVICE_ACCESS" ] +@typing.type_check_only +class NetworkInterface(typing_extensions.TypedDict, total=False): + accessConfigs: _list[AccessConfig] + aliasIpRanges: _list[AliasIpRange] + internalIpv6PrefixLength: int + ipv6AccessConfigs: _list[AccessConfig] + ipv6AccessType: typing_extensions.Literal[ + "UNSPECIFIED_IPV6_ACCESS_TYPE", "INTERNAL", "EXTERNAL" + ] + ipv6Address: str + name: str + network: str + networkAttachment: str + networkIP: str + nicType: typing_extensions.Literal["NIC_TYPE_UNSPECIFIED", "VIRTIO_NET", "GVNIC"] + queueCount: int + stackType: typing_extensions.Literal[ + "STACK_TYPE_UNSPECIFIED", "IPV4_ONLY", "IPV4_IPV6" + ] + subnetwork: str + +@typing.type_check_only +class NetworkPerformanceConfig(typing_extensions.TypedDict, total=False): + totalEgressBandwidthTier: typing_extensions.Literal[ + "TIER_UNSPECIFIED", "DEFAULT", "TIER_1" + ] + +@typing.type_check_only +class NodeAffinity(typing_extensions.TypedDict, total=False): + key: str + operator: typing_extensions.Literal["OPERATOR_UNSPECIFIED", "IN", "NOT_IN"] + values: _list[str] + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -116,6 +678,10 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str + @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): auditConfigs: _list[AuditConfig] @@ -123,17 +689,147 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): + targetShape: int + zones: _list[ZoneConfiguration] + +@typing.type_check_only +class RemoveDataSourceRequest(typing_extensions.TypedDict, total=False): + requestId: str + +@typing.type_check_only +class RequirementOverride(typing_extensions.TypedDict, total=False): + ziOverride: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zsOverride: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + +@typing.type_check_only +class RestoreBackupRequest(typing_extensions.TypedDict, total=False): + computeInstanceRestoreProperties: ComputeInstanceRestoreProperties + computeInstanceTargetEnvironment: ComputeInstanceTargetEnvironment + requestId: str + +@typing.type_check_only +class RuleConfigInfo(typing_extensions.TypedDict, total=False): + dataSource: str + lastBackupError: Status + lastBackupState: typing_extensions.Literal[ + "LAST_BACKUP_STATE_UNSPECIFIED", + "FIRST_BACKUP_PENDING", + "PERMISSION_DENIED", + "SUCCEEDED", + "FAILED", + ] + lastSuccessfulBackupConsistencyTime: str + ruleId: str + +@typing.type_check_only +class Scheduling(typing_extensions.TypedDict, total=False): + automaticRestart: bool + instanceTerminationAction: typing_extensions.Literal[ + "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", "DELETE", "STOP" + ] + localSsdRecoveryTimeout: SchedulingDuration + minNodeCpus: int + nodeAffinities: _list[NodeAffinity] + onHostMaintenance: typing_extensions.Literal[ + "ON_HOST_MAINTENANCE_UNSPECIFIED", "TERMINATE", "MIGRATE" + ] + preemptible: bool + provisioningModel: typing_extensions.Literal[ + "PROVISIONING_MODEL_UNSPECIFIED", "STANDARD", "SPOT" + ] + +@typing.type_check_only +class SchedulingDuration(typing_extensions.TypedDict, total=False): + nanos: int + seconds: str + +@typing.type_check_only +class ServiceAccount(typing_extensions.TypedDict, total=False): + email: str + scopes: _list[str] + +@typing.type_check_only +class ServiceLockInfo(typing_extensions.TypedDict, total=False): + operation: str + @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str +@typing.type_check_only +class SetInternalStatusRequest(typing_extensions.TypedDict, total=False): + backupConfigState: typing_extensions.Literal[ + "BACKUP_CONFIG_STATE_UNSPECIFIED", "ACTIVE", "PASSIVE" + ] + requestId: str + value: str + +@typing.type_check_only +class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] + dbName: _list[str] + +@typing.type_check_only +class StandardSchedule(typing_extensions.TypedDict, total=False): + backupWindow: BackupWindow + daysOfMonth: _list[int] + daysOfWeek: _list[ + typing_extensions.Literal[ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + ] + ] + hourlyFrequency: int + months: _list[ + typing_extensions.Literal[ + "MONTH_UNSPECIFIED", + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER", + ] + ] + recurrenceType: typing_extensions.Literal[ + "RECURRENCE_TYPE_UNSPECIFIED", "HOURLY", "DAILY", "WEEKLY", "MONTHLY", "YEARLY" + ] + timeZone: str + weekDayOfMonth: WeekDayOfMonth + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class Tags(typing_extensions.TypedDict, total=False): + items: _list[str] + +@typing.type_check_only +class TenantProjectProxy(typing_extensions.TypedDict, total=False): + projectNumbers: _list[str] + @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] @@ -142,6 +838,27 @@ class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): permissions: _list[str] +@typing.type_check_only +class TriggerBackupRequest(typing_extensions.TypedDict, total=False): + requestId: str + ruleId: str + +@typing.type_check_only +class WeekDayOfMonth(typing_extensions.TypedDict, total=False): + dayOfWeek: typing_extensions.Literal[ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + ] + weekOfMonth: typing_extensions.Literal[ + "WEEK_OF_MONTH_UNSPECIFIED", "FIRST", "SECOND", "THIRD", "FOURTH", "LAST" + ] + @typing.type_check_only class WorkforceIdentityBasedManagementURI(typing_extensions.TypedDict, total=False): firstPartyManagementUri: str @@ -151,3 +868,7 @@ class WorkforceIdentityBasedManagementURI(typing_extensions.TypedDict, total=Fal class WorkforceIdentityBasedOAuth2ClientID(typing_extensions.TypedDict, total=False): firstPartyOauth2ClientId: str thirdPartyOauth2ClientId: str + +@typing.type_check_only +class ZoneConfiguration(typing_extensions.TypedDict, total=False): + zone: str diff --git a/googleapiclient-stubs/_apis/batch/v1/schemas.pyi b/googleapiclient-stubs/_apis/batch/v1/schemas.pyi index ce643007..6c1a9fd0 100644 --- a/googleapiclient-stubs/_apis/batch/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/batch/v1/schemas.pyi @@ -52,6 +52,7 @@ class AgentMetadata(typing_extensions.TypedDict, total=False): instance: str instanceId: str instancePreemptionNoticeReceived: bool + machineType: str osRelease: dict[str, typing.Any] version: str zone: str @@ -190,6 +191,7 @@ class InstancePolicy(typing_extensions.TypedDict, total=False): @typing.type_check_only class InstancePolicyOrTemplate(typing_extensions.TypedDict, total=False): installGpuDrivers: bool + installOpsAgent: bool instanceTemplate: str policy: InstancePolicy diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi index 0aa29db8..ec6e2ac4 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1/resources.pyi @@ -360,6 +360,14 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): body: GoogleIamV1SetIamPolicyRequest = ..., **kwargs: typing.Any, ) -> GoogleIamV1PolicyHttpRequest: ... + def shouldThrottle( + self, + *, + name: str, + port: int = ..., + requestedAmount: str = ..., + **kwargs: typing.Any, + ) -> ShouldThrottleResponseHttpRequest: ... def testIamPermissions( self, *, @@ -624,3 +632,11 @@ class ListAppGatewaysResponseHttpRequest(googleapiclient.http.HttpRequest): http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> ListAppGatewaysResponse: ... + +@typing.type_check_only +class ShouldThrottleResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ShouldThrottleResponse: ... diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi index 51f676cb..0566ed32 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1/schemas.pyi @@ -481,6 +481,10 @@ class ListAppGatewaysResponse(typing_extensions.TypedDict, total=False): nextPageToken: str unreachable: _list[str] +@typing.type_check_only +class ShouldThrottleResponse(typing_extensions.TypedDict, total=False): + shouldThrottle: bool + @typing.type_check_only class Tunnelv1ProtoTunnelerError(typing_extensions.TypedDict, total=False): err: str diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi index 462dd825..a1f2e936 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/resources.pyi @@ -258,10 +258,20 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): self, *, parent: str, + aggregation: typing_extensions.Literal[ + "AGGREGATION_UNSPECIFIED", + "HOURLY", + "DAILY", + "WEEKLY", + "MONTHLY", + "CUSTOM_DATE_RANGE", + ] = ..., + endTime: str = ..., filter: str = ..., orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., + startTime: str = ..., view: typing_extensions.Literal[ "INSIGHT_VIEW_UNSPECIFIED", "BASIC", "FULL" ] = ..., @@ -346,6 +356,9 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscriptionHttpRequest: ... + def restart( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaRestartSubscriptionResponseHttpRequest: ... def global_(self) -> GlobalResource: ... def insights(self) -> InsightsResource: ... @@ -588,6 +601,14 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): body: GoogleIamV1SetIamPolicyRequest = ..., **kwargs: typing.Any, ) -> GoogleIamV1PolicyHttpRequest: ... + def shouldThrottle( + self, + *, + name: str, + port: int = ..., + requestedAmount: str = ..., + **kwargs: typing.Any, + ) -> ShouldThrottleResponseHttpRequest: ... def testIamPermissions( self, *, @@ -904,10 +925,20 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): self, *, parent: str, + aggregation: typing_extensions.Literal[ + "AGGREGATION_UNSPECIFIED", + "HOURLY", + "DAILY", + "WEEKLY", + "MONTHLY", + "CUSTOM_DATE_RANGE", + ] = ..., + endTime: str = ..., filter: str = ..., orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., + startTime: str = ..., view: typing_extensions.Literal[ "INSIGHT_VIEW_UNSPECIFIED", "BASIC", "FULL" ] = ..., @@ -998,6 +1029,13 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudBeyondcorpSecuritygatewaysV1alphaSecurityGatewayHttpRequest: ... + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... def list( self, *, @@ -1025,6 +1063,20 @@ class BeyondCorpResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: GoogleIamV1SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: GoogleIamV1TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any @@ -1280,6 +1332,18 @@ class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResp GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResponse ): ... +@typing.type_check_only +class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaRestartSubscriptionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ( + GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaRestartSubscriptionResponse + ): ... + @typing.type_check_only class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscriptionHttpRequest( googleapiclient.http.HttpRequest @@ -1403,3 +1467,11 @@ class ResolveInstanceConfigResponseHttpRequest(googleapiclient.http.HttpRequest) http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> ResolveInstanceConfigResponse: ... + +@typing.type_check_only +class ShouldThrottleResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ShouldThrottleResponse: ... diff --git a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi index a5ee5e5b..1a98c47f 100644 --- a/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/beyondcorp/v1alpha/schemas.pyi @@ -481,11 +481,18 @@ class GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig( displayName: str encryptionInfo: GoogleCloudBeyondcorpPartnerservicesV1alphaEncryptionInfo name: str + proxyProtocolConfig: GoogleCloudBeyondcorpPartnerservicesV1alphaProxyProtocolConfig proxyUri: str routingInfo: GoogleCloudBeyondcorpPartnerservicesV1alphaRoutingInfo transportInfo: GoogleCloudBeyondcorpPartnerservicesV1alphaTransportInfo updateTime: str +@typing.type_check_only +class GoogleCloudBeyondcorpPartnerservicesV1alphaProxyProtocolConfig( + typing_extensions.TypedDict, total=False +): + metadata: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudBeyondcorpPartnerservicesV1alphaRoutingInfo( typing_extensions.TypedDict, total=False @@ -629,6 +636,11 @@ class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaListSubscriptionsResp GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription ] +@typing.type_check_only +class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaRestartSubscriptionResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription( typing_extensions.TypedDict, total=False @@ -644,6 +656,9 @@ class GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription( state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "ACTIVE", "INACTIVE", "COMPLETED" ] + subscriberType: typing_extensions.Literal[ + "SUBSCRIBER_TYPE_UNSPECIFIED", "ONLINE", "OFFLINE" + ] type: typing_extensions.Literal["TYPE_UNSPECIFIED", "TRIAL", "PAID", "ALLOWLIST"] @typing.type_check_only @@ -833,6 +848,10 @@ class ResourceInfo(typing_extensions.TypedDict, total=False): class ServiceAccount(typing_extensions.TypedDict, total=False): email: str +@typing.type_check_only +class ShouldThrottleResponse(typing_extensions.TypedDict, total=False): + shouldThrottle: bool + @typing.type_check_only class Tunnelv1ProtoTunnelerError(typing_extensions.TypedDict, total=False): err: str diff --git a/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi b/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi index 7da55a55..eab6957c 100644 --- a/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/bigquery/v2/schemas.pyi @@ -342,6 +342,7 @@ class Dataset(typing_extensions.TypedDict, total=False): linkedDatasetSource: LinkedDatasetSource location: str maxTimeTravelHours: str + resourceTags: dict[str, typing.Any] restrictions: RestrictionConfig satisfiesPzi: bool satisfiesPzs: bool @@ -567,6 +568,11 @@ class FeatureValue(typing_extensions.TypedDict, total=False): class ForeignTypeInfo(typing_extensions.TypedDict, total=False): typeSystem: typing_extensions.Literal["TYPE_SYSTEM_UNSPECIFIED", "HIVE"] +@typing.type_check_only +class ForeignViewDefinition(typing_extensions.TypedDict, total=False): + dialect: str + query: str + @typing.type_check_only class GetIamPolicyRequest(typing_extensions.TypedDict, total=False): options: GetPolicyOptions @@ -665,6 +671,14 @@ class HparamTuningTrial(typing_extensions.TypedDict, total=False): trainingLoss: float trialId: str +@typing.type_check_only +class IdentityColumnInfo(typing_extensions.TypedDict, total=False): + generatedMode: typing_extensions.Literal[ + "GENERATED_MODE_UNSPECIFIED", "GENERATED_ALWAYS", "GENERATED_BY_DEFAULT" + ] + increment: str + start: str + @typing.type_check_only class IndexUnusedReason(typing_extensions.TypedDict, total=False): baseTable: TableReference @@ -779,6 +793,9 @@ class JobConfigurationLoad(typing_extensions.TypedDict, total=False): allowQuotedNewlines: bool autodetect: bool clustering: Clustering + columnNameCharacterMap: typing_extensions.Literal[ + "COLUMN_NAME_CHARACTER_MAP_UNSPECIFIED", "STRICT", "V1", "V2" + ] connectionProperties: _list[ConnectionProperty] copyFilesOnly: bool createDisposition: str @@ -888,6 +905,9 @@ class JobStatistics(typing_extensions.TypedDict, total=False): copy: JobStatistics5 creationTime: str dataMaskingStatistics: DataMaskingStatistics + edition: typing_extensions.Literal[ + "RESERVATION_EDITION_UNSPECIFIED", "STANDARD", "ENTERPRISE", "ENTERPRISE_PLUS" + ] endTime: str extract: JobStatistics4 finalExecutionDurationMs: str @@ -1624,6 +1644,7 @@ class Table(typing_extensions.TypedDict, total=False): numActiveLogicalBytes: str numActivePhysicalBytes: str numBytes: str + numCurrentPhysicalBytes: str numLongTermBytes: str numLongTermLogicalBytes: str numLongTermPhysicalBytes: str @@ -1689,6 +1710,7 @@ class TableFieldSchema(typing_extensions.TypedDict, total=False): description: str fields: _list[TableFieldSchema] foreignTypeDefinition: str + identityColumnInfo: IdentityColumnInfo maxLength: str mode: str name: str @@ -1712,6 +1734,7 @@ class TableList(typing_extensions.TypedDict, total=False): @typing.type_check_only class TableMetadataCacheUsage(typing_extensions.TypedDict, total=False): explanation: str + staleness: str tableReference: TableReference tableType: str unusedReason: typing_extensions.Literal[ @@ -2100,6 +2123,7 @@ class VectorSearchStatistics(typing_extensions.TypedDict, total=False): @typing.type_check_only class ViewDefinition(typing_extensions.TypedDict, total=False): + foreignDefinitions: _list[ForeignViewDefinition] privacyPolicy: PrivacyPolicy query: str useExplicitColumnNames: bool diff --git a/googleapiclient-stubs/_apis/bigqueryconnection/v1/schemas.pyi b/googleapiclient-stubs/_apis/bigqueryconnection/v1/schemas.pyi index 1f588a6d..2f2c16ec 100644 --- a/googleapiclient-stubs/_apis/bigqueryconnection/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/bigqueryconnection/v1/schemas.pyi @@ -100,6 +100,7 @@ class ConnectorConfigurationAsset(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConnectorConfigurationAuthentication(typing_extensions.TypedDict, total=False): + serviceAccount: str usernamePassword: ConnectorConfigurationUsernamePassword @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/bigquerydatapolicy/v1/resources.pyi b/googleapiclient-stubs/_apis/bigquerydatapolicy/v1/resources.pyi index 83d527ce..f7984cb7 100644 --- a/googleapiclient-stubs/_apis/bigquerydatapolicy/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/bigquerydatapolicy/v1/resources.pyi @@ -23,7 +23,7 @@ class BigQueryDataPolicyServiceResource(googleapiclient.discovery.Resource): self, *, parent: str, body: DataPolicy = ..., **kwargs: typing.Any ) -> DataPolicyHttpRequest: ... def delete( - self, *, name: str, **kwargs: typing.Any + self, *, name: str, force: bool = ..., **kwargs: typing.Any ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any @@ -54,6 +54,7 @@ class BigQueryDataPolicyServiceResource(googleapiclient.discovery.Resource): *, name: str, body: DataPolicy = ..., + allowMissing: bool = ..., updateMask: str = ..., **kwargs: typing.Any, ) -> DataPolicyHttpRequest: ... diff --git a/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi b/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi index 4f99fe53..c67a9199 100644 --- a/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/bigtableadmin/v2/schemas.pyi @@ -277,15 +277,40 @@ class GoogleBigtableAdminV2AuthorizedViewSubsetView( @typing.type_check_only class GoogleBigtableAdminV2TypeAggregate(typing_extensions.TypedDict, total=False): + hllppUniqueCount: GoogleBigtableAdminV2TypeAggregateHyperLogLogPlusPlusUniqueCount inputType: Type + max: GoogleBigtableAdminV2TypeAggregateMax + min: GoogleBigtableAdminV2TypeAggregateMin stateType: Type sum: GoogleBigtableAdminV2TypeAggregateSum +@typing.type_check_only +class GoogleBigtableAdminV2TypeAggregateHyperLogLogPlusPlusUniqueCount( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleBigtableAdminV2TypeAggregateMax( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleBigtableAdminV2TypeAggregateMin( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleBigtableAdminV2TypeAggregateSum( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleBigtableAdminV2TypeArray(typing_extensions.TypedDict, total=False): + elementType: Type + +@typing.type_check_only +class GoogleBigtableAdminV2TypeBool(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class GoogleBigtableAdminV2TypeBytes(typing_extensions.TypedDict, total=False): encoding: GoogleBigtableAdminV2TypeBytesEncoding @@ -299,6 +324,15 @@ class GoogleBigtableAdminV2TypeBytesEncodingRaw( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleBigtableAdminV2TypeDate(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class GoogleBigtableAdminV2TypeFloat32(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class GoogleBigtableAdminV2TypeFloat64(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class GoogleBigtableAdminV2TypeInt64(typing_extensions.TypedDict, total=False): encoding: GoogleBigtableAdminV2TypeInt64Encoding @@ -313,6 +347,42 @@ class GoogleBigtableAdminV2TypeInt64EncodingBigEndianBytes( ): bytesType: GoogleBigtableAdminV2TypeBytes +@typing.type_check_only +class GoogleBigtableAdminV2TypeMap(typing_extensions.TypedDict, total=False): + keyType: Type + valueType: Type + +@typing.type_check_only +class GoogleBigtableAdminV2TypeString(typing_extensions.TypedDict, total=False): + encoding: GoogleBigtableAdminV2TypeStringEncoding + +@typing.type_check_only +class GoogleBigtableAdminV2TypeStringEncoding(typing_extensions.TypedDict, total=False): + utf8Bytes: GoogleBigtableAdminV2TypeStringEncodingUtf8Bytes + utf8Raw: GoogleBigtableAdminV2TypeStringEncodingUtf8Raw + +@typing.type_check_only +class GoogleBigtableAdminV2TypeStringEncodingUtf8Bytes( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleBigtableAdminV2TypeStringEncodingUtf8Raw( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleBigtableAdminV2TypeStruct(typing_extensions.TypedDict, total=False): + fields: _list[GoogleBigtableAdminV2TypeStructField] + +@typing.type_check_only +class GoogleBigtableAdminV2TypeStructField(typing_extensions.TypedDict, total=False): + fieldName: str + type: Type + +@typing.type_check_only +class GoogleBigtableAdminV2TypeTimestamp(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class HotTablet(typing_extensions.TypedDict, total=False): endKey: str @@ -540,8 +610,17 @@ class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Type(typing_extensions.TypedDict, total=False): aggregateType: GoogleBigtableAdminV2TypeAggregate + arrayType: GoogleBigtableAdminV2TypeArray + boolType: GoogleBigtableAdminV2TypeBool bytesType: GoogleBigtableAdminV2TypeBytes + dateType: GoogleBigtableAdminV2TypeDate + float32Type: GoogleBigtableAdminV2TypeFloat32 + float64Type: GoogleBigtableAdminV2TypeFloat64 int64Type: GoogleBigtableAdminV2TypeInt64 + mapType: GoogleBigtableAdminV2TypeMap + stringType: GoogleBigtableAdminV2TypeString + structType: GoogleBigtableAdminV2TypeStruct + timestampType: GoogleBigtableAdminV2TypeTimestamp @typing.type_check_only class UndeleteTableMetadata(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/binaryauthorization/v1/resources.pyi b/googleapiclient-stubs/_apis/binaryauthorization/v1/resources.pyi index 6cf1be1b..a9be06d3 100644 --- a/googleapiclient-stubs/_apis/binaryauthorization/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/binaryauthorization/v1/resources.pyi @@ -103,7 +103,7 @@ class BinaryAuthorizationResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> PlatformPolicyHttpRequest: ... def delete( - self, *, name: str, **kwargs: typing.Any + self, *, name: str, etag: str = ..., **kwargs: typing.Any ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any diff --git a/googleapiclient-stubs/_apis/binaryauthorization/v1/schemas.pyi b/googleapiclient-stubs/_apis/binaryauthorization/v1/schemas.pyi index a3bc1a84..fbcec218 100644 --- a/googleapiclient-stubs/_apis/binaryauthorization/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/binaryauthorization/v1/schemas.pyi @@ -207,6 +207,7 @@ class PkixPublicKeySet(typing_extensions.TypedDict, total=False): @typing.type_check_only class PlatformPolicy(typing_extensions.TypedDict, total=False): description: str + etag: str gkePolicy: GkePolicy name: str updateTime: str diff --git a/googleapiclient-stubs/_apis/calendar/v3/resources.pyi b/googleapiclient-stubs/_apis/calendar/v3/resources.pyi index cbfdfd81..8b20e33f 100644 --- a/googleapiclient-stubs/_apis/calendar/v3/resources.pyi +++ b/googleapiclient-stubs/_apis/calendar/v3/resources.pyi @@ -234,11 +234,15 @@ class CalendarResource(googleapiclient.discovery.Resource): calendarId: str, alwaysIncludeEmail: bool = ..., eventTypes: typing_extensions.Literal[ - "default", "focusTime", "outOfOffice", "workingLocation" + "default", "focusTime", "fromGmail", "outOfOffice", "workingLocation" ] | _list[ typing_extensions.Literal[ - "default", "focusTime", "outOfOffice", "workingLocation" + "default", + "focusTime", + "fromGmail", + "outOfOffice", + "workingLocation", ] ] = ..., iCalUID: str = ..., @@ -316,11 +320,15 @@ class CalendarResource(googleapiclient.discovery.Resource): body: Channel = ..., alwaysIncludeEmail: bool = ..., eventTypes: typing_extensions.Literal[ - "default", "focusTime", "outOfOffice", "workingLocation" + "default", "focusTime", "fromGmail", "outOfOffice", "workingLocation" ] | _list[ typing_extensions.Literal[ - "default", "focusTime", "outOfOffice", "workingLocation" + "default", + "focusTime", + "fromGmail", + "outOfOffice", + "workingLocation", ] ] = ..., iCalUID: str = ..., diff --git a/googleapiclient-stubs/_apis/certificatemanager/v1/resources.pyi b/googleapiclient-stubs/_apis/certificatemanager/v1/resources.pyi index 292863aa..02329c61 100644 --- a/googleapiclient-stubs/_apis/certificatemanager/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/certificatemanager/v1/resources.pyi @@ -50,6 +50,14 @@ class CertificateManagerResource(googleapiclient.discovery.Resource): previous_request: ListCertificateIssuanceConfigsResponseHttpRequest, previous_response: ListCertificateIssuanceConfigsResponse, ) -> ListCertificateIssuanceConfigsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: CertificateIssuanceConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... @typing.type_check_only class CertificateMapsResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/chat/v1/schemas.pyi b/googleapiclient-stubs/_apis/chat/v1/schemas.pyi index fea087c8..4d5a034a 100644 --- a/googleapiclient-stubs/_apis/chat/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/chat/v1/schemas.pyi @@ -4,6 +4,13 @@ import typing_extensions _list = list +@typing.type_check_only +class AccessSettings(typing_extensions.TypedDict, total=False): + accessState: typing_extensions.Literal[ + "ACCESS_STATE_UNSPECIFIED", "PRIVATE", "DISCOVERABLE" + ] + audience: str + @typing.type_check_only class AccessoryWidget(typing_extensions.TypedDict, total=False): buttonList: GoogleAppsCardV1ButtonList @@ -814,6 +821,7 @@ class SlashCommandMetadata(typing_extensions.TypedDict, total=False): @typing.type_check_only class Space(typing_extensions.TypedDict, total=False): + accessSettings: AccessSettings adminInstalled: bool createTime: str displayName: str @@ -834,6 +842,7 @@ class Space(typing_extensions.TypedDict, total=False): spaceType: typing_extensions.Literal[ "SPACE_TYPE_UNSPECIFIED", "SPACE", "GROUP_CHAT", "DIRECT_MESSAGE" ] + spaceUri: str threaded: bool type: typing_extensions.Literal["TYPE_UNSPECIFIED", "ROOM", "DM"] diff --git a/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi index 9d81f6a1..3e7650f7 100644 --- a/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/checks/v1alpha/schemas.pyi @@ -142,6 +142,7 @@ class GoogleChecksReportV1alphaCheck(typing_extensions.TypedDict, total=False): "DATA_MONITORING_OUTDATED_SDK_VERSION", "DATA_MONITORING_CRITICAL_SDK_ISSUE", "PRIVACY_POLICY_DATA_TYPE_SENSITIVE_INFO", + "DATA_MONITORING_PII_LOGCAT_LEAK", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi index 7b7365fb..45412b9b 100644 --- a/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/chromemanagement/v1/schemas.pyi @@ -38,6 +38,35 @@ class GoogleChromeManagementV1AppDetails(typing_extensions.TypedDict, total=Fals "APP_ITEM_TYPE_UNSPECIFIED", "CHROME", "ANDROID", "WEB" ] +@typing.type_check_only +class GoogleChromeManagementV1AppReport(typing_extensions.TypedDict, total=False): + reportTime: str + usageData: _list[GoogleChromeManagementV1AppUsageData] + +@typing.type_check_only +class GoogleChromeManagementV1AppUsageData(typing_extensions.TypedDict, total=False): + appId: str + appInstanceId: str + appType: typing_extensions.Literal[ + "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED", + "APPLICATION_TYPE_ARC", + "APPLICATION_TYPE_BUILT_IN", + "APPLICATION_TYPE_CROSTINI", + "APPLICATION_TYPE_CHROME_APP", + "APPLICATION_TYPE_WEB", + "APPLICATION_TYPE_MAC_OS", + "APPLICATION_TYPE_PLUGIN_VM", + "APPLICATION_TYPE_STANDALONE_BROWSER", + "APPLICATION_TYPE_REMOTE", + "APPLICATION_TYPE_BOREALIS", + "APPLICATION_TYPE_SYSTEM_WEB", + "APPLICATION_TYPE_STANDALONE_BROWSER_CHROME_APP", + "APPLICATION_TYPE_EXTENSION", + "APPLICATION_TYPE_STANDALONE_BROWSER_EXTENSION", + "APPLICATION_TYPE_BRUSCHETTA", + ] + runningDuration: str + @typing.type_check_only class GoogleChromeManagementV1AudioStatusReport( typing_extensions.TypedDict, total=False @@ -759,6 +788,7 @@ class GoogleChromeManagementV1TelemetryAppLaunchEvent( "APPLICATION_LAUNCH_SOURCE_FIRST_RUN", "APPLICATION_LAUNCH_SOURCE_WELCOME_TOUR", "APPLICATION_LAUNCH_SOURCE_FOCUS_MODE", + "APPLICATION_LAUNCH_SOURCE_SPARKY", ] appType: typing_extensions.Literal[ "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED", @@ -817,6 +847,7 @@ class GoogleChromeManagementV1TelemetryAudioSevereUnderrunEvent( @typing.type_check_only class GoogleChromeManagementV1TelemetryDevice(typing_extensions.TypedDict, total=False): + appReport: _list[GoogleChromeManagementV1AppReport] audioStatusReport: _list[GoogleChromeManagementV1AudioStatusReport] batteryInfo: _list[GoogleChromeManagementV1BatteryInfo] batteryStatusReport: _list[GoogleChromeManagementV1BatteryStatusReport] @@ -872,6 +903,7 @@ class GoogleChromeManagementV1TelemetryEvent(typing_extensions.TypedDict, total= "APP_INSTALLED", "APP_UNINSTALLED", "APP_LAUNCHED", + "OS_CRASH", ] httpsLatencyChangeEvent: GoogleChromeManagementV1TelemetryHttpsLatencyChangeEvent name: str @@ -904,6 +936,7 @@ class GoogleChromeManagementV1TelemetryEventNotificationFilter( "APP_INSTALLED", "APP_UNINSTALLED", "APP_LAUNCHED", + "OS_CRASH", ] ] @@ -977,6 +1010,7 @@ class GoogleChromeManagementV1TelemetryUser(typing_extensions.TypedDict, total=F class GoogleChromeManagementV1TelemetryUserDevice( typing_extensions.TypedDict, total=False ): + appReport: _list[GoogleChromeManagementV1AppReport] audioStatusReport: _list[GoogleChromeManagementV1AudioStatusReport] deviceActivityReport: _list[GoogleChromeManagementV1DeviceActivityReport] deviceId: str diff --git a/googleapiclient-stubs/_apis/civicinfo/v2/resources.pyi b/googleapiclient-stubs/_apis/civicinfo/v2/resources.pyi index 3f4ea7c3..72bf25b1 100644 --- a/googleapiclient-stubs/_apis/civicinfo/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/civicinfo/v2/resources.pyi @@ -27,7 +27,7 @@ class CivicInfoResource(googleapiclient.discovery.Resource): def voterInfoQuery( self, *, - address: str, + address: str = ..., electionId: str = ..., officialOnly: bool = ..., productionDataOnly: bool = ..., diff --git a/googleapiclient-stubs/_apis/classroom/v1/resources.pyi b/googleapiclient-stubs/_apis/classroom/v1/resources.pyi index 11a9899b..829bd37c 100644 --- a/googleapiclient-stubs/_apis/classroom/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/classroom/v1/resources.pyi @@ -39,6 +39,63 @@ class ClassroomResource(googleapiclient.discovery.Resource): @typing.type_check_only class AnnouncementsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AddOnAttachmentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + courseId: str, + itemId: str, + body: AddOnAttachment = ..., + addOnToken: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def delete( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + postId: str = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def list( + self, + *, + courseId: str, + itemId: str, + pageSize: int = ..., + pageToken: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> ListAddOnAttachmentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAddOnAttachmentsResponseHttpRequest, + previous_response: ListAddOnAttachmentsResponse, + ) -> ListAddOnAttachmentsResponseHttpRequest | None: ... + def patch( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + body: AddOnAttachment = ..., + postId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def create( self, *, courseId: str, body: Announcement = ..., **kwargs: typing.Any ) -> AnnouncementHttpRequest: ... @@ -48,6 +105,16 @@ class ClassroomResource(googleapiclient.discovery.Resource): def get( self, *, courseId: str, id: str, **kwargs: typing.Any ) -> AnnouncementHttpRequest: ... + def getAddOnContext( + self, + *, + courseId: str, + itemId: str, + addOnToken: str = ..., + attachmentId: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnContextHttpRequest: ... def list( self, *, @@ -90,9 +157,93 @@ class ClassroomResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> AnnouncementHttpRequest: ... + def addOnAttachments(self) -> AddOnAttachmentsResource: ... @typing.type_check_only class CourseWorkResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AddOnAttachmentsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class StudentSubmissionsResource(googleapiclient.discovery.Resource): + def get( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + submissionId: str, + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentStudentSubmissionHttpRequest: ... + def patch( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + submissionId: str, + body: AddOnAttachmentStudentSubmission = ..., + postId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentStudentSubmissionHttpRequest: ... + + def create( + self, + *, + courseId: str, + itemId: str, + body: AddOnAttachment = ..., + addOnToken: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def delete( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + postId: str = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def list( + self, + *, + courseId: str, + itemId: str, + pageSize: int = ..., + pageToken: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> ListAddOnAttachmentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAddOnAttachmentsResponseHttpRequest, + previous_response: ListAddOnAttachmentsResponse, + ) -> ListAddOnAttachmentsResponseHttpRequest | None: ... + def patch( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + body: AddOnAttachment = ..., + postId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def studentSubmissions(self) -> StudentSubmissionsResource: ... + @typing.type_check_only class StudentSubmissionsResource(googleapiclient.discovery.Resource): def get( @@ -195,6 +346,16 @@ class ClassroomResource(googleapiclient.discovery.Resource): def get( self, *, courseId: str, id: str, **kwargs: typing.Any ) -> CourseWorkHttpRequest: ... + def getAddOnContext( + self, + *, + courseId: str, + itemId: str, + addOnToken: str = ..., + attachmentId: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnContextHttpRequest: ... def list( self, *, @@ -234,10 +395,68 @@ class ClassroomResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> CourseWorkHttpRequest: ... + def addOnAttachments(self) -> AddOnAttachmentsResource: ... def studentSubmissions(self) -> StudentSubmissionsResource: ... @typing.type_check_only class CourseWorkMaterialsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AddOnAttachmentsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + courseId: str, + itemId: str, + body: AddOnAttachment = ..., + addOnToken: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def delete( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + postId: str = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def list( + self, + *, + courseId: str, + itemId: str, + pageSize: int = ..., + pageToken: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> ListAddOnAttachmentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAddOnAttachmentsResponseHttpRequest, + previous_response: ListAddOnAttachmentsResponse, + ) -> ListAddOnAttachmentsResponseHttpRequest | None: ... + def patch( + self, + *, + courseId: str, + itemId: str, + attachmentId: str, + body: AddOnAttachment = ..., + postId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def create( self, *, @@ -251,6 +470,16 @@ class ClassroomResource(googleapiclient.discovery.Resource): def get( self, *, courseId: str, id: str, **kwargs: typing.Any ) -> CourseWorkMaterialHttpRequest: ... + def getAddOnContext( + self, + *, + courseId: str, + itemId: str, + addOnToken: str = ..., + attachmentId: str = ..., + postId: str = ..., + **kwargs: typing.Any, + ) -> AddOnContextHttpRequest: ... def list( self, *, @@ -290,6 +519,104 @@ class ClassroomResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> CourseWorkMaterialHttpRequest: ... + def addOnAttachments(self) -> AddOnAttachmentsResource: ... + + @typing.type_check_only + class PostsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AddOnAttachmentsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class StudentSubmissionsResource(googleapiclient.discovery.Resource): + def get( + self, + *, + courseId: str, + postId: str, + attachmentId: str, + submissionId: str, + itemId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentStudentSubmissionHttpRequest: ... + def patch( + self, + *, + courseId: str, + postId: str, + attachmentId: str, + submissionId: str, + body: AddOnAttachmentStudentSubmission = ..., + itemId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentStudentSubmissionHttpRequest: ... + + def create( + self, + *, + courseId: str, + postId: str, + body: AddOnAttachment = ..., + addOnToken: str = ..., + itemId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def delete( + self, + *, + courseId: str, + postId: str, + attachmentId: str, + itemId: str = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get( + self, + *, + courseId: str, + postId: str, + attachmentId: str, + itemId: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def list( + self, + *, + courseId: str, + postId: str, + itemId: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAddOnAttachmentsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAddOnAttachmentsResponseHttpRequest, + previous_response: ListAddOnAttachmentsResponse, + ) -> ListAddOnAttachmentsResponseHttpRequest | None: ... + def patch( + self, + *, + courseId: str, + postId: str, + attachmentId: str, + body: AddOnAttachment = ..., + itemId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> AddOnAttachmentHttpRequest: ... + def studentSubmissions(self) -> StudentSubmissionsResource: ... + + def getAddOnContext( + self, + *, + courseId: str, + postId: str, + addOnToken: str = ..., + attachmentId: str = ..., + itemId: str = ..., + **kwargs: typing.Any, + ) -> AddOnContextHttpRequest: ... + def addOnAttachments(self) -> AddOnAttachmentsResource: ... @typing.type_check_only class StudentsResource(googleapiclient.discovery.Resource): @@ -432,6 +759,7 @@ class ClassroomResource(googleapiclient.discovery.Resource): def announcements(self) -> AnnouncementsResource: ... def courseWork(self) -> CourseWorkResource: ... def courseWorkMaterials(self) -> CourseWorkMaterialsResource: ... + def posts(self) -> PostsResource: ... def students(self) -> StudentsResource: ... def teachers(self) -> TeachersResource: ... def topics(self) -> TopicsResource: ... @@ -560,6 +888,30 @@ class ClassroomResource(googleapiclient.discovery.Resource): def registrations(self) -> RegistrationsResource: ... def userProfiles(self) -> UserProfilesResource: ... +@typing.type_check_only +class AddOnAttachmentHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AddOnAttachment: ... + +@typing.type_check_only +class AddOnAttachmentStudentSubmissionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AddOnAttachmentStudentSubmission: ... + +@typing.type_check_only +class AddOnContextHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AddOnContext: ... + @typing.type_check_only class AnnouncementHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -632,6 +984,14 @@ class InvitationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Invitation: ... +@typing.type_check_only +class ListAddOnAttachmentsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAddOnAttachmentsResponse: ... + @typing.type_check_only class ListAnnouncementsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi b/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi index 9089a2c2..40a452be 100644 --- a/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/classroom/v1/schemas.pyi @@ -4,6 +4,42 @@ import typing_extensions _list = list +@typing.type_check_only +class AddOnAttachment(typing_extensions.TypedDict, total=False): + copyHistory: _list[CopyHistory] + courseId: str + dueDate: Date + dueTime: TimeOfDay + id: str + itemId: str + maxPoints: float + postId: str + studentViewUri: EmbedUri + studentWorkReviewUri: EmbedUri + teacherViewUri: EmbedUri + title: str + +@typing.type_check_only +class AddOnAttachmentStudentSubmission(typing_extensions.TypedDict, total=False): + pointsEarned: float + postSubmissionState: typing_extensions.Literal[ + "SUBMISSION_STATE_UNSPECIFIED", + "NEW", + "CREATED", + "TURNED_IN", + "RETURNED", + "RECLAIMED_BY_STUDENT", + ] + +@typing.type_check_only +class AddOnContext(typing_extensions.TypedDict, total=False): + courseId: str + itemId: str + postId: str + studentContext: StudentContext + supportsStudentWork: bool + teacherContext: TeacherContext + @typing.type_check_only class Announcement(typing_extensions.TypedDict, total=False): alternateLink: str @@ -42,6 +78,13 @@ class Attachment(typing_extensions.TypedDict, total=False): class CloudPubsubTopic(typing_extensions.TypedDict, total=False): topicName: str +@typing.type_check_only +class CopyHistory(typing_extensions.TypedDict, total=False): + attachmentId: str + courseId: str + itemId: str + postId: str + @typing.type_check_only class Course(typing_extensions.TypedDict, total=False): alternateLink: str @@ -174,6 +217,10 @@ class DriveFolder(typing_extensions.TypedDict, total=False): id: str title: str +@typing.type_check_only +class EmbedUri(typing_extensions.TypedDict, total=False): + uri: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -268,6 +315,11 @@ class Link(typing_extensions.TypedDict, total=False): title: str url: str +@typing.type_check_only +class ListAddOnAttachmentsResponse(typing_extensions.TypedDict, total=False): + addOnAttachments: _list[AddOnAttachment] + nextPageToken: str + @typing.type_check_only class ListAnnouncementsResponse(typing_extensions.TypedDict, total=False): announcements: _list[Announcement] @@ -416,6 +468,10 @@ class Student(typing_extensions.TypedDict, total=False): studentWorkFolder: DriveFolder userId: str +@typing.type_check_only +class StudentContext(typing_extensions.TypedDict, total=False): + submissionId: str + @typing.type_check_only class StudentSubmission(typing_extensions.TypedDict, total=False): alternateLink: str @@ -459,6 +515,9 @@ class Teacher(typing_extensions.TypedDict, total=False): profile: UserProfile userId: str +@typing.type_check_only +class TeacherContext(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class TimeOfDay(typing_extensions.TypedDict, total=False): hours: int diff --git a/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi index f8d39eb5..0de9caba 100644 --- a/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudbuild/v1/schemas.pyi @@ -408,12 +408,6 @@ class FailureInfo(typing_extensions.TypedDict, total=False): class FileHashes(typing_extensions.TypedDict, total=False): fileHash: _list[Hash] -@typing.type_check_only -class GCSLocation(typing_extensions.TypedDict, total=False): - bucket: str - generation: str - object: str - @typing.type_check_only class GitConfig(typing_extensions.TypedDict, total=False): http: HttpConfig @@ -553,7 +547,6 @@ class HttpBody(typing_extensions.TypedDict, total=False): @typing.type_check_only class HttpConfig(typing_extensions.TypedDict, total=False): proxySecretVersionName: str - proxySslCaInfo: GCSLocation @typing.type_check_only class InlineSecret(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/cloudbuild/v2/schemas.pyi b/googleapiclient-stubs/_apis/cloudbuild/v2/schemas.pyi index e0f864fb..5c9b96c8 100644 --- a/googleapiclient-stubs/_apis/cloudbuild/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudbuild/v2/schemas.pyi @@ -268,20 +268,26 @@ class ParamSpec(typing_extensions.TypedDict, total=False): default: ParamValue description: str name: str - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "STRING", "ARRAY"] + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "STRING", "ARRAY", "OBJECT"] @typing.type_check_only class ParamValue(typing_extensions.TypedDict, total=False): arrayVal: _list[str] + objectVal: dict[str, typing.Any] stringVal: str - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "STRING", "ARRAY"] + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "STRING", "ARRAY", "OBJECT"] @typing.type_check_only class PipelineRef(typing_extensions.TypedDict, total=False): name: str params: _list[Param] resolver: typing_extensions.Literal[ - "RESOLVER_NAME_UNSPECIFIED", "BUNDLES", "GCB_REPO", "GIT", "DEVELOPER_CONNECT" + "RESOLVER_NAME_UNSPECIFIED", + "BUNDLES", + "GCB_REPO", + "GIT", + "DEVELOPER_CONNECT", + "DEFAULT", ] @typing.type_check_only @@ -471,6 +477,9 @@ class Step(typing_extensions.TypedDict, total=False): env: _list[EnvVar] image: str name: str + onError: typing_extensions.Literal[ + "ON_ERROR_TYPE_UNSPECIFIED", "STOP_AND_FAIL", "CONTINUE" + ] params: _list[Param] ref: StepRef script: str @@ -484,7 +493,12 @@ class StepRef(typing_extensions.TypedDict, total=False): name: str params: _list[Param] resolver: typing_extensions.Literal[ - "RESOLVER_NAME_UNSPECIFIED", "BUNDLES", "GCB_REPO", "GIT", "DEVELOPER_CONNECT" + "RESOLVER_NAME_UNSPECIFIED", + "BUNDLES", + "GCB_REPO", + "GIT", + "DEVELOPER_CONNECT", + "DEFAULT", ] @typing.type_check_only @@ -497,7 +511,12 @@ class TaskRef(typing_extensions.TypedDict, total=False): name: str params: _list[Param] resolver: typing_extensions.Literal[ - "RESOLVER_NAME_UNSPECIFIED", "BUNDLES", "GCB_REPO", "GIT", "DEVELOPER_CONNECT" + "RESOLVER_NAME_UNSPECIFIED", + "BUNDLES", + "GCB_REPO", + "GIT", + "DEVELOPER_CONNECT", + "DEFAULT", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi b/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi index 8d774a0f..35e43c56 100644 --- a/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudchannel/v1/resources.pyi @@ -506,6 +506,7 @@ class CloudchannelResource(googleapiclient.discovery.Resource): self, *, account: str, + integrator: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -560,6 +561,39 @@ class CloudchannelResource(googleapiclient.discovery.Resource): def reports(self) -> ReportsResource: ... def skuGroups(self) -> SkuGroupsResource: ... + @typing.type_check_only + class IntegratorsResource(googleapiclient.discovery.Resource): + def listSubscribers( + self, + *, + integrator: str, + account: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudChannelV1ListSubscribersResponseHttpRequest: ... + def listSubscribers_next( + self, + previous_request: GoogleCloudChannelV1ListSubscribersResponseHttpRequest, + previous_response: GoogleCloudChannelV1ListSubscribersResponse, + ) -> GoogleCloudChannelV1ListSubscribersResponseHttpRequest | None: ... + def register( + self, + *, + integrator: str, + account: str = ..., + serviceAccount: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudChannelV1RegisterSubscriberResponseHttpRequest: ... + def unregister( + self, + *, + integrator: str, + account: str = ..., + serviceAccount: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudChannelV1UnregisterSubscriberResponseHttpRequest: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -639,6 +673,7 @@ class CloudchannelResource(googleapiclient.discovery.Resource): | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... def accounts(self) -> AccountsResource: ... + def integrators(self) -> IntegratorsResource: ... def operations(self) -> OperationsResource: ... def products(self) -> ProductsResource: ... diff --git a/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi index 9d9ab459..148b1127 100644 --- a/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudchannel/v1/schemas.pyi @@ -673,6 +673,7 @@ class GoogleCloudChannelV1QueryEligibleBillingAccountsResponse( class GoogleCloudChannelV1RegisterSubscriberRequest( typing_extensions.TypedDict, total=False ): + integrator: str serviceAccount: str @typing.type_check_only @@ -867,6 +868,7 @@ class GoogleCloudChannelV1TrialSettings(typing_extensions.TypedDict, total=False class GoogleCloudChannelV1UnregisterSubscriberRequest( typing_extensions.TypedDict, total=False ): + integrator: str serviceAccount: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi index 946bf6e3..73e1239b 100644 --- a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1/schemas.pyi @@ -150,6 +150,7 @@ class PartnerPermissions(typing_extensions.TypedDict, total=False): "ASSURED_WORKLOADS_MONITORING", "ACCESS_APPROVAL_REQUESTS", "ASSURED_WORKLOADS_EKM_CONNECTION_STATUS", + "ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER", ] ] diff --git a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi index 946bf6e3..73e1239b 100644 --- a/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudcontrolspartner/v1beta/schemas.pyi @@ -150,6 +150,7 @@ class PartnerPermissions(typing_extensions.TypedDict, total=False): "ASSURED_WORKLOADS_MONITORING", "ACCESS_APPROVAL_REQUESTS", "ASSURED_WORKLOADS_EKM_CONNECTION_STATUS", + "ACCESS_TRANSPARENCY_LOGS_SUPPORT_CASE_VIEWER", ] ] diff --git a/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi b/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi index a8c6620a..6314bc71 100644 --- a/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/clouddeploy/v1/schemas.pyi @@ -90,7 +90,6 @@ class AutomationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -101,7 +100,6 @@ class AutomationResourceSelector(typing_extensions.TypedDict, total=False): @typing.type_check_only class AutomationRolloutMetadata(typing_extensions.TypedDict, total=False): advanceAutomationRuns: _list[str] - currentRepairAutomationRun: str promoteAutomationRun: str repairAutomationRuns: _list[str] @@ -158,7 +156,6 @@ class AutomationRunEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -277,6 +274,22 @@ class CustomTargetType(typing_extensions.TypedDict, total=False): uid: str updateTime: str +@typing.type_check_only +class CustomTargetTypeNotificationEvent(typing_extensions.TypedDict, total=False): + customTargetType: str + customTargetTypeUid: str + message: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", + "TYPE_PUBSUB_NOTIFICATION_FAILURE", + "TYPE_RESOURCE_STATE_CHANGE", + "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", + "TYPE_ROLLOUT_UPDATE", + "TYPE_RENDER_STATUES_CHANGE", + ] + @typing.type_check_only class Date(typing_extensions.TypedDict, total=False): day: int @@ -315,7 +328,6 @@ class DeliveryPipelineNotificationEvent(typing_extensions.TypedDict, total=False "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -354,6 +366,22 @@ class DeployParameters(typing_extensions.TypedDict, total=False): matchTargetLabels: dict[str, typing.Any] values: dict[str, typing.Any] +@typing.type_check_only +class DeployPolicyNotificationEvent(typing_extensions.TypedDict, total=False): + deployPolicy: str + deployPolicyUid: str + message: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", + "TYPE_PUBSUB_NOTIFICATION_FAILURE", + "TYPE_RESOURCE_STATE_CHANGE", + "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", + "TYPE_ROLLOUT_UPDATE", + "TYPE_RENDER_STATUES_CHANGE", + ] + @typing.type_check_only class DeploymentJobs(typing_extensions.TypedDict, total=False): deployJob: Job @@ -395,6 +423,7 @@ class Expr(typing_extensions.TypedDict, total=False): class GatewayServiceMesh(typing_extensions.TypedDict, total=False): deployment: str httpRoute: str + podSelectorLabel: str routeUpdateWaitTime: str service: str stableCutbackDuration: str @@ -403,6 +432,7 @@ class GatewayServiceMesh(typing_extensions.TypedDict, total=False): class GkeCluster(typing_extensions.TypedDict, total=False): cluster: str internalIp: bool + proxyUrl: str @typing.type_check_only class IgnoreJobRequest(typing_extensions.TypedDict, total=False): @@ -478,7 +508,6 @@ class JobRunNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -737,7 +766,6 @@ class ReleaseNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -761,7 +789,6 @@ class ReleaseRenderEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -770,11 +797,6 @@ class RenderMetadata(typing_extensions.TypedDict, total=False): cloudRun: CloudRunRenderMetadata custom: CustomMetadata -@typing.type_check_only -class RepairMode(typing_extensions.TypedDict, total=False): - retry: Retry - rollback: Rollback - @typing.type_check_only class RepairPhase(typing_extensions.TypedDict, total=False): retry: RetryPhase @@ -782,7 +804,6 @@ class RepairPhase(typing_extensions.TypedDict, total=False): @typing.type_check_only class RepairRolloutOperation(typing_extensions.TypedDict, total=False): - currentRepairModeIndex: str jobId: str phaseId: str repairPhases: _list[RepairPhase] @@ -793,16 +814,6 @@ class RepairRolloutRule(typing_extensions.TypedDict, total=False): condition: AutomationRuleCondition id: str jobs: _list[str] - repairModes: _list[RepairMode] - sourcePhases: _list[str] - -@typing.type_check_only -class Retry(typing_extensions.TypedDict, total=False): - attempts: str - backoffMode: typing_extensions.Literal[ - "BACKOFF_MODE_UNSPECIFIED", "BACKOFF_MODE_LINEAR", "BACKOFF_MODE_EXPONENTIAL" - ] - wait: str @typing.type_check_only class RetryAttempt(typing_extensions.TypedDict, total=False): @@ -814,7 +825,6 @@ class RetryAttempt(typing_extensions.TypedDict, total=False): "REPAIR_STATE_FAILED", "REPAIR_STATE_IN_PROGRESS", "REPAIR_STATE_PENDING", - "REPAIR_STATE_SKIPPED", "REPAIR_STATE_ABORTED", ] stateDesc: str @@ -834,14 +844,8 @@ class RetryPhase(typing_extensions.TypedDict, total=False): backoffMode: typing_extensions.Literal[ "BACKOFF_MODE_UNSPECIFIED", "BACKOFF_MODE_LINEAR", "BACKOFF_MODE_EXPONENTIAL" ] - jobId: str - phaseId: str totalAttempts: str -@typing.type_check_only -class Rollback(typing_extensions.TypedDict, total=False): - destinationPhase: str - @typing.type_check_only class RollbackAttempt(typing_extensions.TypedDict, total=False): destinationPhase: str @@ -853,7 +857,6 @@ class RollbackAttempt(typing_extensions.TypedDict, total=False): "REPAIR_STATE_FAILED", "REPAIR_STATE_IN_PROGRESS", "REPAIR_STATE_PENDING", - "REPAIR_STATE_SKIPPED", "REPAIR_STATE_ABORTED", ] stateDesc: str @@ -946,7 +949,6 @@ class RolloutNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -982,7 +984,6 @@ class RolloutUpdateEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] @@ -999,6 +1000,7 @@ class SerialPipeline(typing_extensions.TypedDict, total=False): class ServiceNetworking(typing_extensions.TypedDict, total=False): deployment: str disablePodOverprovisioning: bool + podSelectorLabel: str service: str @typing.type_check_only @@ -1117,7 +1119,6 @@ class TargetNotificationEvent(typing_extensions.TypedDict, total=False): "TYPE_RESTRICTION_VIOLATED", "TYPE_RESOURCE_DELETED", "TYPE_ROLLOUT_UPDATE", - "TYPE_DEPLOY_POLICY_EVALUATION", "TYPE_RENDER_STATUES_CHANGE", ] diff --git a/googleapiclient-stubs/_apis/clouderrorreporting/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/clouderrorreporting/v1beta1/resources.pyi index 8c07d29c..42178b33 100644 --- a/googleapiclient-stubs/_apis/clouderrorreporting/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/clouderrorreporting/v1beta1/resources.pyi @@ -101,12 +101,101 @@ class ClouderrorreportingResource(googleapiclient.discovery.Resource): self, *, name: str, body: ErrorGroup = ..., **kwargs: typing.Any ) -> ErrorGroupHttpRequest: ... + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class EventsResource(googleapiclient.discovery.Resource): + def list( + self, + *, + projectName: str, + groupId: str = ..., + pageSize: int = ..., + pageToken: str = ..., + serviceFilter_resourceType: str = ..., + serviceFilter_service: str = ..., + serviceFilter_version: str = ..., + timeRange_period: typing_extensions.Literal[ + "PERIOD_UNSPECIFIED", + "PERIOD_1_HOUR", + "PERIOD_6_HOURS", + "PERIOD_1_DAY", + "PERIOD_1_WEEK", + "PERIOD_30_DAYS", + ] = ..., + **kwargs: typing.Any, + ) -> ListEventsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListEventsResponseHttpRequest, + previous_response: ListEventsResponse, + ) -> ListEventsResponseHttpRequest | None: ... + + @typing.type_check_only + class GroupStatsResource(googleapiclient.discovery.Resource): + def list( + self, + *, + projectName: str, + alignment: typing_extensions.Literal[ + "ERROR_COUNT_ALIGNMENT_UNSPECIFIED", + "ALIGNMENT_EQUAL_ROUNDED", + "ALIGNMENT_EQUAL_AT_END", + ] = ..., + alignmentTime: str = ..., + groupId: str | _list[str] = ..., + order: typing_extensions.Literal[ + "GROUP_ORDER_UNSPECIFIED", + "COUNT_DESC", + "LAST_SEEN_DESC", + "CREATED_DESC", + "AFFECTED_USERS_DESC", + ] = ..., + pageSize: int = ..., + pageToken: str = ..., + serviceFilter_resourceType: str = ..., + serviceFilter_service: str = ..., + serviceFilter_version: str = ..., + timeRange_period: typing_extensions.Literal[ + "PERIOD_UNSPECIFIED", + "PERIOD_1_HOUR", + "PERIOD_6_HOURS", + "PERIOD_1_DAY", + "PERIOD_1_WEEK", + "PERIOD_30_DAYS", + ] = ..., + timedCountDuration: str = ..., + **kwargs: typing.Any, + ) -> ListGroupStatsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListGroupStatsResponseHttpRequest, + previous_response: ListGroupStatsResponse, + ) -> ListGroupStatsResponseHttpRequest | None: ... + + @typing.type_check_only + class GroupsResource(googleapiclient.discovery.Resource): + def get( + self, *, groupName: str, **kwargs: typing.Any + ) -> ErrorGroupHttpRequest: ... + def update( + self, *, name: str, body: ErrorGroup = ..., **kwargs: typing.Any + ) -> ErrorGroupHttpRequest: ... + + def deleteEvents( + self, *, projectName: str, **kwargs: typing.Any + ) -> DeleteEventsResponseHttpRequest: ... + def events(self) -> EventsResource: ... + def groupStats(self) -> GroupStatsResource: ... + def groups(self) -> GroupsResource: ... + def deleteEvents( self, *, projectName: str, **kwargs: typing.Any ) -> DeleteEventsResponseHttpRequest: ... def events(self) -> EventsResource: ... def groupStats(self) -> GroupStatsResource: ... def groups(self) -> GroupsResource: ... + def locations(self) -> LocationsResource: ... def new_batch_http_request( self, diff --git a/googleapiclient-stubs/_apis/cloudfunctions/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudfunctions/v1/schemas.pyi index 38b0a5a6..a90e5237 100644 --- a/googleapiclient-stubs/_apis/cloudfunctions/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudfunctions/v1/schemas.pyi @@ -135,6 +135,7 @@ class GoogleCloudFunctionsV2LocationMetadata(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleCloudFunctionsV2OperationMetadata(typing_extensions.TypedDict, total=False): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -196,6 +197,7 @@ class GoogleCloudFunctionsV2alphaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -257,6 +259,7 @@ class GoogleCloudFunctionsV2betaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str diff --git a/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi b/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi index 8ead6ecd..a71bc126 100644 --- a/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudfunctions/v2/schemas.pyi @@ -128,6 +128,7 @@ class GoogleCloudFunctionsV2LocationMetadata(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleCloudFunctionsV2OperationMetadata(typing_extensions.TypedDict, total=False): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -189,6 +190,7 @@ class GoogleCloudFunctionsV2alphaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -250,6 +252,7 @@ class GoogleCloudFunctionsV2betaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -419,6 +422,7 @@ class ServiceConfig(typing_extensions.TypedDict, total=False): allTrafficOnLatestRevision: bool availableCpu: str availableMemory: str + binaryAuthorizationPolicy: str environmentVariables: dict[str, typing.Any] ingressSettings: typing_extensions.Literal[ "INGRESS_SETTINGS_UNSPECIFIED", @@ -477,6 +481,7 @@ class StorageSource(typing_extensions.TypedDict, total=False): bucket: str generation: str object: str + sourceUploadUrl: str @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi b/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi index d6d6c7db..8e8015de 100644 --- a/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudfunctions/v2alpha/schemas.pyi @@ -128,6 +128,7 @@ class GoogleCloudFunctionsV2LocationMetadata(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleCloudFunctionsV2OperationMetadata(typing_extensions.TypedDict, total=False): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -189,6 +190,7 @@ class GoogleCloudFunctionsV2alphaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -250,6 +252,7 @@ class GoogleCloudFunctionsV2betaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -419,6 +422,7 @@ class ServiceConfig(typing_extensions.TypedDict, total=False): allTrafficOnLatestRevision: bool availableCpu: str availableMemory: str + binaryAuthorizationPolicy: str environmentVariables: dict[str, typing.Any] ingressSettings: typing_extensions.Literal[ "INGRESS_SETTINGS_UNSPECIFIED", @@ -477,6 +481,7 @@ class StorageSource(typing_extensions.TypedDict, total=False): bucket: str generation: str object: str + sourceUploadUrl: str @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi index 14b4690a..23157f80 100644 --- a/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudfunctions/v2beta/schemas.pyi @@ -128,6 +128,7 @@ class GoogleCloudFunctionsV2LocationMetadata(typing_extensions.TypedDict, total= @typing.type_check_only class GoogleCloudFunctionsV2OperationMetadata(typing_extensions.TypedDict, total=False): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -189,6 +190,7 @@ class GoogleCloudFunctionsV2alphaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -250,6 +252,7 @@ class GoogleCloudFunctionsV2betaOperationMetadata( typing_extensions.TypedDict, total=False ): apiVersion: str + buildName: str cancelRequested: bool createTime: str endTime: str @@ -419,6 +422,7 @@ class ServiceConfig(typing_extensions.TypedDict, total=False): allTrafficOnLatestRevision: bool availableCpu: str availableMemory: str + binaryAuthorizationPolicy: str environmentVariables: dict[str, typing.Any] ingressSettings: typing_extensions.Literal[ "INGRESS_SETTINGS_UNSPECIFIED", @@ -477,6 +481,7 @@ class StorageSource(typing_extensions.TypedDict, total=False): bucket: str generation: str object: str + sourceUploadUrl: str @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi index 3ad538ff..c587602a 100644 --- a/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudidentity/v1/schemas.pyi @@ -5,7 +5,8 @@ import typing_extensions _list = list @typing.type_check_only -class AddIdpCredentialOperationMetadata(typing_extensions.TypedDict, total=False): ... +class AddIdpCredentialOperationMetadata(typing_extensions.TypedDict, total=False): + state: str @typing.type_check_only class AddIdpCredentialRequest(typing_extensions.TypedDict, total=False): @@ -24,7 +25,8 @@ class CreateGroupMetadata(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class CreateInboundSamlSsoProfileOperationMetadata( typing_extensions.TypedDict, total=False -): ... +): + state: str @typing.type_check_only class CreateInboundSsoAssignmentOperationMetadata( @@ -735,7 +737,8 @@ class UpdateGroupMetadata(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class UpdateInboundSamlSsoProfileOperationMetadata( typing_extensions.TypedDict, total=False -): ... +): + state: str @typing.type_check_only class UpdateInboundSsoAssignmentOperationMetadata( diff --git a/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi index 710337b5..94868f86 100644 --- a/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudidentity/v1beta1/schemas.pyi @@ -5,7 +5,8 @@ import typing_extensions _list = list @typing.type_check_only -class AddIdpCredentialOperationMetadata(typing_extensions.TypedDict, total=False): ... +class AddIdpCredentialOperationMetadata(typing_extensions.TypedDict, total=False): + state: str @typing.type_check_only class AddIdpCredentialRequest(typing_extensions.TypedDict, total=False): @@ -155,7 +156,8 @@ class CreateDeviceRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class CreateInboundSamlSsoProfileOperationMetadata( typing_extensions.TypedDict, total=False -): ... +): + state: str @typing.type_check_only class CreateInboundSsoAssignmentOperationMetadata( @@ -939,7 +941,8 @@ class TransitiveMembershipRole(typing_extensions.TypedDict, total=False): @typing.type_check_only class UpdateInboundSamlSsoProfileOperationMetadata( typing_extensions.TypedDict, total=False -): ... +): + state: str @typing.type_check_only class UpdateInboundSsoAssignmentOperationMetadata( diff --git a/googleapiclient-stubs/_apis/cloudkms/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudkms/v1/schemas.pyi index 8f733b7f..92ee22b0 100644 --- a/googleapiclient-stubs/_apis/cloudkms/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudkms/v1/schemas.pyi @@ -83,6 +83,7 @@ class CryptoKey(typing_extensions.TypedDict, total=False): cryptoKeyBackend: str destroyScheduledDuration: str importOnly: bool + keyAccessJustificationsPolicy: KeyAccessJustificationsPolicy labels: dict[str, typing.Any] name: str nextRotationTime: str @@ -365,6 +366,25 @@ class ImportJob(typing_extensions.TypedDict, total=False): "IMPORT_JOB_STATE_UNSPECIFIED", "PENDING_GENERATION", "ACTIVE", "EXPIRED" ] +@typing.type_check_only +class KeyAccessJustificationsPolicy(typing_extensions.TypedDict, total=False): + allowedAccessReasons: _list[ + typing_extensions.Literal[ + "REASON_UNSPECIFIED", + "CUSTOMER_INITIATED_SUPPORT", + "GOOGLE_INITIATED_SERVICE", + "THIRD_PARTY_DATA_REQUEST", + "GOOGLE_INITIATED_REVIEW", + "CUSTOMER_INITIATED_ACCESS", + "GOOGLE_INITIATED_SYSTEM_OPERATION", + "REASON_NOT_EXPECTED", + "MODIFIED_CUSTOMER_INITIATED_ACCESS", + "MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION", + "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT", + "CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING", + ] + ] + @typing.type_check_only class KeyHandle(typing_extensions.TypedDict, total=False): kmsKey: str diff --git a/googleapiclient-stubs/_apis/cloudsearch/v1/resources.pyi b/googleapiclient-stubs/_apis/cloudsearch/v1/resources.pyi index 199a9e19..77d665cd 100644 --- a/googleapiclient-stubs/_apis/cloudsearch/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/cloudsearch/v1/resources.pyi @@ -270,6 +270,9 @@ class CloudSearchResource(googleapiclient.discovery.Resource): previous_response: ListQuerySourcesResponse, ) -> ListQuerySourcesResponseHttpRequest | None: ... + def debugSearch( + self, *, body: SearchRequest = ..., **kwargs: typing.Any + ) -> DebugResponseHttpRequest: ... def removeActivity( self, *, body: RemoveActivityRequest = ..., **kwargs: typing.Any ) -> RemoveActivityResponseHttpRequest: ... @@ -588,6 +591,14 @@ class DataSourceHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> DataSource: ... +@typing.type_check_only +class DebugResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> DebugResponse: ... + @typing.type_check_only class GetCustomerIndexStatsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi b/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi index c650abb6..af351223 100644 --- a/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/cloudsearch/v1/schemas.pyi @@ -152,6 +152,12 @@ class DateValues(typing_extensions.TypedDict, total=False): class DebugOptions(typing_extensions.TypedDict, total=False): enableDebugging: bool +@typing.type_check_only +class DebugResponse(typing_extensions.TypedDict, total=False): + gsrRequest: str + gsrResponse: str + searchResponse: SearchResponse + @typing.type_check_only class DeleteQueueItemsRequest(typing_extensions.TypedDict, total=False): connectorName: str diff --git a/googleapiclient-stubs/_apis/composer/v1/resources.pyi b/googleapiclient-stubs/_apis/composer/v1/resources.pyi index 336c8d58..2a318f61 100644 --- a/googleapiclient-stubs/_apis/composer/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/composer/v1/resources.pyi @@ -110,6 +110,13 @@ class CloudComposerResource(googleapiclient.discovery.Resource): previous_response: ListWorkloadsResponse, ) -> ListWorkloadsResponseHttpRequest | None: ... + def checkUpgrade( + self, + *, + environment: str, + body: CheckUpgradeRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def create( self, *, parent: str, body: Environment = ..., **kwargs: typing.Any ) -> OperationHttpRequest: ... diff --git a/googleapiclient-stubs/_apis/composer/v1/schemas.pyi b/googleapiclient-stubs/_apis/composer/v1/schemas.pyi index 85e7ffa4..95732f9d 100644 --- a/googleapiclient-stubs/_apis/composer/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/composer/v1/schemas.pyi @@ -18,6 +18,10 @@ class AllowedIpRange(typing_extensions.TypedDict, total=False): description: str value: str +@typing.type_check_only +class CheckUpgradeRequest(typing_extensions.TypedDict, total=False): + imageVersion: str + @typing.type_check_only class CheckUpgradeResponse(typing_extensions.TypedDict, total=False): buildLogUri: str @@ -109,6 +113,7 @@ class Environment(typing_extensions.TypedDict, total=False): createTime: str labels: dict[str, typing.Any] name: str + satisfiesPzi: bool satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", "RUNNING", "UPDATING", "DELETING", "ERROR" diff --git a/googleapiclient-stubs/_apis/composer/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/composer/v1beta1/schemas.pyi index 2d964fde..a671f01a 100644 --- a/googleapiclient-stubs/_apis/composer/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/composer/v1beta1/schemas.pyi @@ -114,6 +114,7 @@ class Environment(typing_extensions.TypedDict, total=False): createTime: str labels: dict[str, typing.Any] name: str + satisfiesPzi: bool satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", "RUNNING", "UPDATING", "DELETING", "ERROR" diff --git a/googleapiclient-stubs/_apis/compute/alpha/resources.pyi b/googleapiclient-stubs/_apis/compute/alpha/resources.pyi index b13c0ec2..ac969d1b 100644 --- a/googleapiclient-stubs/_apis/compute/alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/compute/alpha/resources.pyi @@ -293,6 +293,22 @@ class ComputeResource(googleapiclient.discovery.Resource): previous_request: BackendBucketListHttpRequest, previous_response: BackendBucketList, ) -> BackendBucketListHttpRequest | None: ... + def listUsable( + self, + *, + project: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> BackendBucketListUsableHttpRequest: ... + def listUsable_next( + self, + previous_request: BackendBucketListUsableHttpRequest, + previous_response: BackendBucketListUsable, + ) -> BackendBucketListUsableHttpRequest | None: ... def patch( self, *, @@ -2994,6 +3010,53 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class InstantSnapshotGroupsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + zone: str, + instantSnapshotGroup: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, + *, + project: str, + zone: str, + instantSnapshotGroup: str, + **kwargs: typing.Any, + ) -> InstantSnapshotGroupHttpRequest: ... + def insert( + self, + *, + project: str, + zone: str, + body: InstantSnapshotGroup = ..., + requestId: str = ..., + sourceConsistencyGroup: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + zone: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> ListInstantSnapshotGroupsHttpRequest: ... + def list_next( + self, + previous_request: ListInstantSnapshotGroupsHttpRequest, + previous_response: ListInstantSnapshotGroups, + ) -> ListInstantSnapshotGroupsHttpRequest | None: ... + @typing.type_check_only class InstantSnapshotsResource(googleapiclient.discovery.Resource): def aggregatedList( @@ -4031,6 +4094,28 @@ class ComputeResource(googleapiclient.discovery.Resource): previous_response: NetworkPlacementsListResponse, ) -> NetworkPlacementsListResponseHttpRequest | None: ... + @typing.type_check_only + class NetworkProfilesResource(googleapiclient.discovery.Resource): + def get( + self, *, project: str, networkProfile: str, **kwargs: typing.Any + ) -> NetworkProfileHttpRequest: ... + def list( + self, + *, + project: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> NetworkProfilesListResponseHttpRequest: ... + def list_next( + self, + previous_request: NetworkProfilesListResponseHttpRequest, + previous_response: NetworkProfilesListResponse, + ) -> NetworkProfilesListResponseHttpRequest | None: ... + @typing.type_check_only class NetworksResource(googleapiclient.discovery.Resource): def addPeering( @@ -5605,6 +5690,30 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class RegionInstanceGroupManagerResizeRequestsResource( + googleapiclient.discovery.Resource + ): + def get( + self, + *, + project: str, + region: str, + instanceGroupManager: str, + resizeRequest: str, + **kwargs: typing.Any, + ) -> InstanceGroupManagerResizeRequestHttpRequest: ... + def insert( + self, + *, + project: str, + region: str, + instanceGroupManager: str, + body: InstanceGroupManagerResizeRequest = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class RegionInstanceGroupManagersResource(googleapiclient.discovery.Resource): def abandonInstances( @@ -6027,6 +6136,53 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class RegionInstantSnapshotGroupsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + region: str, + instantSnapshotGroup: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, + *, + project: str, + region: str, + instantSnapshotGroup: str, + **kwargs: typing.Any, + ) -> InstantSnapshotGroupHttpRequest: ... + def insert( + self, + *, + project: str, + region: str, + body: InstantSnapshotGroup = ..., + requestId: str = ..., + sourceConsistencyGroup: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + region: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> ListInstantSnapshotGroupsHttpRequest: ... + def list_next( + self, + previous_request: ListInstantSnapshotGroupsHttpRequest, + previous_response: ListInstantSnapshotGroups, + ) -> ListInstantSnapshotGroupsHttpRequest | None: ... + @typing.type_check_only class RegionInstantSnapshotsResource(googleapiclient.discovery.Resource): def delete( @@ -6110,6 +6266,47 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestPermissionsResponseHttpRequest: ... + @typing.type_check_only + class RegionMultiMigsResource(googleapiclient.discovery.Resource): + def delete( + self, + *, + project: str, + region: str, + multiMig: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, *, project: str, region: str, multiMig: str, **kwargs: typing.Any + ) -> MultiMigHttpRequest: ... + def insert( + self, + *, + project: str, + region: str, + body: MultiMig = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + region: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> MultiMigsListHttpRequest: ... + def list_next( + self, + previous_request: MultiMigsListHttpRequest, + previous_response: MultiMigsList, + ) -> MultiMigsListHttpRequest | None: ... + @typing.type_check_only class RegionNetworkEndpointGroupsResource(googleapiclient.discovery.Resource): def attachNetworkEndpoints( @@ -9576,6 +9773,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def instanceSettings(self) -> InstanceSettingsResource: ... def instanceTemplates(self) -> InstanceTemplatesResource: ... def instances(self) -> InstancesResource: ... + def instantSnapshotGroups(self) -> InstantSnapshotGroupsResource: ... def instantSnapshots(self) -> InstantSnapshotsResource: ... def interconnectAttachments(self) -> InterconnectAttachmentsResource: ... def interconnectLocations(self) -> InterconnectLocationsResource: ... @@ -9590,6 +9788,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def networkEndpointGroups(self) -> NetworkEndpointGroupsResource: ... def networkFirewallPolicies(self) -> NetworkFirewallPoliciesResource: ... def networkPlacements(self) -> NetworkPlacementsResource: ... + def networkProfiles(self) -> NetworkProfilesResource: ... def networks(self) -> NetworksResource: ... def nodeGroups(self) -> NodeGroupsResource: ... def nodeTemplates(self) -> NodeTemplatesResource: ... @@ -9607,11 +9806,16 @@ class ComputeResource(googleapiclient.discovery.Resource): def regionDisks(self) -> RegionDisksResource: ... def regionHealthCheckServices(self) -> RegionHealthCheckServicesResource: ... def regionHealthChecks(self) -> RegionHealthChecksResource: ... + def regionInstanceGroupManagerResizeRequests( + self, + ) -> RegionInstanceGroupManagerResizeRequestsResource: ... def regionInstanceGroupManagers(self) -> RegionInstanceGroupManagersResource: ... def regionInstanceGroups(self) -> RegionInstanceGroupsResource: ... def regionInstanceTemplates(self) -> RegionInstanceTemplatesResource: ... def regionInstances(self) -> RegionInstancesResource: ... + def regionInstantSnapshotGroups(self) -> RegionInstantSnapshotGroupsResource: ... def regionInstantSnapshots(self) -> RegionInstantSnapshotsResource: ... + def regionMultiMigs(self) -> RegionMultiMigsResource: ... def regionNetworkEndpointGroups(self) -> RegionNetworkEndpointGroupsResource: ... def regionNetworkFirewallPolicies( self, @@ -9745,6 +9949,14 @@ class BackendBucketListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> BackendBucketList: ... +@typing.type_check_only +class BackendBucketListUsableHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackendBucketListUsable: ... + @typing.type_check_only class BackendServiceHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10311,6 +10523,14 @@ class InstantSnapshotAggregatedListHttpRequest(googleapiclient.http.HttpRequest) num_retries: int = 0, ) -> InstantSnapshotAggregatedList: ... +@typing.type_check_only +class InstantSnapshotGroupHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> InstantSnapshotGroup: ... + @typing.type_check_only class InstantSnapshotListHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10447,6 +10667,14 @@ class LicensesListResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> LicensesListResponse: ... +@typing.type_check_only +class ListInstantSnapshotGroupsHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListInstantSnapshotGroups: ... + @typing.type_check_only class MachineImageHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10487,6 +10715,22 @@ class MachineTypeListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> MachineTypeList: ... +@typing.type_check_only +class MultiMigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MultiMig: ... + +@typing.type_check_only +class MultiMigsListHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MultiMigsList: ... + @typing.type_check_only class NatIpInfoResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -10603,6 +10847,22 @@ class NetworkPlacementsListResponseHttpRequest(googleapiclient.http.HttpRequest) num_retries: int = 0, ) -> NetworkPlacementsListResponse: ... +@typing.type_check_only +class NetworkProfileHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkProfile: ... + +@typing.type_check_only +class NetworkProfilesListResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NetworkProfilesListResponse: ... + @typing.type_check_only class NetworksGetEffectiveFirewallsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi b/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi index e3c41275..b5ddbc4a 100644 --- a/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/compute/alpha/schemas.pyi @@ -106,6 +106,7 @@ class Address(typing_extensions.TypedDict, total=False): "PRIVATE_SERVICE_CONNECT", "SERVERLESS", "SHARED_LOADBALANCER_VIP", + "SYSTEM_MANAGED", "VPC_PEERING", ] region: str @@ -152,6 +153,7 @@ class AdvancedMachineFeatures(typing_extensions.TypedDict, total=False): "STANDARD", ] threadsPerCore: int + turboMode: str visibleCoreCount: int @typing.type_check_only @@ -164,8 +166,10 @@ class AllocationAggregateReservation(typing_extensions.TypedDict, total=False): inUseResources: _list[AllocationAggregateReservationReservedResourceInfo] reservedResources: _list[AllocationAggregateReservationReservedResourceInfo] vmFamily: typing_extensions.Literal[ + "VM_FAMILY_CLOUD_TPU_DEVICE_CT3", "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L", "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP", + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P", "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P", ] workloadType: typing_extensions.Literal["BATCH", "SERVING", "UNSPECIFIED"] @@ -183,6 +187,12 @@ class AllocationAggregateReservationReservedResourceInfoAccelerator( acceleratorCount: int acceleratorType: str +@typing.type_check_only +class AllocationReservationSharingPolicy(typing_extensions.TypedDict, total=False): + serviceShareType: typing_extensions.Literal[ + "ALLOW_ALL", "DISALLOW_ALL", "SERVICE_SHARE_TYPE_UNSPECIFIED" + ] + @typing.type_check_only class AllocationResourceStatus(typing_extensions.TypedDict, total=False): specificSkuAllocation: AllocationResourceStatusSpecificSKUAllocation @@ -192,6 +202,7 @@ class AllocationResourceStatusSpecificSKUAllocation( typing_extensions.TypedDict, total=False ): sourceInstanceTemplateId: str + utilizations: dict[str, typing.Any] @typing.type_check_only class AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk( @@ -430,8 +441,11 @@ class AutoscalingPolicyScalingSchedule(typing_extensions.TypedDict, total=False) @typing.type_check_only class Backend(typing_extensions.TypedDict, total=False): - balancingMode: typing_extensions.Literal["CONNECTION", "RATE", "UTILIZATION"] + balancingMode: typing_extensions.Literal[ + "CONNECTION", "CUSTOM_METRICS", "RATE", "UTILIZATION" + ] capacityScaler: float + customMetrics: _list[BackendCustomMetric] description: str failover: bool group: str @@ -458,9 +472,11 @@ class BackendBucket(typing_extensions.TypedDict, total=False): enableCdn: bool id: str kind: str + loadBalancingScheme: typing_extensions.Literal["INTERNAL_MANAGED"] name: str selfLink: str selfLinkWithId: str + usedBy: _list[BackendBucketUsedBy] @typing.type_check_only class BackendBucketCdnPolicy(typing_extensions.TypedDict, total=False): @@ -509,6 +525,25 @@ class BackendBucketList(typing_extensions.TypedDict, total=False): selfLink: str warning: dict[str, typing.Any] +@typing.type_check_only +class BackendBucketListUsable(typing_extensions.TypedDict, total=False): + id: str + items: _list[BackendBucket] + kind: str + nextPageToken: str + selfLink: str + warning: dict[str, typing.Any] + +@typing.type_check_only +class BackendBucketUsedBy(typing_extensions.TypedDict, total=False): + reference: str + +@typing.type_check_only +class BackendCustomMetric(typing_extensions.TypedDict, total=False): + dryRun: bool + maxUtilization: float + name: str + @typing.type_check_only class BackendService(typing_extensions.TypedDict, total=False): affinityCookieTtlSec: int @@ -560,6 +595,7 @@ class BackendService(typing_extensions.TypedDict, total=False): "RING_HASH", "ROUND_ROBIN", "WEIGHTED_MAGLEV", + "WEIGHTED_ROUND_ROBIN", ] logConfig: BackendServiceLogConfig maxStreamDuration: Duration @@ -594,6 +630,7 @@ class BackendService(typing_extensions.TypedDict, total=False): strongSessionAffinityCookie: BackendServiceHttpCookie subsetting: Subsetting timeoutSec: int + tlsSettings: BackendServiceTlsSettings usedBy: _list[BackendServiceUsedBy] vpcNetworkScope: typing_extensions.Literal[ "GLOBAL_VPC_NETWORK", "REGIONAL_VPC_NETWORK" @@ -748,6 +785,7 @@ class BackendServiceLocalityLoadBalancingPolicyConfigPolicy( "RING_HASH", "ROUND_ROBIN", "WEIGHTED_MAGLEV", + "WEIGHTED_ROUND_ROBIN", ] @typing.type_check_only @@ -789,6 +827,17 @@ class BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity( class BackendServiceReference(typing_extensions.TypedDict, total=False): backendService: str +@typing.type_check_only +class BackendServiceTlsSettings(typing_extensions.TypedDict, total=False): + authenticationConfig: str + sni: str + subjectAltNames: _list[BackendServiceTlsSettingsSubjectAltName] + +@typing.type_check_only +class BackendServiceTlsSettingsSubjectAltName(typing_extensions.TypedDict, total=False): + dnsName: str + uniformResourceIdentifier: str + @typing.type_check_only class BackendServiceUsedBy(typing_extensions.TypedDict, total=False): reference: str @@ -982,6 +1031,7 @@ class Commitment(typing_extensions.TypedDict, total=False): autoRenew: bool category: typing_extensions.Literal["CATEGORY_UNSPECIFIED", "LICENSE", "MACHINE"] creationTimestamp: str + customEndTimestamp: str description: str endTimestamp: str existingReservations: _list[str] @@ -1055,6 +1105,7 @@ class CommitmentList(typing_extensions.TypedDict, total=False): @typing.type_check_only class CommitmentResourceStatus(typing_extensions.TypedDict, total=False): cancellationInformation: CommitmentResourceStatusCancellationInformation + customTermEligibilityEndTimestamp: str @typing.type_check_only class CommitmentResourceStatusCancellationInformation( @@ -1572,12 +1623,19 @@ class FirewallPolicyRuleMatcher(typing_extensions.TypedDict, total=False): destAddressGroups: _list[str] destFqdns: _list[str] destIpRanges: _list[str] + destNetworkScope: typing_extensions.Literal[ + "INTERNET", "INTRA_VPC", "NON_INTERNET", "UNSPECIFIED", "VPC_NETWORKS" + ] destRegionCodes: _list[str] destThreatIntelligences: _list[str] layer4Configs: _list[FirewallPolicyRuleMatcherLayer4Config] srcAddressGroups: _list[str] srcFqdns: _list[str] srcIpRanges: _list[str] + srcNetworkScope: typing_extensions.Literal[ + "INTERNET", "INTRA_VPC", "NON_INTERNET", "UNSPECIFIED", "VPC_NETWORKS" + ] + srcNetworks: _list[str] srcRegionCodes: _list[str] srcSecureTags: _list[FirewallPolicyRuleSecureTag] srcThreatIntelligences: _list[str] @@ -1738,6 +1796,7 @@ class FutureReservationStatus(typing_extensions.TypedDict, total=False): "AMENDMENT_STATUS_UNSPECIFIED", ] autoCreatedReservations: _list[str] + existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo fulfilledCount: str lastKnownGoodState: FutureReservationStatusLastKnownGoodState lockTime: str @@ -1758,11 +1817,19 @@ class FutureReservationStatus(typing_extensions.TypedDict, total=False): ] specificSkuProperties: FutureReservationStatusSpecificSKUProperties +@typing.type_check_only +class FutureReservationStatusExistingMatchingUsageInfo( + typing_extensions.TypedDict, total=False +): + count: str + timestamp: str + @typing.type_check_only class FutureReservationStatusLastKnownGoodState( typing_extensions.TypedDict, total=False ): description: str + existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo futureReservationSpecs: ( FutureReservationStatusLastKnownGoodStateFutureReservationSpecs ) @@ -2509,6 +2576,9 @@ class InstanceGroupManager(typing_extensions.TypedDict, total=False): namedPorts: _list[NamedPort] params: InstanceGroupManagerParams region: str + resourcePolicies: InstanceGroupManagerResourcePolicies + satisfiesPzi: bool + satisfiesPzs: bool selfLink: str selfLinkWithId: str serviceAccount: str @@ -2517,6 +2587,7 @@ class InstanceGroupManager(typing_extensions.TypedDict, total=False): status: InstanceGroupManagerStatus targetPools: _list[str] targetSize: int + targetSizePolicy: InstanceGroupManagerTargetSizePolicy targetSizeUnit: typing_extensions.Literal["INSTANCE", "VCPU"] targetStoppedSize: int targetSuspendedSize: int @@ -2602,6 +2673,9 @@ class InstanceGroupManagerInstanceLifecyclePolicy( metadataBasedReadinessSignal: ( InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal ) + onFailedHealthCheck: typing_extensions.Literal[ + "DEFAULT_ACTION", "DO_NOTHING", "REPAIR" + ] @typing.type_check_only class InstanceGroupManagerInstanceLifecyclePolicyMetadataBasedReadinessSignal( @@ -2631,6 +2705,7 @@ class InstanceGroupManagerResizeRequest(typing_extensions.TypedDict, total=False kind: str name: str queuingPolicy: QueuingPolicy + region: str requestedRunDuration: Duration resizeBy: int selfLink: str @@ -2671,6 +2746,10 @@ class InstanceGroupManagerResizeRequestsListResponse( selfLink: str warning: dict[str, typing.Any] +@typing.type_check_only +class InstanceGroupManagerResourcePolicies(typing_extensions.TypedDict, total=False): + workloadPolicy: str + @typing.type_check_only class InstanceGroupManagerStandbyPolicy(typing_extensions.TypedDict, total=False): initialDelaySec: int @@ -2680,6 +2759,7 @@ class InstanceGroupManagerStandbyPolicy(typing_extensions.TypedDict, total=False class InstanceGroupManagerStatus(typing_extensions.TypedDict, total=False): allInstancesConfig: InstanceGroupManagerStatusAllInstancesConfig autoscaler: str + bulkInstanceOperation: InstanceGroupManagerStatusBulkInstanceOperation isStable: bool stateful: InstanceGroupManagerStatusStateful versionTarget: InstanceGroupManagerStatusVersionTarget @@ -2691,6 +2771,20 @@ class InstanceGroupManagerStatusAllInstancesConfig( currentRevision: str effective: bool +@typing.type_check_only +class InstanceGroupManagerStatusBulkInstanceOperation( + typing_extensions.TypedDict, total=False +): + inProgress: bool + lastProgressCheck: InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck + +@typing.type_check_only +class InstanceGroupManagerStatusBulkInstanceOperationLastProgressCheck( + typing_extensions.TypedDict, total=False +): + error: dict[str, typing.Any] + timestamp: str + @typing.type_check_only class InstanceGroupManagerStatusStateful(typing_extensions.TypedDict, total=False): hasStatefulConfig: bool @@ -2707,6 +2801,10 @@ class InstanceGroupManagerStatusStatefulPerInstanceConfigs( class InstanceGroupManagerStatusVersionTarget(typing_extensions.TypedDict, total=False): isReached: bool +@typing.type_check_only +class InstanceGroupManagerTargetSizePolicy(typing_extensions.TypedDict, total=False): + mode: typing_extensions.Literal["BULK", "INDIVIDUAL", "UNSPECIFIED_MODE"] + @typing.type_check_only class InstanceGroupManagerUpdatePolicy(typing_extensions.TypedDict, total=False): instanceRedistributionType: typing_extensions.Literal["NONE", "PROACTIVE"] @@ -3185,6 +3283,8 @@ class InstantSnapshot(typing_extensions.TypedDict, total=False): selfLinkWithId: str sourceDisk: str sourceDiskId: str + sourceInstantSnapshotGroup: str + sourceInstantSnapshotGroupId: str status: typing_extensions.Literal[ "CREATING", "DELETING", "FAILED", "READY", "UNAVAILABLE" ] @@ -3200,6 +3300,33 @@ class InstantSnapshotAggregatedList(typing_extensions.TypedDict, total=False): unreachables: _list[str] warning: dict[str, typing.Any] +@typing.type_check_only +class InstantSnapshotGroup(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + id: str + kind: str + name: str + region: str + resourceStatus: InstantSnapshotGroupResourceStatus + selfLink: str + selfLinkWithId: str + sourceConsistencyGroup: str + status: typing_extensions.Literal[ + "CREATING", "DELETING", "FAILED", "INVALID", "READY", "UNKNOWN" + ] + zone: str + +@typing.type_check_only +class InstantSnapshotGroupResourceStatus(typing_extensions.TypedDict, total=False): + consistencyMembershipResolutionTime: str + sourceInfo: InstantSnapshotGroupSourceInfo + +@typing.type_check_only +class InstantSnapshotGroupSourceInfo(typing_extensions.TypedDict, total=False): + consistencyGroup: str + consistencyGroupId: str + @typing.type_check_only class InstantSnapshotList(typing_extensions.TypedDict, total=False): id: str @@ -3734,6 +3861,17 @@ class LicensesListResponse(typing_extensions.TypedDict, total=False): selfLink: str warning: dict[str, typing.Any] +@typing.type_check_only +class ListInstantSnapshotGroups(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[InstantSnapshotGroup] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class LocalDisk(typing_extensions.TypedDict, total=False): diskCount: int @@ -3908,6 +4046,7 @@ class ManagedInstance(typing_extensions.TypedDict, total=False): preservedStateFromConfig: PreservedState preservedStateFromPolicy: PreservedState propertiesFromFlexibilityPolicy: ManagedInstancePropertiesFromFlexibilityPolicy + sizeInUnit: float tag: str targetStatus: typing_extensions.Literal[ "ABANDONED", "DELETED", "RUNNING", "STOPPED", "SUSPENDED" @@ -3976,6 +4115,49 @@ class Money(typing_extensions.TypedDict, total=False): nanos: int units: str +@typing.type_check_only +class MultiMig(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + id: str + kind: str + locationPolicy: MultiMigLocationPolicy + name: str + parts: dict[str, typing.Any] + region: str + schedulingPolicy: MultiMigSchedulingPolicy + selfLink: str + selfLinkWithId: str + status: MultiMigStatus + +@typing.type_check_only +class MultiMigLocationPolicy(typing_extensions.TypedDict, total=False): + provisioningZones: _list[str] + +@typing.type_check_only +class MultiMigPart(typing_extensions.TypedDict, total=False): + instanceGroupManager: str + instanceGroupManagerProperties: InstanceGroupManager + +@typing.type_check_only +class MultiMigSchedulingPolicy(typing_extensions.TypedDict, total=False): + provisioning: typing_extensions.Literal["ANY", "COOORDINATED"] + +@typing.type_check_only +class MultiMigStatus(typing_extensions.TypedDict, total=False): + memberInstanceGroupManagers: _list[str] + +@typing.type_check_only +class MultiMigsList(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[MultiMig] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class MutualTls(typing_extensions.TypedDict, total=False): mode: typing_extensions.Literal["INVALID", "PERMISSIVE", "STRICT"] @@ -4025,6 +4207,7 @@ class Network(typing_extensions.TypedDict, total=False): "AFTER_CLASSIC_FIREWALL", "BEFORE_CLASSIC_FIREWALL" ] networkPlacement: str + networkProfile: str peerings: _list[NetworkPeering] region: str routingConfig: NetworkRoutingConfig @@ -4127,7 +4310,6 @@ class NetworkEdgeSecurityServicesScopedList(typing_extensions.TypedDict, total=F class NetworkEndpoint(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] clientDestinationPort: int - clientPort: int fqdn: str instance: str ipAddress: str @@ -4139,9 +4321,6 @@ class NetworkEndpoint(typing_extensions.TypedDict, total=False): class NetworkEndpointGroup(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] appEngine: NetworkEndpointGroupAppEngine - clientPortMappingMode: typing_extensions.Literal[ - "CLIENT_PORT_PER_ENDPOINT", "PORT_MAPPING_DISABLED" - ] cloudFunction: NetworkEndpointGroupCloudFunction cloudRun: NetworkEndpointGroupCloudRun creationTimestamp: str @@ -4428,6 +4607,107 @@ class NetworkPlacementsListResponse(typing_extensions.TypedDict, total=False): unreachables: _list[str] warning: dict[str, typing.Any] +@typing.type_check_only +class NetworkProfile(typing_extensions.TypedDict, total=False): + creationTimestamp: str + description: str + features: NetworkProfileNetworkFeatures + id: str + kind: str + name: str + selfLink: str + selfLinkWithId: str + zone: str + +@typing.type_check_only +class NetworkProfileNetworkFeatures(typing_extensions.TypedDict, total=False): + addressPurposes: _list[ + typing_extensions.Literal[ + "DNS_RESOLVER", + "GCE_ENDPOINT", + "IPSEC_INTERCONNECT", + "NAT_AUTO", + "PRIVATE_SERVICE_CONNECT", + "SERVERLESS", + "SHARED_LOADBALANCER_VIP", + "SYSTEM_MANAGED", + "VPC_PEERING", + ] + ] + allowAliasIpRanges: typing_extensions.Literal[ + "ALIAS_IP_RANGES_ALLOWED", "ALIAS_IP_RANGES_BLOCKED" + ] + allowAutoModeSubnet: typing_extensions.Literal[ + "AUTO_MODE_SUBNET_ALLOWED", "AUTO_MODE_SUBNET_BLOCKED" + ] + allowClassDFirewalls: typing_extensions.Literal[ + "CLASS_D_FIREWALLS_ALLOWED", "CLASS_D_FIREWALLS_BLOCKED" + ] + allowCloudNat: typing_extensions.Literal["CLOUD_NAT_ALLOWED", "CLOUD_NAT_BLOCKED"] + allowCloudRouter: typing_extensions.Literal[ + "CLOUD_ROUTER_ALLOWED", "CLOUD_ROUTER_BLOCKED" + ] + allowExternalIpAccess: typing_extensions.Literal[ + "EXTERNAL_IP_ACCESS_ALLOWED", "EXTERNAL_IP_ACCESS_BLOCKED" + ] + allowInterconnect: typing_extensions.Literal[ + "INTERCONNECT_ALLOWED", "INTERCONNECT_BLOCKED" + ] + allowLoadBalancing: typing_extensions.Literal[ + "LOAD_BALANCING_ALLOWED", "LOAD_BALANCING_BLOCKED" + ] + allowMultiNicInSameNetwork: typing_extensions.Literal[ + "MULTI_NIC_IN_SAME_NETWORK_ALLOWED", "MULTI_NIC_IN_SAME_NETWORK_BLOCKED" + ] + allowPacketMirroring: typing_extensions.Literal[ + "PACKET_MIRRORING_ALLOWED", "PACKET_MIRRORING_BLOCKED" + ] + allowPrivateGoogleAccess: typing_extensions.Literal[ + "PRIVATE_GOOGLE_ACCESS_ALLOWED", "PRIVATE_GOOGLE_ACCESS_BLOCKED" + ] + allowPsc: typing_extensions.Literal["PSC_ALLOWED", "PSC_BLOCKED"] + allowSameNetworkUnicast: typing_extensions.Literal[ + "SAME_NETWORK_UNICAST_ALLOWED", "SAME_NETWORK_UNICAST_BLOCKED" + ] + allowStaticRoutes: typing_extensions.Literal[ + "STATIC_ROUTES_ALLOWED", "STATIC_ROUTES_BLOCKED" + ] + allowSubInterfaces: typing_extensions.Literal[ + "SUBINTERFACES_ALLOWED", "SUBINTERFACES_BLOCKED" + ] + allowVpcPeering: typing_extensions.Literal[ + "VPC_PEERING_ALLOWED", "VPC_PEERING_BLOCKED" + ] + allowVpn: typing_extensions.Literal["VPN_ALLOWED", "VPN_BLOCKED"] + allowedSubnetPurposes: _list[ + typing_extensions.Literal[ + "SUBNET_PURPOSE_CUSTOM_HARDWARE", "SUBNET_PURPOSE_PRIVATE" + ] + ] + allowedSubnetStackTypes: _list[ + typing_extensions.Literal[ + "SUBNET_STACK_TYPE_IPV4_IPV6", + "SUBNET_STACK_TYPE_IPV4_ONLY", + "SUBNET_STACK_TYPE_IPV6_ONLY", + ] + ] + interfaceTypes: _list[ + typing_extensions.Literal["GVNIC", "IDPF", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET"] + ] + multicast: typing_extensions.Literal["MULTICAST_SDN", "MULTICAST_ULL"] + unicast: typing_extensions.Literal["UNICAST_SDN", "UNICAST_ULL"] + +@typing.type_check_only +class NetworkProfilesListResponse(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[NetworkProfile] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + @typing.type_check_only class NetworkRoutingConfig(typing_extensions.TypedDict, total=False): bgpAlwaysCompareMed: bool @@ -5778,6 +6058,7 @@ class Reservation(typing_extensions.TypedDict, total=False): id: str kind: str name: str + reservationSharingPolicy: AllocationReservationSharingPolicy resourcePolicies: dict[str, typing.Any] resourceStatus: AllocationResourceStatus satisfiesPzs: bool @@ -5868,6 +6149,7 @@ class ResourcePolicy(typing_extensions.TypedDict, total=False): "CREATING", "DELETING", "EXPIRED", "INVALID", "READY" ] vmMaintenancePolicy: ResourcePolicyVmMaintenancePolicy + workloadPolicy: ResourcePolicyWorkloadPolicy @typing.type_check_only class ResourcePolicyAggregatedList(typing_extensions.TypedDict, total=False): @@ -6019,6 +6301,10 @@ class ResourcePolicyWeeklyCycleDayOfWeek(typing_extensions.TypedDict, total=Fals duration: str startTime: str +@typing.type_check_only +class ResourcePolicyWorkloadPolicy(typing_extensions.TypedDict, total=False): + type: typing_extensions.Literal["HIGH_AVAILABILITY", "HIGH_THROUGHPUT"] + @typing.type_check_only class ResourceStatus(typing_extensions.TypedDict, total=False): lastInstanceTerminationDetails: ResourceStatusLastInstanceTerminationDetails @@ -6071,7 +6357,7 @@ class ResourceStatusServiceIntegrationStatusBackupDRStatus( class ResourceStatusShutdownDetails(typing_extensions.TypedDict, total=False): maxDuration: Duration requestTimestamp: str - stopState: typing_extensions.Literal["SHUTTING_DOWN", "STOPPING"] + stopState: typing_extensions.Literal["PENDING_STOP", "SHUTTING_DOWN", "STOPPING"] targetState: typing_extensions.Literal["DELETED", "STOPPED"] @typing.type_check_only @@ -6289,6 +6575,7 @@ class RouterNat(typing_extensions.TypedDict, total=False): maxPortsPerVm: int minPortsPerVm: int name: str + nat64Subnetworks: _list[RouterNatSubnetworkToNat64] natIpAllocateOption: typing_extensions.Literal["AUTO_ONLY", "MANUAL_ONLY"] natIps: _list[str] rules: _list[RouterNatRule] @@ -6297,6 +6584,9 @@ class RouterNat(typing_extensions.TypedDict, total=False): "ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES", "LIST_OF_SUBNETWORKS", ] + sourceSubnetworkIpRangesToNat64: typing_extensions.Literal[ + "ALL_IPV6_SUBNETWORKS", "LIST_OF_IPV6_SUBNETWORKS" + ] subnetworks: _list[RouterNatSubnetworkToNat] tcpEstablishedIdleTimeoutSec: int tcpTimeWaitTimeoutSec: int @@ -6333,6 +6623,10 @@ class RouterNatSubnetworkToNat(typing_extensions.TypedDict, total=False): ] ] +@typing.type_check_only +class RouterNatSubnetworkToNat64(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class RouterStatus(typing_extensions.TypedDict, total=False): bestRoutes: _list[Route] @@ -6528,9 +6822,6 @@ class Scheduling(typing_extensions.TypedDict, total=False): preemptible: bool provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] terminationTime: str - windowsLicenseOptimizationMode: typing_extensions.Literal[ - "AUTO", "BALANCED", "COST_OPTIMIZED", "OFF", "PERFORMANCE", "UNSPECIFIED" - ] @typing.type_check_only class SchedulingGracefulShutdown(typing_extensions.TypedDict, total=False): @@ -7592,6 +7883,7 @@ class Subnetwork(typing_extensions.TypedDict, total=False): purpose: typing_extensions.Literal[ "AGGREGATE", "CLOUD_EXTENSION", + "CUSTOM_HARDWARE_LINK", "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", "PRIVATE", @@ -8241,6 +8533,7 @@ class UsableSubnetwork(typing_extensions.TypedDict, total=False): purpose: typing_extensions.Literal[ "AGGREGATE", "CLOUD_EXTENSION", + "CUSTOM_HARDWARE_LINK", "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", "PRIVATE", diff --git a/googleapiclient-stubs/_apis/compute/beta/resources.pyi b/googleapiclient-stubs/_apis/compute/beta/resources.pyi index 957b5ffd..cda2f0a6 100644 --- a/googleapiclient-stubs/_apis/compute/beta/resources.pyi +++ b/googleapiclient-stubs/_apis/compute/beta/resources.pyi @@ -786,6 +786,14 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def addPacketMirroringRule( + self, + *, + firewallPolicy: str, + body: FirewallPolicyRule = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def addRule( self, *, @@ -818,6 +826,9 @@ class ComputeResource(googleapiclient.discovery.Resource): optionsRequestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def getPacketMirroringRule( + self, *, firewallPolicy: str, priority: int = ..., **kwargs: typing.Any + ) -> FirewallPolicyRuleHttpRequest: ... def getRule( self, *, firewallPolicy: str, priority: int = ..., **kwargs: typing.Any ) -> FirewallPolicyRuleHttpRequest: ... @@ -864,6 +875,15 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def patchPacketMirroringRule( + self, + *, + firewallPolicy: str, + body: FirewallPolicyRule = ..., + priority: int = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def patchRule( self, *, @@ -881,6 +901,14 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def removePacketMirroringRule( + self, + *, + firewallPolicy: str, + priority: int = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def removeRule( self, *, @@ -3691,6 +3719,17 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def addPacketMirroringRule( + self, + *, + project: str, + firewallPolicy: str, + body: FirewallPolicyRule = ..., + maxPriority: int = ..., + minPriority: int = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def addRule( self, *, @@ -3738,6 +3777,14 @@ class ComputeResource(googleapiclient.discovery.Resource): optionsRequestedPolicyVersion: int = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def getPacketMirroringRule( + self, + *, + project: str, + firewallPolicy: str, + priority: int = ..., + **kwargs: typing.Any, + ) -> FirewallPolicyRuleHttpRequest: ... def getRule( self, *, @@ -3779,6 +3826,16 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def patchPacketMirroringRule( + self, + *, + project: str, + firewallPolicy: str, + body: FirewallPolicyRule = ..., + priority: int = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def patchRule( self, *, @@ -3798,6 +3855,15 @@ class ComputeResource(googleapiclient.discovery.Resource): requestId: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def removePacketMirroringRule( + self, + *, + project: str, + firewallPolicy: str, + priority: int = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def removeRule( self, *, diff --git a/googleapiclient-stubs/_apis/compute/beta/schemas.pyi b/googleapiclient-stubs/_apis/compute/beta/schemas.pyi index 6eabc590..17b47a04 100644 --- a/googleapiclient-stubs/_apis/compute/beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/compute/beta/schemas.pyi @@ -129,7 +129,14 @@ class AddressesScopedList(typing_extensions.TypedDict, total=False): class AdvancedMachineFeatures(typing_extensions.TypedDict, total=False): enableNestedVirtualization: bool enableUefiNetworking: bool + performanceMonitoringUnit: typing_extensions.Literal[ + "ARCHITECTURAL", + "ENHANCED", + "PERFORMANCE_MONITORING_UNIT_UNSPECIFIED", + "STANDARD", + ] threadsPerCore: int + turboMode: str visibleCoreCount: int @typing.type_check_only @@ -142,8 +149,10 @@ class AllocationAggregateReservation(typing_extensions.TypedDict, total=False): inUseResources: _list[AllocationAggregateReservationReservedResourceInfo] reservedResources: _list[AllocationAggregateReservationReservedResourceInfo] vmFamily: typing_extensions.Literal[ + "VM_FAMILY_CLOUD_TPU_DEVICE_CT3", "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L", "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP", + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P", "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P", ] workloadType: typing_extensions.Literal["BATCH", "SERVING", "UNSPECIFIED"] @@ -161,6 +170,12 @@ class AllocationAggregateReservationReservedResourceInfoAccelerator( acceleratorCount: int acceleratorType: str +@typing.type_check_only +class AllocationReservationSharingPolicy(typing_extensions.TypedDict, total=False): + serviceShareType: typing_extensions.Literal[ + "ALLOW_ALL", "DISALLOW_ALL", "SERVICE_SHARE_TYPE_UNSPECIFIED" + ] + @typing.type_check_only class AllocationResourceStatus(typing_extensions.TypedDict, total=False): specificSkuAllocation: AllocationResourceStatusSpecificSKUAllocation @@ -170,6 +185,7 @@ class AllocationResourceStatusSpecificSKUAllocation( typing_extensions.TypedDict, total=False ): sourceInstanceTemplateId: str + utilizations: dict[str, typing.Any] @typing.type_check_only class AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk( @@ -545,7 +561,9 @@ class BackendService(typing_extensions.TypedDict, total=False): "HEADER_FIELD", "HTTP_COOKIE", "NONE", + "STRONG_COOKIE_AFFINITY", ] + strongSessionAffinityCookie: BackendServiceHttpCookie subsetting: Subsetting timeoutSec: int usedBy: _list[BackendServiceUsedBy] @@ -618,6 +636,12 @@ class BackendServiceGroupHealth(typing_extensions.TypedDict, total=False): healthStatus: _list[HealthStatus] kind: str +@typing.type_check_only +class BackendServiceHttpCookie(typing_extensions.TypedDict, total=False): + name: str + path: str + ttl: Duration + @typing.type_check_only class BackendServiceIAP(typing_extensions.TypedDict, total=False): enabled: bool @@ -884,6 +908,7 @@ class Commitment(typing_extensions.TypedDict, total=False): "COMPUTE_OPTIMIZED_C3D", "COMPUTE_OPTIMIZED_H3", "GENERAL_PURPOSE", + "GENERAL_PURPOSE_C4", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", "GENERAL_PURPOSE_N2D", @@ -1012,6 +1037,9 @@ class DeprecationStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class Disk(typing_extensions.TypedDict, total=False): + accessMode: typing_extensions.Literal[ + "READ_ONLY_MANY", "READ_WRITE_MANY", "READ_WRITE_SINGLE" + ] architecture: typing_extensions.Literal[ "ARCHITECTURE_UNSPECIFIED", "ARM64", "X86_64" ] @@ -1342,6 +1370,7 @@ class FirewallPolicy(typing_extensions.TypedDict, total=False): id: str kind: str name: str + packetMirroringRules: _list[FirewallPolicyRule] parent: str region: str ruleTupleCount: int @@ -1525,6 +1554,7 @@ class FutureReservation(typing_extensions.TypedDict, total=False): selfLink: str selfLinkWithId: str shareSettings: ShareSettings + specificReservationRequired: bool specificSkuProperties: FutureReservationSpecificSKUProperties status: FutureReservationStatus timeWindow: FutureReservationTimeWindow @@ -1545,6 +1575,7 @@ class FutureReservationStatus(typing_extensions.TypedDict, total=False): "AMENDMENT_STATUS_UNSPECIFIED", ] autoCreatedReservations: _list[str] + existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo fulfilledCount: str lastKnownGoodState: FutureReservationStatusLastKnownGoodState lockTime: str @@ -1565,11 +1596,19 @@ class FutureReservationStatus(typing_extensions.TypedDict, total=False): ] specificSkuProperties: FutureReservationStatusSpecificSKUProperties +@typing.type_check_only +class FutureReservationStatusExistingMatchingUsageInfo( + typing_extensions.TypedDict, total=False +): + count: str + timestamp: str + @typing.type_check_only class FutureReservationStatusLastKnownGoodState( typing_extensions.TypedDict, total=False ): description: str + existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo futureReservationSpecs: ( FutureReservationStatusLastKnownGoodStateFutureReservationSpecs ) @@ -2258,6 +2297,8 @@ class InstanceGroupManager(typing_extensions.TypedDict, total=False): namedPorts: _list[NamedPort] params: InstanceGroupManagerParams region: str + satisfiesPzi: bool + satisfiesPzs: bool selfLink: str serviceAccount: str standbyPolicy: InstanceGroupManagerStandbyPolicy @@ -2310,8 +2351,10 @@ class InstanceGroupManagerAutoHealingPolicy(typing_extensions.TypedDict, total=F class InstanceGroupManagerInstanceFlexibilityPolicy( typing_extensions.TypedDict, total=False ): - instanceSelectionLists: dict[str, typing.Any] instanceSelections: dict[str, typing.Any] + provisioningModelMix: ( + InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix + ) @typing.type_check_only class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection( @@ -2320,6 +2363,13 @@ class InstanceGroupManagerInstanceFlexibilityPolicyInstanceSelection( machineTypes: _list[str] rank: int +@typing.type_check_only +class InstanceGroupManagerInstanceFlexibilityPolicyProvisioningModelMix( + typing_extensions.TypedDict, total=False +): + standardCapacityBase: int + standardCapacityPercentAboveBase: int + @typing.type_check_only class InstanceGroupManagerInstanceLifecyclePolicy( typing_extensions.TypedDict, total=False @@ -2799,10 +2849,16 @@ class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy( ): displayName: str name: str + priority: int rules: _list[FirewallPolicyRule] shortName: str type: typing_extensions.Literal[ - "HIERARCHY", "NETWORK", "NETWORK_REGIONAL", "UNSPECIFIED" + "HIERARCHY", + "NETWORK", + "NETWORK_REGIONAL", + "SYSTEM_GLOBAL", + "SYSTEM_REGIONAL", + "UNSPECIFIED", ] @typing.type_check_only @@ -3487,7 +3543,6 @@ class ManagedInstance(typing_extensions.TypedDict, total=False): ] id: str instance: str - instanceFlexibilityOverride: ManagedInstanceInstanceFlexibilityOverride instanceHealth: _list[ManagedInstanceInstanceHealth] instanceStatus: typing_extensions.Literal[ "DEPROVISIONING", @@ -3515,12 +3570,6 @@ class ManagedInstance(typing_extensions.TypedDict, total=False): class ManagedInstanceAllInstancesConfig(typing_extensions.TypedDict, total=False): revision: str -@typing.type_check_only -class ManagedInstanceInstanceFlexibilityOverride( - typing_extensions.TypedDict, total=False -): - machineType: str - @typing.type_check_only class ManagedInstanceInstanceHealth(typing_extensions.TypedDict, total=False): detailedHealthState: typing_extensions.Literal[ @@ -3537,6 +3586,7 @@ class ManagedInstancePropertiesFromFlexibilityPolicy( typing_extensions.TypedDict, total=False ): machineType: str + provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] @typing.type_check_only class ManagedInstanceVersion(typing_extensions.TypedDict, total=False): @@ -3697,7 +3747,6 @@ class NetworkEdgeSecurityServicesScopedList(typing_extensions.TypedDict, total=F class NetworkEndpoint(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] clientDestinationPort: int - clientPort: int fqdn: str instance: str ipAddress: str @@ -3708,9 +3757,6 @@ class NetworkEndpoint(typing_extensions.TypedDict, total=False): class NetworkEndpointGroup(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] appEngine: NetworkEndpointGroupAppEngine - clientPortMappingMode: typing_extensions.Literal[ - "CLIENT_PORT_PER_ENDPOINT", "PORT_MAPPING_DISABLED" - ] cloudFunction: NetworkEndpointGroupCloudFunction cloudRun: NetworkEndpointGroupCloudRun creationTimestamp: str @@ -3868,7 +3914,9 @@ class NetworkInterface(typing_extensions.TypedDict, total=False): network: str networkAttachment: str networkIP: str - nicType: typing_extensions.Literal["GVNIC", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET"] + nicType: typing_extensions.Literal[ + "GVNIC", "IDPF", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + ] queueCount: int stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] subnetwork: str @@ -3903,6 +3951,9 @@ class NetworkPerformanceConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class NetworkRoutingConfig(typing_extensions.TypedDict, total=False): + bgpAlwaysCompareMed: bool + bgpBestPathSelectionMode: typing_extensions.Literal["LEGACY", "STANDARD"] + bgpInterRegionCost: typing_extensions.Literal["ADD_COST_TO_MED", "DEFAULT"] routingMode: typing_extensions.Literal["GLOBAL", "REGIONAL"] @typing.type_check_only @@ -3926,9 +3977,10 @@ class NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy( ): displayName: str name: str + priority: int rules: _list[FirewallPolicyRule] shortName: str - type: typing_extensions.Literal["HIERARCHY", "NETWORK", "UNSPECIFIED"] + type: typing_extensions.Literal["HIERARCHY", "NETWORK", "SYSTEM", "UNSPECIFIED"] @typing.type_check_only class NetworksGetEffectiveFirewallsResponseOrganizationFirewallPolicy( @@ -5047,9 +5099,15 @@ class RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponseEffectiveFirewal ): displayName: str name: str + priority: int rules: _list[FirewallPolicyRule] type: typing_extensions.Literal[ - "HIERARCHY", "NETWORK", "NETWORK_REGIONAL", "UNSPECIFIED" + "HIERARCHY", + "NETWORK", + "NETWORK_REGIONAL", + "SYSTEM_GLOBAL", + "SYSTEM_REGIONAL", + "UNSPECIFIED", ] @typing.type_check_only @@ -5088,6 +5146,7 @@ class Reservation(typing_extensions.TypedDict, total=False): id: str kind: str name: str + reservationSharingPolicy: AllocationReservationSharingPolicy resourcePolicies: dict[str, typing.Any] resourceStatus: AllocationResourceStatus satisfiesPzs: bool @@ -5309,6 +5368,7 @@ class ResourceStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResourceStatusScheduling(typing_extensions.TypedDict, total=False): + availabilityDomain: int terminationTimestamp: str @typing.type_check_only @@ -5330,9 +5390,12 @@ class Route(typing_extensions.TypedDict, total=False): nextHopHub: str nextHopIlb: str nextHopInstance: str + nextHopInterRegionCost: int nextHopInterconnectAttachment: str nextHopIp: str + nextHopMed: int nextHopNetwork: str + nextHopOrigin: typing_extensions.Literal["EGP", "IGP", "INCOMPLETE"] nextHopPeering: str nextHopVpnTunnel: str priority: int @@ -5703,6 +5766,7 @@ class ScalingScheduleStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class Scheduling(typing_extensions.TypedDict, total=False): automaticRestart: bool + availabilityDomain: int hostErrorTimeoutSeconds: int instanceTerminationAction: typing_extensions.Literal[ "DELETE", "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", "STOP" @@ -6933,6 +6997,7 @@ class TargetPool(typing_extensions.TypedDict, total=False): "HEADER_FIELD", "HTTP_COOKIE", "NONE", + "STRONG_COOKIE_AFFINITY", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/compute/v1/resources.pyi b/googleapiclient-stubs/_apis/compute/v1/resources.pyi index c58d2f67..2bc7a2be 100644 --- a/googleapiclient-stubs/_apis/compute/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/compute/v1/resources.pyi @@ -1036,6 +1036,90 @@ class ComputeResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class FutureReservationsResource(googleapiclient.discovery.Resource): + def aggregatedList( + self, + *, + project: str, + filter: str = ..., + includeAllScopes: bool = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + serviceProjectNumber: str = ..., + **kwargs: typing.Any, + ) -> FutureReservationsAggregatedListResponseHttpRequest: ... + def aggregatedList_next( + self, + previous_request: FutureReservationsAggregatedListResponseHttpRequest, + previous_response: FutureReservationsAggregatedListResponse, + ) -> FutureReservationsAggregatedListResponseHttpRequest | None: ... + def cancel( + self, + *, + project: str, + zone: str, + futureReservation: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + project: str, + zone: str, + futureReservation: str, + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( + self, + *, + project: str, + zone: str, + futureReservation: str, + **kwargs: typing.Any, + ) -> FutureReservationHttpRequest: ... + def insert( + self, + *, + project: str, + zone: str, + body: FutureReservation = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + project: str, + zone: str, + filter: str = ..., + maxResults: int = ..., + orderBy: str = ..., + pageToken: str = ..., + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, + ) -> FutureReservationsListResponseHttpRequest: ... + def list_next( + self, + previous_request: FutureReservationsListResponseHttpRequest, + previous_response: FutureReservationsListResponse, + ) -> FutureReservationsListResponseHttpRequest | None: ... + def update( + self, + *, + project: str, + zone: str, + futureReservation: str, + body: FutureReservation = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class GlobalAddressesResource(googleapiclient.discovery.Resource): def delete( @@ -8090,6 +8174,7 @@ class ComputeResource(googleapiclient.discovery.Resource): def firewallPolicies(self) -> FirewallPoliciesResource: ... def firewalls(self) -> FirewallsResource: ... def forwardingRules(self) -> ForwardingRulesResource: ... + def futureReservations(self) -> FutureReservationsResource: ... def globalAddresses(self) -> GlobalAddressesResource: ... def globalForwardingRules(self) -> GlobalForwardingRulesResource: ... def globalNetworkEndpointGroups(self) -> GlobalNetworkEndpointGroupsResource: ... @@ -8492,6 +8577,32 @@ class ForwardingRuleListHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ForwardingRuleList: ... +@typing.type_check_only +class FutureReservationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FutureReservation: ... + +@typing.type_check_only +class FutureReservationsAggregatedListResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FutureReservationsAggregatedListResponse: ... + +@typing.type_check_only +class FutureReservationsListResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FutureReservationsListResponse: ... + @typing.type_check_only class GuestAttributesHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/compute/v1/schemas.pyi b/googleapiclient-stubs/_apis/compute/v1/schemas.pyi index a307bf45..4e56a001 100644 --- a/googleapiclient-stubs/_apis/compute/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/compute/v1/schemas.pyi @@ -129,6 +129,12 @@ class AddressesScopedList(typing_extensions.TypedDict, total=False): class AdvancedMachineFeatures(typing_extensions.TypedDict, total=False): enableNestedVirtualization: bool enableUefiNetworking: bool + performanceMonitoringUnit: typing_extensions.Literal[ + "ARCHITECTURAL", + "ENHANCED", + "PERFORMANCE_MONITORING_UNIT_UNSPECIFIED", + "STANDARD", + ] threadsPerCore: int visibleCoreCount: int @@ -142,8 +148,10 @@ class AllocationAggregateReservation(typing_extensions.TypedDict, total=False): inUseResources: _list[AllocationAggregateReservationReservedResourceInfo] reservedResources: _list[AllocationAggregateReservationReservedResourceInfo] vmFamily: typing_extensions.Literal[ + "VM_FAMILY_CLOUD_TPU_DEVICE_CT3", "VM_FAMILY_CLOUD_TPU_LITE_DEVICE_CT5L", "VM_FAMILY_CLOUD_TPU_LITE_POD_SLICE_CT5LP", + "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT3P", "VM_FAMILY_CLOUD_TPU_POD_SLICE_CT4P", ] workloadType: typing_extensions.Literal["BATCH", "SERVING", "UNSPECIFIED"] @@ -835,6 +843,7 @@ class Commitment(typing_extensions.TypedDict, total=False): "COMPUTE_OPTIMIZED_C3D", "COMPUTE_OPTIMIZED_H3", "GENERAL_PURPOSE", + "GENERAL_PURPOSE_C4", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", "GENERAL_PURPOSE_N2D", @@ -892,6 +901,9 @@ class Condition(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConfidentialInstanceConfig(typing_extensions.TypedDict, total=False): + confidentialInstanceType: typing_extensions.Literal[ + "CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED", "SEV", "SEV_SNP" + ] enableConfidentialCompute: bool @typing.type_check_only @@ -923,6 +935,19 @@ class CorsPolicy(typing_extensions.TypedDict, total=False): exposeHeaders: _list[str] maxAge: int +@typing.type_check_only +class CustomErrorResponsePolicy(typing_extensions.TypedDict, total=False): + errorResponseRules: _list[CustomErrorResponsePolicyCustomErrorResponseRule] + errorService: str + +@typing.type_check_only +class CustomErrorResponsePolicyCustomErrorResponseRule( + typing_extensions.TypedDict, total=False +): + matchResponseCodes: _list[str] + overrideResponseCode: int + path: str + @typing.type_check_only class CustomerEncryptionKey(typing_extensions.TypedDict, total=False): kmsKeyName: str @@ -946,6 +971,9 @@ class DeprecationStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class Disk(typing_extensions.TypedDict, total=False): + accessMode: typing_extensions.Literal[ + "READ_ONLY_MANY", "READ_WRITE_MANY", "READ_WRITE_SINGLE" + ] architecture: typing_extensions.Literal[ "ARCHITECTURE_UNSPECIFIED", "ARM64", "X86_64" ] @@ -1434,6 +1462,148 @@ class ForwardingRulesScopedList(typing_extensions.TypedDict, total=False): forwardingRules: _list[ForwardingRule] warning: dict[str, typing.Any] +@typing.type_check_only +class FutureReservation(typing_extensions.TypedDict, total=False): + autoCreatedReservationsDeleteTime: str + autoCreatedReservationsDuration: Duration + autoDeleteAutoCreatedReservations: bool + creationTimestamp: str + description: str + id: str + kind: str + name: str + namePrefix: str + planningStatus: typing_extensions.Literal[ + "DRAFT", "PLANNING_STATUS_UNSPECIFIED", "SUBMITTED" + ] + selfLink: str + selfLinkWithId: str + shareSettings: ShareSettings + specificReservationRequired: bool + specificSkuProperties: FutureReservationSpecificSKUProperties + status: FutureReservationStatus + timeWindow: FutureReservationTimeWindow + zone: str + +@typing.type_check_only +class FutureReservationSpecificSKUProperties(typing_extensions.TypedDict, total=False): + instanceProperties: AllocationSpecificSKUAllocationReservedInstanceProperties + sourceInstanceTemplate: str + totalCount: str + +@typing.type_check_only +class FutureReservationStatus(typing_extensions.TypedDict, total=False): + amendmentStatus: typing_extensions.Literal[ + "AMENDMENT_APPROVED", + "AMENDMENT_DECLINED", + "AMENDMENT_IN_REVIEW", + "AMENDMENT_STATUS_UNSPECIFIED", + ] + autoCreatedReservations: _list[str] + existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo + fulfilledCount: str + lastKnownGoodState: FutureReservationStatusLastKnownGoodState + lockTime: str + procurementStatus: typing_extensions.Literal[ + "APPROVED", + "CANCELLED", + "COMMITTED", + "DECLINED", + "DRAFTING", + "FAILED", + "FAILED_PARTIALLY_FULFILLED", + "FULFILLED", + "PENDING_AMENDMENT_APPROVAL", + "PENDING_APPROVAL", + "PROCUREMENT_STATUS_UNSPECIFIED", + "PROCURING", + "PROVISIONING", + ] + specificSkuProperties: FutureReservationStatusSpecificSKUProperties + +@typing.type_check_only +class FutureReservationStatusExistingMatchingUsageInfo( + typing_extensions.TypedDict, total=False +): + count: str + timestamp: str + +@typing.type_check_only +class FutureReservationStatusLastKnownGoodState( + typing_extensions.TypedDict, total=False +): + description: str + existingMatchingUsageInfo: FutureReservationStatusExistingMatchingUsageInfo + futureReservationSpecs: ( + FutureReservationStatusLastKnownGoodStateFutureReservationSpecs + ) + lockTime: str + namePrefix: str + procurementStatus: typing_extensions.Literal[ + "APPROVED", + "CANCELLED", + "COMMITTED", + "DECLINED", + "DRAFTING", + "FAILED", + "FAILED_PARTIALLY_FULFILLED", + "FULFILLED", + "PENDING_AMENDMENT_APPROVAL", + "PENDING_APPROVAL", + "PROCUREMENT_STATUS_UNSPECIFIED", + "PROCURING", + "PROVISIONING", + ] + +@typing.type_check_only +class FutureReservationStatusLastKnownGoodStateFutureReservationSpecs( + typing_extensions.TypedDict, total=False +): + shareSettings: ShareSettings + specificSkuProperties: FutureReservationSpecificSKUProperties + timeWindow: FutureReservationTimeWindow + +@typing.type_check_only +class FutureReservationStatusSpecificSKUProperties( + typing_extensions.TypedDict, total=False +): + sourceInstanceTemplateId: str + +@typing.type_check_only +class FutureReservationTimeWindow(typing_extensions.TypedDict, total=False): + duration: Duration + endTime: str + startTime: str + +@typing.type_check_only +class FutureReservationsAggregatedListResponse( + typing_extensions.TypedDict, total=False +): + etag: str + id: str + items: dict[str, typing.Any] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + +@typing.type_check_only +class FutureReservationsListResponse(typing_extensions.TypedDict, total=False): + etag: str + id: str + items: _list[FutureReservation] + kind: str + nextPageToken: str + selfLink: str + unreachables: _list[str] + warning: dict[str, typing.Any] + +@typing.type_check_only +class FutureReservationsScopedList(typing_extensions.TypedDict, total=False): + futureReservations: _list[FutureReservation] + warning: dict[str, typing.Any] + @typing.type_check_only class GRPCHealthCheck(typing_extensions.TypedDict, total=False): grpcServiceName: str @@ -1565,6 +1735,7 @@ class HealthCheck(typing_extensions.TypedDict, total=False): name: str region: str selfLink: str + sourceRegions: _list[str] sslHealthCheck: SSLHealthCheck tcpHealthCheck: TCPHealthCheck timeoutSec: int @@ -1777,6 +1948,7 @@ class HttpRouteAction(typing_extensions.TypedDict, total=False): @typing.type_check_only class HttpRouteRule(typing_extensions.TypedDict, total=False): + customErrorResponsePolicy: CustomErrorResponsePolicy description: str headerAction: HttpHeaderAction matchRules: _list[HttpRouteRuleMatch] @@ -2022,6 +2194,8 @@ class InstanceGroupManager(typing_extensions.TypedDict, total=False): name: str namedPorts: _list[NamedPort] region: str + satisfiesPzi: bool + satisfiesPzs: bool selfLink: str statefulPolicy: StatefulPolicy status: InstanceGroupManagerStatus @@ -2479,10 +2653,16 @@ class InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy( ): displayName: str name: str + priority: int rules: _list[FirewallPolicyRule] shortName: str type: typing_extensions.Literal[ - "HIERARCHY", "NETWORK", "NETWORK_REGIONAL", "UNSPECIFIED" + "HIERARCHY", + "NETWORK", + "NETWORK_REGIONAL", + "SYSTEM_GLOBAL", + "SYSTEM_REGIONAL", + "UNSPECIFIED", ] @typing.type_check_only @@ -3479,7 +3659,9 @@ class NetworkInterface(typing_extensions.TypedDict, total=False): network: str networkAttachment: str networkIP: str - nicType: typing_extensions.Literal["GVNIC", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET"] + nicType: typing_extensions.Literal[ + "GVNIC", "IDPF", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" + ] queueCount: int stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] subnetwork: str @@ -3935,6 +4117,7 @@ class PacketMirroringsScopedList(typing_extensions.TypedDict, total=False): @typing.type_check_only class PathMatcher(typing_extensions.TypedDict, total=False): + defaultCustomErrorResponsePolicy: CustomErrorResponsePolicy defaultRouteAction: HttpRouteAction defaultService: str defaultUrlRedirect: HttpRedirectAction @@ -3946,6 +4129,7 @@ class PathMatcher(typing_extensions.TypedDict, total=False): @typing.type_check_only class PathRule(typing_extensions.TypedDict, total=False): + customErrorResponsePolicy: CustomErrorResponsePolicy paths: _list[str] routeAction: HttpRouteAction service: str @@ -4826,8 +5010,13 @@ class ResourcePolicyWeeklyCycleDayOfWeek(typing_extensions.TypedDict, total=Fals @typing.type_check_only class ResourceStatus(typing_extensions.TypedDict, total=False): physicalHost: str + scheduling: ResourceStatusScheduling upcomingMaintenance: UpcomingMaintenance +@typing.type_check_only +class ResourceStatusScheduling(typing_extensions.TypedDict, total=False): + availabilityDomain: int + @typing.type_check_only class Route(typing_extensions.TypedDict, total=False): asPaths: _list[RouteAsPath] @@ -5173,16 +5362,20 @@ class ScalingScheduleStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class Scheduling(typing_extensions.TypedDict, total=False): automaticRestart: bool + availabilityDomain: int instanceTerminationAction: typing_extensions.Literal[ "DELETE", "INSTANCE_TERMINATION_ACTION_UNSPECIFIED", "STOP" ] localSsdRecoveryTimeout: Duration locationHint: str + maxRunDuration: Duration minNodeCpus: int nodeAffinities: _list[SchedulingNodeAffinity] onHostMaintenance: typing_extensions.Literal["MIGRATE", "TERMINATE"] + onInstanceStopAction: SchedulingOnInstanceStopAction preemptible: bool provisioningModel: typing_extensions.Literal["SPOT", "STANDARD"] + terminationTime: str @typing.type_check_only class SchedulingNodeAffinity(typing_extensions.TypedDict, total=False): @@ -5190,6 +5383,10 @@ class SchedulingNodeAffinity(typing_extensions.TypedDict, total=False): operator: typing_extensions.Literal["IN", "NOT_IN", "OPERATOR_UNSPECIFIED"] values: _list[str] +@typing.type_check_only +class SchedulingOnInstanceStopAction(typing_extensions.TypedDict, total=False): + discardLocalSsd: bool + @typing.type_check_only class Screenshot(typing_extensions.TypedDict, total=False): contents: str @@ -5267,7 +5464,21 @@ class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConf autoDeployExpirationSec: int autoDeployImpactedBaselineThreshold: float autoDeployLoadThreshold: float + detectionAbsoluteQps: float + detectionLoadThreshold: float + detectionRelativeToBaselineQps: float name: str + trafficGranularityConfigs: _list[ + SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig + ] + +@typing.type_check_only +class SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigTrafficGranularityConfig( + typing_extensions.TypedDict, total=False +): + enableEachUniqueValue: bool + type: typing_extensions.Literal["HTTP_HEADER_HOST", "HTTP_PATH", "UNSPECIFIED_TYPE"] + value: str @typing.type_check_only class SecurityPolicyAdvancedOptionsConfig(typing_extensions.TypedDict, total=False): @@ -6200,6 +6411,7 @@ class TargetHttpsProxy(typing_extensions.TypedDict, total=False): serverTlsPolicy: str sslCertificates: _list[str] sslPolicy: str + tlsEarlyData: typing_extensions.Literal["DISABLED", "PERMISSIVE", "STRICT"] urlMap: str @typing.type_check_only @@ -6502,6 +6714,7 @@ class UpcomingMaintenance(typing_extensions.TypedDict, total=False): @typing.type_check_only class UrlMap(typing_extensions.TypedDict, total=False): creationTimestamp: str + defaultCustomErrorResponsePolicy: CustomErrorResponsePolicy defaultRouteAction: HttpRouteAction defaultService: str defaultUrlRedirect: HttpRedirectAction @@ -6675,7 +6888,7 @@ class VpnGateway(typing_extensions.TypedDict, total=False): network: str region: str selfLink: str - stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY"] + stackType: typing_extensions.Literal["IPV4_IPV6", "IPV4_ONLY", "IPV6_ONLY"] vpnInterfaces: _list[VpnGatewayVpnGatewayInterface] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi b/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi index b7849054..1d984702 100644 --- a/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/connectors/v1/schemas.pyi @@ -55,6 +55,7 @@ class AuthConfigTemplate(typing_extensions.TypedDict, total=False): class AuthorizationCodeLink(typing_extensions.TypedDict, total=False): clientId: str enablePkce: bool + omitQueryParams: bool scopes: _list[str] uri: str @@ -96,6 +97,7 @@ class ConfigVariableTemplate(typing_extensions.TypedDict, total=False): locationType: typing_extensions.Literal[ "LOCATION_TYPE_UNSPECIFIED", "HEADER", "PAYLOAD", "QUERY_PARAM", "PATH_PARAM" ] + multipleSelectConfig: MultipleSelectConfig required: bool requiredCondition: LogicalExpression roleGrant: RoleGrant @@ -110,10 +112,12 @@ class ConfigVariableTemplate(typing_extensions.TypedDict, total=False): "ENUM", "AUTHORIZATION_CODE", "ENCRYPTION_KEY", + "MULTIPLE_SELECT", ] @typing.type_check_only class Connection(typing_extensions.TypedDict, total=False): + asyncOperationsEnabled: bool authConfig: AuthConfig billingConfig: BillingConfig configVariables: _list[ConfigVariable] @@ -187,6 +191,13 @@ class ConnectionStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class Connector(typing_extensions.TypedDict, total=False): + category: str + connectorType: typing_extensions.Literal[ + "CONNECTOR_TYPE_UNSPECIFIED", + "CONNECTOR_TYPE_GOOGLE", + "CONNECTOR_TYPE_TECHNICAL", + "CONNECTOR_TYPE_THIRD_PARTY", + ] createTime: str description: str displayName: str @@ -198,6 +209,7 @@ class Connector(typing_extensions.TypedDict, total=False): "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" ] name: str + tags: _list[str] updateTime: str webAssetsLocation: str @@ -209,6 +221,8 @@ class ConnectorInfraConfig(typing_extensions.TypedDict, total=False): ] hpaConfig: HPAConfig internalclientRatelimitThreshold: str + maxInstanceRequestConcurrency: int + migrateDeploymentModel: bool ratelimitThreshold: str resourceLimits: ResourceLimits resourceRequests: ResourceRequests @@ -225,6 +239,8 @@ class ConnectorVersion(typing_extensions.TypedDict, total=False): displayName: str egressControlConfig: EgressControlConfig eventingConfigTemplate: EventingConfigTemplate + isCustomActionsSupported: bool + isCustomEntitiesSupported: bool labels: dict[str, typing.Any] launchStage: typing_extensions.Literal[ "LAUNCH_STAGE_UNSPECIFIED", "PREVIEW", "GA", "DEPRECATED", "PRIVATE_PREVIEW" @@ -236,6 +252,8 @@ class ConnectorVersion(typing_extensions.TypedDict, total=False): schemaRefreshConfig: SchemaRefreshConfig sslConfigTemplate: SslConfigTemplate supportedRuntimeFeatures: SupportedRuntimeFeatures + supportedStandardActions: _list[StandardAction] + supportedStandardEntities: _list[StandardEntity] unsupportedConnectionTypes: _list[ typing_extensions.Literal[ "CONNECTION_TYPE_UNSPECIFIED", @@ -252,8 +270,16 @@ class ConnectorVersionInfraConfig(typing_extensions.TypedDict, total=False): deploymentModel: typing_extensions.Literal[ "DEPLOYMENT_MODEL_UNSPECIFIED", "GKE_MST", "CLOUD_RUN_MST" ] + deploymentModelMigrationState: typing_extensions.Literal[ + "DEPLOYMENT_MODEL_MIGRATION_STATE_UNSPECIFIED", + "IN_PROGRESS", + "COMPLETED", + "ROLLEDBACK", + "ROLLBACK_IN_PROGRESS", + ] hpaConfig: HPAConfig internalclientRatelimitThreshold: str + maxInstanceRequestConcurrency: int ratelimitThreshold: str resourceLimits: ResourceLimits resourceRequests: ResourceRequests @@ -883,6 +909,19 @@ class ManagedZone(typing_extensions.TypedDict, total=False): targetVpc: str updateTime: str +@typing.type_check_only +class MultipleSelectConfig(typing_extensions.TypedDict, total=False): + allowCustomValues: bool + multipleSelectOptions: _list[MultipleSelectOption] + valueSeparator: str + +@typing.type_check_only +class MultipleSelectOption(typing_extensions.TypedDict, total=False): + description: str + displayName: str + key: str + preselected: bool + @typing.type_check_only class NetworkConfig(typing_extensions.TypedDict, total=False): egressIps: _list[str] @@ -1060,9 +1099,11 @@ class ResultMetadata(typing_extensions.TypedDict, total=False): "DATA_TYPE_TIME_WITH_TIMEZONE", "DATA_TYPE_TIMESTAMP_WITH_TIMEZONE", ] + defaultValue: typing.Any description: str field: str jsonSchema: JsonSchema + nullable: bool @typing.type_check_only class RetryEventSubscriptionRequest(typing_extensions.TypedDict, total=False): ... @@ -1208,6 +1249,14 @@ class SslConfigTemplate(typing_extensions.TypedDict, total=False): serverCertType: _list[typing_extensions.Literal["CERT_TYPE_UNSPECIFIED", "PEM"]] sslType: typing_extensions.Literal["SSL_TYPE_UNSPECIFIED", "TLS", "MTLS"] +@typing.type_check_only +class StandardAction(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class StandardEntity(typing_extensions.TypedDict, total=False): + name: str + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int diff --git a/googleapiclient-stubs/_apis/connectors/v2/schemas.pyi b/googleapiclient-stubs/_apis/connectors/v2/schemas.pyi index 26494c91..2da8e66f 100644 --- a/googleapiclient-stubs/_apis/connectors/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/connectors/v2/schemas.pyi @@ -20,6 +20,12 @@ class Action(typing_extensions.TypedDict, total=False): resultJsonSchema: JsonSchema resultMetadata: _list[ResultMetadata] +@typing.type_check_only +class AuthCodeData(typing_extensions.TypedDict, total=False): + authCode: str + pkceVerifier: str + redirectUri: str + @typing.type_check_only class CheckReadinessResponse(typing_extensions.TypedDict, total=False): status: str @@ -68,7 +74,8 @@ class EntityType(typing_extensions.TypedDict, total=False): ] @typing.type_check_only -class ExchangeAuthCodeRequest(typing_extensions.TypedDict, total=False): ... +class ExchangeAuthCodeRequest(typing_extensions.TypedDict, total=False): + authCodeData: AuthCodeData @typing.type_check_only class ExchangeAuthCodeResponse(typing_extensions.TypedDict, total=False): @@ -420,7 +427,8 @@ class Reference(typing_extensions.TypedDict, total=False): type: str @typing.type_check_only -class RefreshAccessTokenRequest(typing_extensions.TypedDict, total=False): ... +class RefreshAccessTokenRequest(typing_extensions.TypedDict, total=False): + refreshToken: str @typing.type_check_only class RefreshAccessTokenResponse(typing_extensions.TypedDict, total=False): @@ -475,9 +483,11 @@ class ResultMetadata(typing_extensions.TypedDict, total=False): "TIME_WITH_TIMEZONE", "TIMESTAMP_WITH_TIMEZONE", ] + defaultValue: typing.Any description: str jsonSchema: JsonSchema name: str + nullable: bool @typing.type_check_only class Schedule(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi index 5b176c2e..2277ee79 100644 --- a/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/contactcenteraiplatform/v1alpha1/schemas.pyi @@ -12,11 +12,17 @@ class AdminUser(typing_extensions.TypedDict, total=False): @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class Component(typing_extensions.TypedDict, total=False): + name: str + serviceAttachmentNames: _list[str] + @typing.type_check_only class ContactCenter(typing_extensions.TypedDict, total=False): adminUser: AdminUser ccaipManagedUsers: bool createTime: str + critical: Critical customerDomainPrefix: str displayName: str early: Early @@ -25,6 +31,7 @@ class ContactCenter(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str normal: Normal + privateAccess: PrivateAccess privateComponents: _list[str] samlParams: SAMLParams state: typing_extensions.Literal[ @@ -36,6 +43,9 @@ class ContactCenter(typing_extensions.TypedDict, total=False): "STATE_TERMINATING_FAILED", "STATE_TERMINATED", "STATE_IN_GRACE_PERIOD", + "STATE_FAILING_OVER", + "STATE_DEGRADED", + "STATE_REPAIRING", ] updateTime: str uris: URIs @@ -47,6 +57,10 @@ class ContactCenterQuota(typing_extensions.TypedDict, total=False): contactCenterCountSum: int quotas: _list[Quota] +@typing.type_check_only +class Critical(typing_extensions.TypedDict, total=False): + peakHours: _list[WeeklySchedule] + @typing.type_check_only class Early(typing_extensions.TypedDict, total=False): ... @@ -128,6 +142,16 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PrivateAccess(typing_extensions.TypedDict, total=False): + egressSettings: _list[Component] + ingressSettings: _list[Component] + pscSetting: PscSetting + +@typing.type_check_only +class PscSetting(typing_extensions.TypedDict, total=False): + allowedConsumerProjectIds: _list[str] + @typing.type_check_only class Quota(typing_extensions.TypedDict, total=False): contactCenterCountLimit: int @@ -151,6 +175,35 @@ class Quota(typing_extensions.TypedDict, total=False): @typing.type_check_only class SAMLParams(typing_extensions.TypedDict, total=False): + authenticationContexts: _list[ + typing_extensions.Literal[ + "AUTHENTICATION_CONTEXT_UNSPECIFIED", + "INTERNET_PROTOCOL", + "INTERNET_PROTOCOL_PASSWORD", + "KERBEROS", + "MOBILE_ONE_FACTOR_UNREGISTERED", + "MOBILE_TWO_FACTOR_UNREGISTERED", + "MOBILE_ONE_FACTOR_CONTRACT", + "MOBILE_TWO_FACTOR_CONTRACT", + "PASSWORD", + "PASSWORD_PROTECTED_TRANSPORT", + "PREVIOUS_SESSION", + "PUBLIC_KEY_X509", + "PUBLIC_KEY_PGP", + "PUBLIC_KEY_SPKI", + "PUBLIC_KEY_XML_DIGITAL_SIGNATURE", + "SMARTCARD", + "SMARTCARD_PKI", + "SOFTWARE_PKI", + "TELEPHONY", + "TELEPHONY_NOMADIC", + "TELEPHONY_PERSONALIZED", + "TELEPHONY_AUTHENTICATED", + "SECURE_REMOTE_PASSWORD", + "SSL_TLS_CERTIFICATE_BASED", + "TIME_SYNC_TOKEN", + ] + ] certificate: str emailMapping: str entityId: str @@ -163,9 +216,34 @@ class Status(typing_extensions.TypedDict, total=False): details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class TimeOfDay(typing_extensions.TypedDict, total=False): + hours: int + minutes: int + nanos: int + seconds: int + @typing.type_check_only class URIs(typing_extensions.TypedDict, total=False): chatBotUri: str mediaUri: str rootUri: str virtualAgentStreamingServiceUri: str + +@typing.type_check_only +class WeeklySchedule(typing_extensions.TypedDict, total=False): + days: _list[ + typing_extensions.Literal[ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + ] + ] + duration: str + endTime: TimeOfDay + startTime: TimeOfDay diff --git a/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi b/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi index 801c6a59..b9c64778 100644 --- a/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/contactcenterinsights/v1/resources.pyi @@ -136,6 +136,16 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): ) -> GoogleLongrunningOperationHttpRequest: ... def analyses(self) -> AnalysesResource: ... + @typing.type_check_only + class EncryptionSpecResource(googleapiclient.discovery.Resource): + def initialize( + self, + *, + name: str, + body: GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + @typing.type_check_only class InsightsdataResource(googleapiclient.discovery.Resource): def export( @@ -333,6 +343,9 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudContactcenterinsightsV1ViewHttpRequest: ... + def getEncryptionSpec( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudContactcenterinsightsV1EncryptionSpecHttpRequest: ... def getSettings( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudContactcenterinsightsV1SettingsHttpRequest: ... @@ -345,6 +358,7 @@ class ContactcenterinsightsResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudContactcenterinsightsV1SettingsHttpRequest: ... def conversations(self) -> ConversationsResource: ... + def encryptionSpec(self) -> EncryptionSpecResource: ... def insightsdata(self) -> InsightsdataResource: ... def issueModels(self) -> IssueModelsResource: ... def operations(self) -> OperationsResource: ... @@ -407,6 +421,16 @@ class GoogleCloudContactcenterinsightsV1ConversationHttpRequest( num_retries: int = 0, ) -> GoogleCloudContactcenterinsightsV1Conversation: ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1EncryptionSpecHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudContactcenterinsightsV1EncryptionSpec: ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1IssueHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi b/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi index a9bac621..645f72ca 100644 --- a/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/contactcenterinsights/v1/schemas.pyi @@ -4,59 +4,6 @@ import typing_extensions _list = list -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1AgentCoachingInstruction( - typing_extensions.TypedDict, total=False -): - agentAction: str - condition: str - description: str - displayName: str - metadata: dict[str, typing.Any] - systemAction: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion( - typing_extensions.TypedDict, total=False -): - agentActionSuggestions: _list[ - GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion - ] - applicableInstructions: _list[ - GoogleCloudContactcenterinsightsV1AgentCoachingInstruction - ] - sampleResponses: _list[ - GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse - ] - suggestionEval: GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval - suggestionReasoning: GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion( - typing_extensions.TypedDict, total=False -): - agentAction: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval( - typing_extensions.TypedDict, total=False -): - actionActionSuggestionEval: str - sampleResponseEval: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning( - typing_extensions.TypedDict, total=False -): - agentActionTaken: str - issueSummary: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse( - typing_extensions.TypedDict, total=False -): - responseText: str - @typing.type_check_only class GoogleCloudContactcenterinsightsV1Analysis( typing_extensions.TypedDict, total=False @@ -465,6 +412,13 @@ class GoogleCloudContactcenterinsightsV1DialogflowSource( audioUri: str dialogflowConversation: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1EncryptionSpec( + typing_extensions.TypedDict, total=False +): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1Entity( typing_extensions.TypedDict, total=False @@ -578,13 +532,6 @@ class GoogleCloudContactcenterinsightsV1FaqAnswerData( question: str source: str -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1FreeFormSuggestion( - typing_extensions.TypedDict, total=False -): - labels: _list[str] - response: str - @typing.type_check_only class GoogleCloudContactcenterinsightsV1GcsSource( typing_extensions.TypedDict, total=False @@ -592,79 +539,6 @@ class GoogleCloudContactcenterinsightsV1GcsSource( audioUri: str transcriptUri: str -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GeneratorSuggestion( - typing_extensions.TypedDict, total=False -): - agentCoachingSuggestion: GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion - freeFormSuggestion: GoogleCloudContactcenterinsightsV1FreeFormSuggestion - summarySuggestion: GoogleCloudContactcenterinsightsV1SummarySuggestion - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse( - typing_extensions.TypedDict, total=False -): - generatorSuggestion: GoogleCloudContactcenterinsightsV1GeneratorSuggestion - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse( - typing_extensions.TypedDict, total=False -): - suggestedQuery: ( - GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery - ) - suggestedQueryAnswer: ( - GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer - ) - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer( - typing_extensions.TypedDict, total=False -): - answerText: str - faqSource: GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource - generativeSource: GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource - intentMatchingSource: GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource - matchConfidence: float - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource( - typing_extensions.TypedDict, total=False -): - document: str - question: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource( - typing_extensions.TypedDict, total=False -): - snippets: _list[ - GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet - ] - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet( - typing_extensions.TypedDict, total=False -): - document: str - text: str - title: str - uri: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource( - typing_extensions.TypedDict, total=False -): - title: str - uri: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery( - typing_extensions.TypedDict, total=False -): - queryText: str - score: float - @typing.type_check_only class GoogleCloudContactcenterinsightsV1HoldData( typing_extensions.TypedDict, total=False @@ -760,6 +634,26 @@ class GoogleCloudContactcenterinsightsV1IngestConversationsResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + partialErrors: _list[GoogleRpcStatus] + request: GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudContactcenterinsightsV1EncryptionSpec + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1Intent( typing_extensions.TypedDict, total=False @@ -781,6 +675,7 @@ class GoogleCloudContactcenterinsightsV1InterruptionData( @typing.type_check_only class GoogleCloudContactcenterinsightsV1Issue(typing_extensions.TypedDict, total=False): createTime: str + displayDescription: str displayName: str name: str sampleUtterances: _list[str] @@ -964,37 +859,20 @@ class GoogleCloudContactcenterinsightsV1RuntimeAnnotation( dialogflowInteraction: GoogleCloudContactcenterinsightsV1DialogflowInteractionData endBoundary: GoogleCloudContactcenterinsightsV1AnnotationBoundary faqAnswer: GoogleCloudContactcenterinsightsV1FaqAnswerData - generatorSuggestionResult: ( - GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse - ) - knowledgeAssistResult: GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse - knowledgeSearchResult: GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer smartComposeSuggestion: GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData smartReply: GoogleCloudContactcenterinsightsV1SmartReplyData startBoundary: GoogleCloudContactcenterinsightsV1AnnotationBoundary + userInput: GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput @typing.type_check_only -class GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer( +class GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput( typing_extensions.TypedDict, total=False ): - answer: str - answerRecord: str - answerSources: _list[ - GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource - ] - answerType: typing_extensions.Literal[ - "ANSWER_TYPE_UNSPECIFIED", "FAQ", "GENERATIVE", "INTENT" + generatorName: str + query: str + querySource: typing_extensions.Literal[ + "QUERY_SOURCE_UNSPECIFIED", "AGENT_QUERY", "SUGGESTED_QUERY" ] - confidenceScore: float - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource( - typing_extensions.TypedDict, total=False -): - document: str - snippet: str - title: str - uri: str @typing.type_check_only class GoogleCloudContactcenterinsightsV1SentimentData( @@ -1054,21 +932,6 @@ class GoogleCloudContactcenterinsightsV1SpeechConfig( ): speechRecognizer: str -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1SummarySuggestion( - typing_extensions.TypedDict, total=False -): - summarySections: _list[ - GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection - ] - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection( - typing_extensions.TypedDict, total=False -): - section: str - summary: str - @typing.type_check_only class GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata( typing_extensions.TypedDict, total=False @@ -1116,59 +979,6 @@ class GoogleCloudContactcenterinsightsV1View(typing_extensions.TypedDict, total= updateTime: str value: str -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction( - typing_extensions.TypedDict, total=False -): - agentAction: str - condition: str - description: str - displayName: str - metadata: dict[str, typing.Any] - systemAction: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion( - typing_extensions.TypedDict, total=False -): - agentActionSuggestions: _list[ - GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion - ] - applicableInstructions: _list[ - GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction - ] - sampleResponses: _list[ - GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse - ] - suggestionEval: GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval - suggestionReasoning: GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion( - typing_extensions.TypedDict, total=False -): - agentAction: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval( - typing_extensions.TypedDict, total=False -): - actionActionSuggestionEval: str - sampleResponseEval: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning( - typing_extensions.TypedDict, total=False -): - agentActionTaken: str - issueSummary: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse( - typing_extensions.TypedDict, total=False -): - responseText: str - @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1Analysis( typing_extensions.TypedDict, total=False @@ -1542,6 +1352,13 @@ class GoogleCloudContactcenterinsightsV1alpha1DialogflowSource( audioUri: str dialogflowConversation: str +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec( + typing_extensions.TypedDict, total=False +): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1Entity( typing_extensions.TypedDict, total=False @@ -1647,13 +1464,6 @@ class GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData( question: str source: str -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion( - typing_extensions.TypedDict, total=False -): - labels: _list[str] - response: str - @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1GcsSource( typing_extensions.TypedDict, total=False @@ -1661,79 +1471,6 @@ class GoogleCloudContactcenterinsightsV1alpha1GcsSource( audioUri: str transcriptUri: str -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion( - typing_extensions.TypedDict, total=False -): - agentCoachingSuggestion: ( - GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion - ) - freeFormSuggestion: GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion - summarySuggestion: GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse( - typing_extensions.TypedDict, total=False -): - generatorSuggestion: GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse( - typing_extensions.TypedDict, total=False -): - suggestedQuery: ( - GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery - ) - suggestedQueryAnswer: GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer( - typing_extensions.TypedDict, total=False -): - answerText: str - faqSource: GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource - generativeSource: GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource - intentMatchingSource: GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource - matchConfidence: float - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource( - typing_extensions.TypedDict, total=False -): - document: str - question: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource( - typing_extensions.TypedDict, total=False -): - snippets: _list[ - GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet - ] - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet( - typing_extensions.TypedDict, total=False -): - document: str - text: str - title: str - uri: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource( - typing_extensions.TypedDict, total=False -): - title: str - uri: str - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery( - typing_extensions.TypedDict, total=False -): - queryText: str - score: float - @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1HoldData( typing_extensions.TypedDict, total=False @@ -1829,6 +1566,26 @@ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + partialErrors: _list[GoogleRpcStatus] + request: GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec + +@typing.type_check_only +class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1Intent( typing_extensions.TypedDict, total=False @@ -1944,41 +1701,22 @@ class GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation( ) endBoundary: GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary faqAnswer: GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData - generatorSuggestionResult: ( - GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse - ) - knowledgeAssistResult: ( - GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse - ) - knowledgeSearchResult: GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer smartComposeSuggestion: ( GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData ) smartReply: GoogleCloudContactcenterinsightsV1alpha1SmartReplyData startBoundary: GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary + userInput: GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput @typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer( +class GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput( typing_extensions.TypedDict, total=False ): - answer: str - answerRecord: str - answerSources: _list[ - GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource - ] - answerType: typing_extensions.Literal[ - "ANSWER_TYPE_UNSPECIFIED", "FAQ", "GENERATIVE", "INTENT" + generatorName: str + query: str + querySource: typing_extensions.Literal[ + "QUERY_SOURCE_UNSPECIFIED", "AGENT_QUERY", "SUGGESTED_QUERY" ] - confidenceScore: float - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource( - typing_extensions.TypedDict, total=False -): - document: str - snippet: str - title: str - uri: str @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1SentimentData( @@ -2016,21 +1754,6 @@ class GoogleCloudContactcenterinsightsV1alpha1SpeechConfig( ): speechRecognizer: str -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion( - typing_extensions.TypedDict, total=False -): - summarySections: _list[ - GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection - ] - -@typing.type_check_only -class GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection( - typing_extensions.TypedDict, total=False -): - section: str - summary: str - @typing.type_check_only class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/container/v1/schemas.pyi b/googleapiclient-stubs/_apis/container/v1/schemas.pyi index dc23a948..7eef51f2 100644 --- a/googleapiclient-stubs/_apis/container/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/container/v1/schemas.pyi @@ -41,6 +41,7 @@ class AddonsConfig(typing_extensions.TypedDict, total=False): httpLoadBalancing: HttpLoadBalancing kubernetesDashboard: KubernetesDashboard networkPolicyConfig: NetworkPolicyConfig + rayOperatorConfig: RayOperatorConfig statefulHaConfig: StatefulHAConfig @typing.type_check_only @@ -721,6 +722,9 @@ class MonitoringComponentConfig(typing_extensions.TypedDict, total=False): "DAEMONSET", "DEPLOYMENT", "STATEFULSET", + "CADVISOR", + "KUBELET", + "DCGM", ] ] @@ -1040,6 +1044,20 @@ class RangeInfo(typing_extensions.TypedDict, total=False): rangeName: str utilization: float +@typing.type_check_only +class RayClusterLoggingConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class RayClusterMonitoringConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class RayOperatorConfig(typing_extensions.TypedDict, total=False): + enabled: bool + rayClusterLoggingConfig: RayClusterLoggingConfig + rayClusterMonitoringConfig: RayClusterMonitoringConfig + @typing.type_check_only class RecurringTimeWindow(typing_extensions.TypedDict, total=False): recurrence: str @@ -1047,11 +1065,15 @@ class RecurringTimeWindow(typing_extensions.TypedDict, total=False): @typing.type_check_only class ReleaseChannel(typing_extensions.TypedDict, total=False): - channel: typing_extensions.Literal["UNSPECIFIED", "RAPID", "REGULAR", "STABLE"] + channel: typing_extensions.Literal[ + "UNSPECIFIED", "RAPID", "REGULAR", "STABLE", "EXTENDED" + ] @typing.type_check_only class ReleaseChannelConfig(typing_extensions.TypedDict, total=False): - channel: typing_extensions.Literal["UNSPECIFIED", "RAPID", "REGULAR", "STABLE"] + channel: typing_extensions.Literal[ + "UNSPECIFIED", "RAPID", "REGULAR", "STABLE", "EXTENDED" + ] defaultVersion: str validVersions: _list[str] diff --git a/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi index be98ba4c..9b359cc4 100644 --- a/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/container/v1beta1/schemas.pyi @@ -44,6 +44,7 @@ class AddonsConfig(typing_extensions.TypedDict, total=False): kalmConfig: KalmConfig kubernetesDashboard: KubernetesDashboard networkPolicyConfig: NetworkPolicyConfig + rayOperatorConfig: RayOperatorConfig statefulHaConfig: StatefulHAConfig @typing.type_check_only @@ -820,6 +821,9 @@ class MonitoringComponentConfig(typing_extensions.TypedDict, total=False): "DAEMONSET", "DEPLOYMENT", "STATEFULSET", + "CADVISOR", + "KUBELET", + "DCGM", ] ] @@ -1166,6 +1170,20 @@ class RangeInfo(typing_extensions.TypedDict, total=False): rangeName: str utilization: float +@typing.type_check_only +class RayClusterLoggingConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class RayClusterMonitoringConfig(typing_extensions.TypedDict, total=False): + enabled: bool + +@typing.type_check_only +class RayOperatorConfig(typing_extensions.TypedDict, total=False): + enabled: bool + rayClusterLoggingConfig: RayClusterLoggingConfig + rayClusterMonitoringConfig: RayClusterMonitoringConfig + @typing.type_check_only class RecurringTimeWindow(typing_extensions.TypedDict, total=False): recurrence: str @@ -1173,12 +1191,16 @@ class RecurringTimeWindow(typing_extensions.TypedDict, total=False): @typing.type_check_only class ReleaseChannel(typing_extensions.TypedDict, total=False): - channel: typing_extensions.Literal["UNSPECIFIED", "RAPID", "REGULAR", "STABLE"] + channel: typing_extensions.Literal[ + "UNSPECIFIED", "RAPID", "REGULAR", "STABLE", "EXTENDED" + ] @typing.type_check_only class ReleaseChannelConfig(typing_extensions.TypedDict, total=False): availableVersions: _list[AvailableVersion] - channel: typing_extensions.Literal["UNSPECIFIED", "RAPID", "REGULAR", "STABLE"] + channel: typing_extensions.Literal[ + "UNSPECIFIED", "RAPID", "REGULAR", "STABLE", "EXTENDED" + ] defaultVersion: str validVersions: _list[str] diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1/resources.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1/resources.pyi index 70f06b12..a64faa83 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1/resources.pyi @@ -36,6 +36,24 @@ class ContainerAnalysisResource(googleapiclient.discovery.Resource): previous_response: ListNoteOccurrencesResponse, ) -> ListNoteOccurrencesResponseHttpRequest | None: ... + def batchCreate( + self, + *, + parent: str, + body: BatchCreateNotesRequest = ..., + **kwargs: typing.Any, + ) -> BatchCreateNotesResponseHttpRequest: ... + def create( + self, + *, + parent: str, + body: Note = ..., + noteId: str = ..., + **kwargs: typing.Any, + ) -> NoteHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> NoteHttpRequest: ... @@ -53,10 +71,31 @@ class ContainerAnalysisResource(googleapiclient.discovery.Resource): previous_request: ListNotesResponseHttpRequest, previous_response: ListNotesResponse, ) -> ListNotesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Note = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> NoteHttpRequest: ... def occurrences(self) -> OccurrencesResource: ... @typing.type_check_only class OccurrencesResource(googleapiclient.discovery.Resource): + def batchCreate( + self, + *, + parent: str, + body: BatchCreateOccurrencesRequest = ..., + **kwargs: typing.Any, + ) -> BatchCreateOccurrencesResponseHttpRequest: ... + def create( + self, *, parent: str, body: Occurrence = ..., **kwargs: typing.Any + ) -> OccurrenceHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> OccurrenceHttpRequest: ... @@ -80,6 +119,14 @@ class ContainerAnalysisResource(googleapiclient.discovery.Resource): previous_request: ListOccurrencesResponseHttpRequest, previous_response: ListOccurrencesResponse, ) -> ListOccurrencesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Occurrence = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OccurrenceHttpRequest: ... @typing.type_check_only class ResourcesResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi index fec53856..35bf9470 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1/schemas.pyi @@ -558,14 +558,6 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes( ): fileHash: _list[ContaineranalysisGoogleDevtoolsCloudbuildV1Hash] -@typing.type_check_only -class ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation( - typing_extensions.TypedDict, total=False -): - bucket: str - generation: str - object: str - @typing.type_check_only class ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig( typing_extensions.TypedDict, total=False @@ -577,7 +569,6 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig( typing_extensions.TypedDict, total=False ): proxySecretVersionName: str - proxySslCaInfo: ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation @typing.type_check_only class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource( diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi index 056b50c8..dcb8962e 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1alpha1/schemas.pyi @@ -500,14 +500,6 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes( ): fileHash: _list[ContaineranalysisGoogleDevtoolsCloudbuildV1Hash] -@typing.type_check_only -class ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation( - typing_extensions.TypedDict, total=False -): - bucket: str - generation: str - object: str - @typing.type_check_only class ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig( typing_extensions.TypedDict, total=False @@ -519,7 +511,6 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig( typing_extensions.TypedDict, total=False ): proxySecretVersionName: str - proxySslCaInfo: ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation @typing.type_check_only class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource( @@ -762,6 +753,7 @@ class Discovered(typing_extensions.TypedDict, total=False): lastScanTime: str operation: Operation sbomStatus: SBOMStatus + vulnerabilityAttestation: VulnerabilityAttestation @typing.type_check_only class Discovery(typing_extensions.TypedDict, total=False): @@ -1690,6 +1682,14 @@ class VulnerabilityAssessmentNote(typing_extensions.TypedDict, total=False): shortDescription: str title: str +@typing.type_check_only +class VulnerabilityAttestation(typing_extensions.TypedDict, total=False): + error: str + lastAttemptTime: str + state: typing_extensions.Literal[ + "VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED", "SUCCESS", "FAILURE" + ] + @typing.type_check_only class VulnerabilityDetails(typing_extensions.TypedDict, total=False): cvssScore: float diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1beta1/resources.pyi index b190f41c..eefee888 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1beta1/resources.pyi @@ -36,6 +36,24 @@ class ContainerAnalysisResource(googleapiclient.discovery.Resource): previous_response: ListNoteOccurrencesResponse, ) -> ListNoteOccurrencesResponseHttpRequest | None: ... + def batchCreate( + self, + *, + parent: str, + body: BatchCreateNotesRequest = ..., + **kwargs: typing.Any, + ) -> BatchCreateNotesResponseHttpRequest: ... + def create( + self, + *, + parent: str, + body: Note = ..., + noteId: str = ..., + **kwargs: typing.Any, + ) -> NoteHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> NoteHttpRequest: ... @@ -53,10 +71,31 @@ class ContainerAnalysisResource(googleapiclient.discovery.Resource): previous_request: ListNotesResponseHttpRequest, previous_response: ListNotesResponse, ) -> ListNotesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Note = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> NoteHttpRequest: ... def occurrences(self) -> OccurrencesResource: ... @typing.type_check_only class OccurrencesResource(googleapiclient.discovery.Resource): + def batchCreate( + self, + *, + parent: str, + body: BatchCreateOccurrencesRequest = ..., + **kwargs: typing.Any, + ) -> BatchCreateOccurrencesResponseHttpRequest: ... + def create( + self, *, parent: str, body: Occurrence = ..., **kwargs: typing.Any + ) -> OccurrenceHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> OccurrenceHttpRequest: ... @@ -80,6 +119,14 @@ class ContainerAnalysisResource(googleapiclient.discovery.Resource): previous_request: ListOccurrencesResponseHttpRequest, previous_response: ListOccurrencesResponse, ) -> ListOccurrencesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Occurrence = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OccurrenceHttpRequest: ... @typing.type_check_only class ResourcesResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi index 184a2058..02a221c2 100644 --- a/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/containeranalysis/v1beta1/schemas.pyi @@ -528,14 +528,6 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes( ): fileHash: _list[ContaineranalysisGoogleDevtoolsCloudbuildV1Hash] -@typing.type_check_only -class ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation( - typing_extensions.TypedDict, total=False -): - bucket: str - generation: str - object: str - @typing.type_check_only class ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig( typing_extensions.TypedDict, total=False @@ -547,7 +539,6 @@ class ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig( typing_extensions.TypedDict, total=False ): proxySecretVersionName: str - proxySslCaInfo: ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation @typing.type_check_only class ContaineranalysisGoogleDevtoolsCloudbuildV1GitSource( diff --git a/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi b/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi index 86985845..3252f95e 100644 --- a/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi +++ b/googleapiclient-stubs/_apis/content/v2_1/schemas.pyi @@ -1316,6 +1316,7 @@ class LocationIdSet(typing_extensions.TypedDict, total=False): class LoyaltyProgram(typing_extensions.TypedDict, total=False): cashbackForFutureUse: Price loyaltyPoints: str + memberPriceEffectiveDate: str price: Price programLabel: str tierLabel: str diff --git a/googleapiclient-stubs/_apis/contentwarehouse/v1/schemas.pyi b/googleapiclient-stubs/_apis/contentwarehouse/v1/schemas.pyi index ddab7b0b..6ddffc0e 100644 --- a/googleapiclient-stubs/_apis/contentwarehouse/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/contentwarehouse/v1/schemas.pyi @@ -1043,7 +1043,9 @@ class GoogleCloudDocumentaiV1BoundingPoly(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudDocumentaiV1Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1DocumentEntityRelation] error: GoogleRpcStatus @@ -1056,6 +1058,130 @@ class GoogleCloudDocumentaiV1Document(typing_extensions.TypedDict, total=False): textStyles: _list[GoogleCloudDocumentaiV1DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + ) + pageSpan: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + ) + tableBlock: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + ) + textBlock: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + ) + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1DocumentEntity(typing_extensions.TypedDict, total=False): confidence: float diff --git a/googleapiclient-stubs/_apis/css/__init__.pyi b/googleapiclient-stubs/_apis/css/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/css/v1/__init__.pyi b/googleapiclient-stubs/_apis/css/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/css/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/css/v1/resources.pyi b/googleapiclient-stubs/_apis/css/v1/resources.pyi new file mode 100644 index 00000000..fb661da7 --- /dev/null +++ b/googleapiclient-stubs/_apis/css/v1/resources.pyi @@ -0,0 +1,181 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class CssResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class CssProductInputsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, supplementalFeedId: str = ..., **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def insert( + self, + *, + parent: str, + body: CssProductInput = ..., + feedId: str = ..., + **kwargs: typing.Any, + ) -> CssProductInputHttpRequest: ... + + @typing.type_check_only + class CssProductsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> CssProductHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListCssProductsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListCssProductsResponseHttpRequest, + previous_response: ListCssProductsResponse, + ) -> ListCssProductsResponseHttpRequest | None: ... + + @typing.type_check_only + class LabelsResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: AccountLabel = ..., **kwargs: typing.Any + ) -> AccountLabelHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAccountLabelsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAccountLabelsResponseHttpRequest, + previous_response: ListAccountLabelsResponse, + ) -> ListAccountLabelsResponseHttpRequest | None: ... + def patch( + self, *, name: str, body: AccountLabel = ..., **kwargs: typing.Any + ) -> AccountLabelHttpRequest: ... + + def get( + self, *, name: str, parent: str = ..., **kwargs: typing.Any + ) -> AccountHttpRequest: ... + def listChildAccounts( + self, + *, + parent: str, + fullName: str = ..., + labelId: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListChildAccountsResponseHttpRequest: ... + def listChildAccounts_next( + self, + previous_request: ListChildAccountsResponseHttpRequest, + previous_response: ListChildAccountsResponse, + ) -> ListChildAccountsResponseHttpRequest | None: ... + def updateLabels( + self, + *, + name: str, + body: UpdateAccountLabelsRequest = ..., + **kwargs: typing.Any, + ) -> AccountHttpRequest: ... + def cssProductInputs(self) -> CssProductInputsResource: ... + def cssProducts(self) -> CssProductsResource: ... + def labels(self) -> LabelsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class AccountHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Account: ... + +@typing.type_check_only +class AccountLabelHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AccountLabel: ... + +@typing.type_check_only +class CssProductHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> CssProduct: ... + +@typing.type_check_only +class CssProductInputHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> CssProductInput: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListAccountLabelsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAccountLabelsResponse: ... + +@typing.type_check_only +class ListChildAccountsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListChildAccountsResponse: ... + +@typing.type_check_only +class ListCssProductsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListCssProductsResponse: ... diff --git a/googleapiclient-stubs/_apis/css/v1/schemas.pyi b/googleapiclient-stubs/_apis/css/v1/schemas.pyi new file mode 100644 index 00000000..0c213d4b --- /dev/null +++ b/googleapiclient-stubs/_apis/css/v1/schemas.pyi @@ -0,0 +1,192 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Account(typing_extensions.TypedDict, total=False): + accountType: typing_extensions.Literal[ + "ACCOUNT_TYPE_UNSPECIFIED", + "CSS_GROUP", + "CSS_DOMAIN", + "MC_PRIMARY_CSS_MCA", + "MC_CSS_MCA", + "MC_MARKETPLACE_MCA", + "MC_OTHER_MCA", + "MC_STANDALONE", + "MC_MCA_SUBACCOUNT", + ] + automaticLabelIds: _list[str] + displayName: str + fullName: str + homepageUri: str + labelIds: _list[str] + name: str + parent: str + +@typing.type_check_only +class AccountLabel(typing_extensions.TypedDict, total=False): + accountId: str + description: str + displayName: str + labelId: str + labelType: typing_extensions.Literal[ + "LABEL_TYPE_UNSPECIFIED", "MANUAL", "AUTOMATIC" + ] + name: str + +@typing.type_check_only +class Attributes(typing_extensions.TypedDict, total=False): + additionalImageLinks: _list[str] + adult: bool + ageGroup: str + brand: str + certifications: _list[Certification] + color: str + cppAdsRedirect: str + cppLink: str + cppMobileLink: str + customLabel0: str + customLabel1: str + customLabel2: str + customLabel3: str + customLabel4: str + description: str + excludedDestinations: _list[str] + expirationDate: str + gender: str + googleProductCategory: str + gtin: str + headlineOfferCondition: str + headlineOfferLink: str + headlineOfferMobileLink: str + headlineOfferPrice: Price + headlineOfferShippingPrice: Price + highPrice: Price + imageLink: str + includedDestinations: _list[str] + isBundle: bool + itemGroupId: str + lowPrice: Price + material: str + mpn: str + multipack: str + numberOfOffers: str + pattern: str + pause: str + productDetails: _list[ProductDetail] + productHeight: ProductDimension + productHighlights: _list[str] + productLength: ProductDimension + productTypes: _list[str] + productWeight: ProductWeight + productWidth: ProductDimension + size: str + sizeSystem: str + sizeTypes: _list[str] + title: str + +@typing.type_check_only +class Certification(typing_extensions.TypedDict, total=False): + authority: str + code: str + name: str + +@typing.type_check_only +class CssProduct(typing_extensions.TypedDict, total=False): + attributes: Attributes + contentLanguage: str + cssProductStatus: CssProductStatus + customAttributes: _list[CustomAttribute] + feedLabel: str + name: str + rawProvidedId: str + +@typing.type_check_only +class CssProductInput(typing_extensions.TypedDict, total=False): + attributes: Attributes + contentLanguage: str + customAttributes: _list[CustomAttribute] + feedLabel: str + finalName: str + freshnessTime: str + name: str + rawProvidedId: str + +@typing.type_check_only +class CssProductStatus(typing_extensions.TypedDict, total=False): + creationDate: str + destinationStatuses: _list[DestinationStatus] + googleExpirationDate: str + itemLevelIssues: _list[ItemLevelIssue] + lastUpdateDate: str + +@typing.type_check_only +class CustomAttribute(typing_extensions.TypedDict, total=False): + groupValues: _list[CustomAttribute] + name: str + value: str + +@typing.type_check_only +class DestinationStatus(typing_extensions.TypedDict, total=False): + approvedCountries: _list[str] + destination: str + disapprovedCountries: _list[str] + pendingCountries: _list[str] + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ItemLevelIssue(typing_extensions.TypedDict, total=False): + applicableCountries: _list[str] + attribute: str + code: str + description: str + destination: str + detail: str + documentation: str + resolution: str + servability: str + +@typing.type_check_only +class ListAccountLabelsResponse(typing_extensions.TypedDict, total=False): + accountLabels: _list[AccountLabel] + nextPageToken: str + +@typing.type_check_only +class ListChildAccountsResponse(typing_extensions.TypedDict, total=False): + accounts: _list[Account] + nextPageToken: str + +@typing.type_check_only +class ListCssProductsResponse(typing_extensions.TypedDict, total=False): + cssProducts: _list[CssProduct] + nextPageToken: str + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amountMicros: str + currencyCode: str + +@typing.type_check_only +class ProductDetail(typing_extensions.TypedDict, total=False): + attributeName: str + attributeValue: str + sectionName: str + +@typing.type_check_only +class ProductDimension(typing_extensions.TypedDict, total=False): + unit: str + value: float + +@typing.type_check_only +class ProductWeight(typing_extensions.TypedDict, total=False): + unit: str + value: float + +@typing.type_check_only +class UpdateAccountLabelsRequest(typing_extensions.TypedDict, total=False): + labelIds: _list[str] + parent: str diff --git a/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi b/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi index 8bda75b2..b579e0c0 100644 --- a/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataflow/v1b3/schemas.pyi @@ -523,6 +523,7 @@ class Job(typing_extensions.TypedDict, total=False): runtimeUpdatableParams: RuntimeUpdatableParams satisfiesPzi: bool satisfiesPzs: bool + serviceResources: ServiceResources stageStates: _list[ExecutionStageState] startTime: str steps: _list[Step] @@ -800,6 +801,8 @@ class ParameterMetadata(typing_extensions.TypedDict, total=False): "ENUM", "NUMBER", "KAFKA_TOPIC", + "KAFKA_READ_TOPIC", + "KAFKA_WRITE_TOPIC", ] parentName: str parentTriggerValues: _list[str] @@ -1014,6 +1017,10 @@ class SeqMapTaskOutputInfo(typing_extensions.TypedDict, total=False): sink: Sink tag: str +@typing.type_check_only +class ServiceResources(typing_extensions.TypedDict, total=False): + zones: _list[str] + @typing.type_check_only class ShellTask(typing_extensions.TypedDict, total=False): command: str diff --git a/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi index fbb765d5..de8c5971 100644 --- a/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/dataform/v1beta1/resources.pyi @@ -45,6 +45,23 @@ class DataformResource(googleapiclient.discovery.Resource): class RepositoriesResource(googleapiclient.discovery.Resource): @typing.type_check_only class CommentThreadsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class CommentsResource(googleapiclient.discovery.Resource): + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def getIamPolicy( self, *, @@ -59,6 +76,7 @@ class DataformResource(googleapiclient.discovery.Resource): body: SetIamPolicyRequest = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def comments(self) -> CommentsResource: ... @typing.type_check_only class CompilationResultsResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi index e4c62d72..1ceb1578 100644 --- a/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataform/v1beta1/schemas.pyi @@ -89,6 +89,7 @@ class CompilationError(typing_extensions.TypedDict, total=False): class CompilationResult(typing_extensions.TypedDict, total=False): codeCompilationConfig: CodeCompilationConfig compilationErrors: _list[CompilationError] + createTime: str dataEncryptionState: DataEncryptionState dataformCoreVersion: str gitCommitish: str @@ -495,12 +496,14 @@ class UncommittedFileChange(typing_extensions.TypedDict, total=False): @typing.type_check_only class WorkflowConfig(typing_extensions.TypedDict, total=False): + createTime: str cronSchedule: str invocationConfig: InvocationConfig name: str recentScheduledExecutionRecords: _list[ScheduledExecutionRecord] releaseConfig: str timeZone: str + updateTime: str @typing.type_check_only class WorkflowInvocation(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/datafusion/v1/resources.pyi b/googleapiclient-stubs/_apis/datafusion/v1/resources.pyi index 660617f2..886c8d61 100644 --- a/googleapiclient-stubs/_apis/datafusion/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/datafusion/v1/resources.pyi @@ -168,7 +168,6 @@ class DataFusionResource(googleapiclient.discovery.Resource): *, name: str, filter: str = ..., - includeUnrevealedLocations: bool = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, diff --git a/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi b/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi index 838dc623..ef6cab28 100644 --- a/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datafusion/v1/schemas.pyi @@ -17,6 +17,13 @@ class Accelerator(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "ENABLED", "DISABLED", "UNKNOWN" ] +@typing.type_check_only +class AssetLocation(typing_extensions.TypedDict, total=False): + expected: IsolationExpectations + extraParameters: _list[ExtraParameter] + locationData: _list[LocationData] + parentAsset: _list[CloudAsset] + @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] @@ -35,19 +42,29 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class BlobstoreLocation(typing_extensions.TypedDict, total=False): + policyId: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudAsset(typing_extensions.TypedDict, total=False): + assetName: str + assetType: str + +@typing.type_check_only +class CloudAssetComposition(typing_extensions.TypedDict, total=False): + childAsset: _list[CloudAsset] + @typing.type_check_only class CryptoKeyConfig(typing_extensions.TypedDict, total=False): keyReference: str @typing.type_check_only -class DataResidencyAugmentedView(typing_extensions.TypedDict, total=False): - crGopoGuris: _list[str] - crGopoPrefixes: _list[str] - serviceData: ServiceData - tpIds: _list[str] +class DirectLocationAssignment(typing_extensions.TypedDict, total=False): + location: _list[LocationAssignment] @typing.type_check_only class DnsPeering(typing_extensions.TypedDict, total=False): @@ -72,6 +89,10 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class ExtraParameter(typing_extensions.TypedDict, total=False): + regionalMigDistributionPolicy: RegionalMigDistributionPolicy + @typing.type_check_only class Instance(typing_extensions.TypedDict, total=False): accelerators: _list[Accelerator] @@ -93,6 +114,7 @@ class Instance(typing_extensions.TypedDict, total=False): eventPublishConfig: EventPublishConfig gcsBucket: str labels: dict[str, typing.Any] + maintenancePolicy: MaintenancePolicy name: str networkConfig: NetworkConfig options: dict[str, typing.Any] @@ -125,6 +147,40 @@ class Instance(typing_extensions.TypedDict, total=False): workforceIdentityServiceEndpoint: str zone: str +@typing.type_check_only +class IsolationExpectations(typing_extensions.TypedDict, total=False): + ziOrgPolicy: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + ziRegionPolicy: typing_extensions.Literal[ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED", + ] + ziRegionState: typing_extensions.Literal[ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED", + ] + zoneIsolation: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zoneSeparation: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsOrgPolicy: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsRegionState: typing_extensions.Literal[ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED", + ] + @typing.type_check_only class ListAvailableVersionsResponse(typing_extensions.TypedDict, total=False): availableVersions: _list[Version] @@ -159,6 +215,39 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LocationAssignment(typing_extensions.TypedDict, total=False): + location: str + locationType: typing_extensions.Literal[ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER", + ] + +@typing.type_check_only +class LocationData(typing_extensions.TypedDict, total=False): + blobstoreLocation: BlobstoreLocation + childAssetLocation: CloudAssetComposition + directLocation: DirectLocationAssignment + gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation + spannerLocation: SpannerLocation + +@typing.type_check_only +class MaintenancePolicy(typing_extensions.TypedDict, total=False): + maintenanceExclusionWindow: TimeWindow + maintenanceWindow: MaintenanceWindow + +@typing.type_check_only +class MaintenanceWindow(typing_extensions.TypedDict, total=False): + recurringTimeWindow: RecurringTimeWindow + @typing.type_check_only class NetworkConfig(typing_extensions.TypedDict, total=False): connectionType: typing_extensions.Literal[ @@ -190,9 +279,8 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): verb: str @typing.type_check_only -class PersistentDiskData(typing_extensions.TypedDict, total=False): - cfsRoots: _list[str] - gcsBucketNames: _list[str] +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): @@ -208,23 +296,38 @@ class PrivateServiceConnectConfig(typing_extensions.TypedDict, total=False): unreachableCidrBlock: str @typing.type_check_only -class RestartInstanceRequest(typing_extensions.TypedDict, total=False): ... +class RecurringTimeWindow(typing_extensions.TypedDict, total=False): + recurrence: str + window: TimeWindow @typing.type_check_only -class ServiceData(typing_extensions.TypedDict, total=False): - pd: PersistentDiskData +class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): + targetShape: int + zones: _list[ZoneConfiguration] + +@typing.type_check_only +class RestartInstanceRequest(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str +@typing.type_check_only +class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] + dbName: _list[str] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class TenantProjectProxy(typing_extensions.TypedDict, total=False): + projectNumbers: _list[str] + @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] @@ -233,6 +336,11 @@ class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): permissions: _list[str] +@typing.type_check_only +class TimeWindow(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + @typing.type_check_only class Version(typing_extensions.TypedDict, total=False): availableFeatures: _list[str] @@ -241,3 +349,7 @@ class Version(typing_extensions.TypedDict, total=False): "TYPE_UNSPECIFIED", "TYPE_PREVIEW", "TYPE_GENERAL_AVAILABILITY" ] versionNumber: str + +@typing.type_check_only +class ZoneConfiguration(typing_extensions.TypedDict, total=False): + zone: str diff --git a/googleapiclient-stubs/_apis/datafusion/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/datafusion/v1beta1/resources.pyi index 010744dc..81525e97 100644 --- a/googleapiclient-stubs/_apis/datafusion/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/datafusion/v1beta1/resources.pyi @@ -218,7 +218,6 @@ class DataFusionResource(googleapiclient.discovery.Resource): *, name: str, filter: str = ..., - includeUnrevealedLocations: bool = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, diff --git a/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi index ffa5fcff..5d8bb93b 100644 --- a/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datafusion/v1beta1/schemas.pyi @@ -17,6 +17,13 @@ class Accelerator(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "ENABLED", "DISABLED", "UNKNOWN" ] +@typing.type_check_only +class AssetLocation(typing_extensions.TypedDict, total=False): + expected: IsolationExpectations + extraParameters: _list[ExtraParameter] + locationData: _list[LocationData] + parentAsset: _list[CloudAsset] + @typing.type_check_only class AuditConfig(typing_extensions.TypedDict, total=False): auditLogConfigs: _list[AuditLogConfig] @@ -35,19 +42,29 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class BlobstoreLocation(typing_extensions.TypedDict, total=False): + policyId: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CloudAsset(typing_extensions.TypedDict, total=False): + assetName: str + assetType: str + +@typing.type_check_only +class CloudAssetComposition(typing_extensions.TypedDict, total=False): + childAsset: _list[CloudAsset] + @typing.type_check_only class CryptoKeyConfig(typing_extensions.TypedDict, total=False): keyReference: str @typing.type_check_only -class DataResidencyAugmentedView(typing_extensions.TypedDict, total=False): - crGopoGuris: _list[str] - crGopoPrefixes: _list[str] - serviceData: ServiceData - tpIds: _list[str] +class DirectLocationAssignment(typing_extensions.TypedDict, total=False): + location: _list[LocationAssignment] @typing.type_check_only class DnsPeering(typing_extensions.TypedDict, total=False): @@ -72,6 +89,10 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class ExtraParameter(typing_extensions.TypedDict, total=False): + regionalMigDistributionPolicy: RegionalMigDistributionPolicy + @typing.type_check_only class IAMPolicy(typing_extensions.TypedDict, total=False): policy: Policy @@ -98,6 +119,7 @@ class Instance(typing_extensions.TypedDict, total=False): eventPublishConfig: EventPublishConfig gcsBucket: str labels: dict[str, typing.Any] + maintenancePolicy: MaintenancePolicy name: str networkConfig: NetworkConfig options: dict[str, typing.Any] @@ -130,6 +152,40 @@ class Instance(typing_extensions.TypedDict, total=False): workforceIdentityServiceEndpoint: str zone: str +@typing.type_check_only +class IsolationExpectations(typing_extensions.TypedDict, total=False): + ziOrgPolicy: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + ziRegionPolicy: typing_extensions.Literal[ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED", + ] + ziRegionState: typing_extensions.Literal[ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED", + ] + zoneIsolation: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zoneSeparation: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsOrgPolicy: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + zsRegionState: typing_extensions.Literal[ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED", + ] + @typing.type_check_only class ListAvailableVersionsResponse(typing_extensions.TypedDict, total=False): availableVersions: _list[Version] @@ -169,6 +225,39 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class LocationAssignment(typing_extensions.TypedDict, total=False): + location: str + locationType: typing_extensions.Literal[ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER", + ] + +@typing.type_check_only +class LocationData(typing_extensions.TypedDict, total=False): + blobstoreLocation: BlobstoreLocation + childAssetLocation: CloudAssetComposition + directLocation: DirectLocationAssignment + gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation + spannerLocation: SpannerLocation + +@typing.type_check_only +class MaintenancePolicy(typing_extensions.TypedDict, total=False): + maintenanceExclusionWindow: TimeWindow + maintenanceWindow: MaintenanceWindow + +@typing.type_check_only +class MaintenanceWindow(typing_extensions.TypedDict, total=False): + recurringTimeWindow: RecurringTimeWindow + @typing.type_check_only class Namespace(typing_extensions.TypedDict, total=False): iamPolicy: IAMPolicy @@ -205,9 +294,8 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): verb: str @typing.type_check_only -class PersistentDiskData(typing_extensions.TypedDict, total=False): - cfsRoots: _list[str] - gcsBucketNames: _list[str] +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str @typing.type_check_only class Policy(typing_extensions.TypedDict, total=False): @@ -222,6 +310,16 @@ class PrivateServiceConnectConfig(typing_extensions.TypedDict, total=False): networkAttachment: str unreachableCidrBlock: str +@typing.type_check_only +class RecurringTimeWindow(typing_extensions.TypedDict, total=False): + recurrence: str + window: TimeWindow + +@typing.type_check_only +class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): + targetShape: int + zones: _list[ZoneConfiguration] + @typing.type_check_only class RemoveIamPolicyRequest(typing_extensions.TypedDict, total=False): ... @@ -231,21 +329,26 @@ class RemoveIamPolicyResponse(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class RestartInstanceRequest(typing_extensions.TypedDict, total=False): ... -@typing.type_check_only -class ServiceData(typing_extensions.TypedDict, total=False): - pd: PersistentDiskData - @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str +@typing.type_check_only +class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] + dbName: _list[str] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class TenantProjectProxy(typing_extensions.TypedDict, total=False): + projectNumbers: _list[str] + @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] @@ -254,6 +357,11 @@ class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): permissions: _list[str] +@typing.type_check_only +class TimeWindow(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + @typing.type_check_only class UpgradeInstanceRequest(typing_extensions.TypedDict, total=False): ... @@ -265,3 +373,7 @@ class Version(typing_extensions.TypedDict, total=False): "TYPE_UNSPECIFIED", "TYPE_PREVIEW", "TYPE_GENERAL_AVAILABILITY" ] versionNumber: str + +@typing.type_check_only +class ZoneConfiguration(typing_extensions.TypedDict, total=False): + zone: str diff --git a/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi b/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi index 22015884..1f185523 100644 --- a/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datamigration/v1/schemas.pyi @@ -124,6 +124,7 @@ class CloudSqlSettings(typing_extensions.TypedDict, total=False): "MYSQL_8_0_34", "MYSQL_8_0_35", "MYSQL_8_0_36", + "MYSQL_8_0_37", "POSTGRES_9_6", "POSTGRES_11", "POSTGRES_10", @@ -131,6 +132,7 @@ class CloudSqlSettings(typing_extensions.TypedDict, total=False): "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", + "POSTGRES_16", ] edition: typing_extensions.Literal[ "EDITION_UNSPECIFIED", "ENTERPRISE", "ENTERPRISE_PLUS" @@ -1056,6 +1058,8 @@ class SqlServerEncryptionOptions(typing_extensions.TypedDict, total=False): class SqlServerHomogeneousMigrationJobConfig(typing_extensions.TypedDict, total=False): backupFilePattern: str databaseBackups: _list[SqlServerDatabaseBackup] + promoteWhenReady: bool + useDiffBackup: bool @typing.type_check_only class SshScript(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi b/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi index cc0a0cfb..594e900d 100644 --- a/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/dataplex/v1/resources.pyi @@ -13,6 +13,38 @@ _list = list @typing.type_check_only class CloudDataplexResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OrganizationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class EncryptionConfigsResource(googleapiclient.discovery.Resource): + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: GoogleIamV1SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: GoogleIamV1TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + + def encryptionConfigs(self) -> EncryptionConfigsResource: ... + + def locations(self) -> LocationsResource: ... + @typing.type_check_only class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -580,6 +612,30 @@ class CloudDataplexResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only + class GlossariesResource(googleapiclient.discovery.Resource): + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: GoogleIamV1SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: GoogleIamV1TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only class GovernanceRulesResource(googleapiclient.discovery.Resource): def getIamPolicy( @@ -1269,6 +1325,44 @@ class CloudDataplexResource(googleapiclient.discovery.Resource): def tasks(self) -> TasksResource: ... def zones(self) -> ZonesResource: ... + @typing.type_check_only + class MetadataJobsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: GoogleCloudDataplexV1CancelMetadataJobRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def create( + self, + *, + parent: str, + body: GoogleCloudDataplexV1MetadataJob = ..., + metadataJobId: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDataplexV1MetadataJobHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDataplexV1ListMetadataJobsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDataplexV1ListMetadataJobsResponseHttpRequest, + previous_response: GoogleCloudDataplexV1ListMetadataJobsResponse, + ) -> ( + GoogleCloudDataplexV1ListMetadataJobsResponseHttpRequest | None + ): ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def cancel( @@ -1350,8 +1444,10 @@ class CloudDataplexResource(googleapiclient.discovery.Resource): def dataTaxonomies(self) -> DataTaxonomiesResource: ... def entryGroups(self) -> EntryGroupsResource: ... def entryTypes(self) -> EntryTypesResource: ... + def glossaries(self) -> GlossariesResource: ... def governanceRules(self) -> GovernanceRulesResource: ... def lakes(self) -> LakesResource: ... + def metadataJobs(self) -> MetadataJobsResource: ... def operations(self) -> OperationsResource: ... def locations(self) -> LocationsResource: ... @@ -1368,6 +1464,7 @@ class CloudDataplexResource(googleapiclient.discovery.Resource): ] | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... + def organizations(self) -> OrganizationsResource: ... def projects(self) -> ProjectsResource: ... @typing.type_check_only @@ -1670,6 +1767,16 @@ class GoogleCloudDataplexV1ListLakesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDataplexV1ListLakesResponse: ... +@typing.type_check_only +class GoogleCloudDataplexV1ListMetadataJobsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDataplexV1ListMetadataJobsResponse: ... + @typing.type_check_only class GoogleCloudDataplexV1ListPartitionsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1710,6 +1817,14 @@ class GoogleCloudDataplexV1ListZonesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDataplexV1ListZonesResponse: ... +@typing.type_check_only +class GoogleCloudDataplexV1MetadataJobHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDataplexV1MetadataJob: ... + @typing.type_check_only class GoogleCloudDataplexV1PartitionHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi b/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi index 6140a254..c276afad 100644 --- a/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataplex/v1/schemas.pyi @@ -109,11 +109,6 @@ class GoogleCloudDataplexV1AspectType(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] metadataTemplate: GoogleCloudDataplexV1AspectTypeMetadataTemplate name: str - transferStatus: typing_extensions.Literal[ - "TRANSFER_STATUS_UNSPECIFIED", - "TRANSFER_STATUS_MIGRATED", - "TRANSFER_STATUS_TRANSFERRED", - ] uid: str updateTime: str @@ -267,6 +262,11 @@ class GoogleCloudDataplexV1CancelJobRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDataplexV1CancelMetadataJobRequest( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDataplexV1Content(typing_extensions.TypedDict, total=False): createTime: str @@ -515,6 +515,7 @@ class GoogleCloudDataplexV1DataQualityRule(typing_extensions.TypedDict, total=Fa statisticRangeExpectation: ( GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation ) + suspended: bool tableConditionExpectation: ( GoogleCloudDataplexV1DataQualityRuleTableConditionExpectation ) @@ -787,11 +788,13 @@ class GoogleCloudDataplexV1DataScanExecutionSpec( class GoogleCloudDataplexV1DataScanExecutionStatus( typing_extensions.TypedDict, total=False ): + latestJobCreateTime: str latestJobEndTime: str latestJobStartTime: str @typing.type_check_only class GoogleCloudDataplexV1DataScanJob(typing_extensions.TypedDict, total=False): + createTime: str dataProfileResult: GoogleCloudDataplexV1DataProfileResult dataProfileSpec: GoogleCloudDataplexV1DataProfileSpec dataQualityResult: GoogleCloudDataplexV1DataQualityResult @@ -938,11 +941,6 @@ class GoogleCloudDataplexV1EntryGroup(typing_extensions.TypedDict, total=False): etag: str labels: dict[str, typing.Any] name: str - transferStatus: typing_extensions.Literal[ - "TRANSFER_STATUS_UNSPECIFIED", - "TRANSFER_STATUS_MIGRATED", - "TRANSFER_STATUS_TRANSFERRED", - ] uid: str updateTime: str @@ -953,6 +951,7 @@ class GoogleCloudDataplexV1EntrySource(typing_extensions.TypedDict, total=False) description: str displayName: str labels: dict[str, typing.Any] + location: str platform: str resource: str system: str @@ -1096,6 +1095,12 @@ class GoogleCloudDataplexV1GovernanceEventEntity( entity: str entityType: typing_extensions.Literal["ENTITY_TYPE_UNSPECIFIED", "TABLE", "FILESET"] +@typing.type_check_only +class GoogleCloudDataplexV1ImportItem(typing_extensions.TypedDict, total=False): + aspectKeys: _list[str] + entry: GoogleCloudDataplexV1Entry + updateMask: str + @typing.type_check_only class GoogleCloudDataplexV1Job(typing_extensions.TypedDict, total=False): endTime: str @@ -1284,6 +1289,14 @@ class GoogleCloudDataplexV1ListLakesResponse(typing_extensions.TypedDict, total= nextPageToken: str unreachableLocations: _list[str] +@typing.type_check_only +class GoogleCloudDataplexV1ListMetadataJobsResponse( + typing_extensions.TypedDict, total=False +): + metadataJobs: _list[GoogleCloudDataplexV1MetadataJob] + nextPageToken: str + unreachableLocations: _list[str] + @typing.type_check_only class GoogleCloudDataplexV1ListPartitionsResponse( typing_extensions.TypedDict, total=False @@ -1309,6 +1322,68 @@ class GoogleCloudDataplexV1ListZonesResponse(typing_extensions.TypedDict, total= nextPageToken: str zones: _list[GoogleCloudDataplexV1Zone] +@typing.type_check_only +class GoogleCloudDataplexV1MetadataJob(typing_extensions.TypedDict, total=False): + createTime: str + importResult: GoogleCloudDataplexV1MetadataJobImportJobResult + importSpec: GoogleCloudDataplexV1MetadataJobImportJobSpec + labels: dict[str, typing.Any] + name: str + status: GoogleCloudDataplexV1MetadataJobStatus + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "IMPORT"] + uid: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDataplexV1MetadataJobImportJobResult( + typing_extensions.TypedDict, total=False +): + createdEntries: str + deletedEntries: str + recreatedEntries: str + unchangedEntries: str + updateTime: str + updatedEntries: str + +@typing.type_check_only +class GoogleCloudDataplexV1MetadataJobImportJobSpec( + typing_extensions.TypedDict, total=False +): + aspectSyncMode: typing_extensions.Literal[ + "SYNC_MODE_UNSPECIFIED", "FULL", "INCREMENTAL" + ] + entrySyncMode: typing_extensions.Literal[ + "SYNC_MODE_UNSPECIFIED", "FULL", "INCREMENTAL" + ] + logLevel: typing_extensions.Literal["LOG_LEVEL_UNSPECIFIED", "DEBUG", "INFO"] + scope: GoogleCloudDataplexV1MetadataJobImportJobSpecImportJobScope + sourceCreateTime: str + sourceStorageUri: str + +@typing.type_check_only +class GoogleCloudDataplexV1MetadataJobImportJobSpecImportJobScope( + typing_extensions.TypedDict, total=False +): + aspectTypes: _list[str] + entryGroups: _list[str] + entryTypes: _list[str] + +@typing.type_check_only +class GoogleCloudDataplexV1MetadataJobStatus(typing_extensions.TypedDict, total=False): + completionPercent: int + message: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "QUEUED", + "RUNNING", + "CANCELING", + "CANCELED", + "SUCCEEDED", + "FAILED", + "SUCCEEDED_WITH_ERRORS", + ] + updateTime: str + @typing.type_check_only class GoogleCloudDataplexV1OperationMetadata(typing_extensions.TypedDict, total=False): apiVersion: str diff --git a/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi b/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi index 16b080ca..c874ca47 100644 --- a/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dataproc/v1/schemas.pyi @@ -39,6 +39,14 @@ class AutoscalingPolicy(typing_extensions.TypedDict, total=False): secondaryWorkerConfig: InstanceGroupAutoscalingPolicyConfig workerConfig: InstanceGroupAutoscalingPolicyConfig +@typing.type_check_only +class AutotuningConfig(typing_extensions.TypedDict, total=False): + scenarios: _list[ + typing_extensions.Literal[ + "SCENARIO_UNSPECIFIED", "SCALING", "BROADCAST_HASH_JOIN", "MEMORY" + ] + ] + @typing.type_check_only class AuxiliaryNodeGroup(typing_extensions.TypedDict, total=False): nodeGroup: NodeGroup @@ -225,6 +233,8 @@ class DiagnoseClusterResults(typing_extensions.TypedDict, total=False): @typing.type_check_only class DiskConfig(typing_extensions.TypedDict, total=False): + bootDiskProvisionedIops: str + bootDiskProvisionedThroughput: str bootDiskSizeGb: int bootDiskType: str localSsdInterface: str @@ -667,6 +677,8 @@ class NodeGroupOperationMetadata(typing_extensions.TypedDict, total=False): "RESIZE", "REPAIR", "UPDATE_LABELS", + "START", + "STOP", ] status: ClusterOperationStatus statusHistory: _list[ClusterOperationStatus] @@ -811,6 +823,8 @@ class ResizeNodeGroupRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class RuntimeConfig(typing_extensions.TypedDict, total=False): + autotuningConfig: AutotuningConfig + cohort: str containerImage: str properties: dict[str, typing.Any] repositoryConfig: RepositoryConfig diff --git a/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi b/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi index ad3b6d76..6907c5ea 100644 --- a/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/datastream/v1/schemas.pyi @@ -95,12 +95,14 @@ class DiscoverConnectionProfileRequest(typing_extensions.TypedDict, total=False) mysqlRdbms: MysqlRdbms oracleRdbms: OracleRdbms postgresqlRdbms: PostgresqlRdbms + sqlServerRdbms: SqlServerRdbms @typing.type_check_only class DiscoverConnectionProfileResponse(typing_extensions.TypedDict, total=False): mysqlRdbms: MysqlRdbms oracleRdbms: OracleRdbms postgresqlRdbms: PostgresqlRdbms + sqlServerRdbms: SqlServerRdbms @typing.type_check_only class DropLargeObjects(typing_extensions.TypedDict, total=False): ... @@ -459,6 +461,9 @@ class SpecificStartPosition(typing_extensions.TypedDict, total=False): mysqlLogPosition: MysqlLogPosition oracleScnPosition: OracleScnPosition +@typing.type_check_only +class SqlServerChangeTables(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class SqlServerColumn(typing_extensions.TypedDict, total=False): column: str @@ -494,16 +499,21 @@ class SqlServerSchema(typing_extensions.TypedDict, total=False): @typing.type_check_only class SqlServerSourceConfig(typing_extensions.TypedDict, total=False): + changeTables: SqlServerChangeTables excludeObjects: SqlServerRdbms includeObjects: SqlServerRdbms maxConcurrentBackfillTasks: int maxConcurrentCdcTasks: int + transactionLogs: SqlServerTransactionLogs @typing.type_check_only class SqlServerTable(typing_extensions.TypedDict, total=False): columns: _list[SqlServerColumn] table: str +@typing.type_check_only +class SqlServerTransactionLogs(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class StartBackfillJobRequest(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/developerconnect/__init__.pyi b/googleapiclient-stubs/_apis/developerconnect/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/developerconnect/v1/__init__.pyi b/googleapiclient-stubs/_apis/developerconnect/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/developerconnect/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi b/googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi new file mode 100644 index 00000000..eab994af --- /dev/null +++ b/googleapiclient-stubs/_apis/developerconnect/v1/resources.pyi @@ -0,0 +1,334 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class DeveloperConnectResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProjectsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ConnectionsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class GitRepositoryLinksResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GitRepositoryLink = ..., + gitRepositoryLinkId: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + etag: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def fetchGitRefs( + self, + *, + gitRepositoryLink: str, + pageSize: int = ..., + pageToken: str = ..., + refType: typing_extensions.Literal[ + "REF_TYPE_UNSPECIFIED", "TAG", "BRANCH" + ] = ..., + **kwargs: typing.Any, + ) -> FetchGitRefsResponseHttpRequest: ... + def fetchGitRefs_next( + self, + previous_request: FetchGitRefsResponseHttpRequest, + previous_response: FetchGitRefsResponse, + ) -> FetchGitRefsResponseHttpRequest | None: ... + def fetchReadToken( + self, + *, + gitRepositoryLink: str, + body: FetchReadTokenRequest = ..., + **kwargs: typing.Any, + ) -> FetchReadTokenResponseHttpRequest: ... + def fetchReadWriteToken( + self, + *, + gitRepositoryLink: str, + body: FetchReadWriteTokenRequest = ..., + **kwargs: typing.Any, + ) -> FetchReadWriteTokenResponseHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GitRepositoryLinkHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListGitRepositoryLinksResponseHttpRequest: ... + def list_next( + self, + previous_request: ListGitRepositoryLinksResponseHttpRequest, + previous_response: ListGitRepositoryLinksResponse, + ) -> ListGitRepositoryLinksResponseHttpRequest | None: ... + + def create( + self, + *, + parent: str, + body: Connection = ..., + connectionId: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + etag: str = ..., + requestId: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def fetchGitHubInstallations( + self, *, connection: str, **kwargs: typing.Any + ) -> FetchGitHubInstallationsResponseHttpRequest: ... + def fetchLinkableGitRepositories( + self, + *, + connection: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> FetchLinkableGitRepositoriesResponseHttpRequest: ... + def fetchLinkableGitRepositories_next( + self, + previous_request: FetchLinkableGitRepositoriesResponseHttpRequest, + previous_response: FetchLinkableGitRepositoriesResponse, + ) -> FetchLinkableGitRepositoriesResponseHttpRequest | None: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ConnectionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListConnectionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListConnectionsResponseHttpRequest, + previous_response: ListConnectionsResponse, + ) -> ListConnectionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Connection = ..., + allowMissing: bool = ..., + requestId: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def gitRepositoryLinks(self) -> GitRepositoryLinksResource: ... + + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelOperationRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOperationsResponseHttpRequest, + previous_response: ListOperationsResponse, + ) -> ListOperationsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LocationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocationsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocationsResponseHttpRequest, + previous_response: ListLocationsResponse, + ) -> ListLocationsResponseHttpRequest | None: ... + def connections(self) -> ConnectionsResource: ... + def operations(self) -> OperationsResource: ... + + def locations(self) -> LocationsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def projects(self) -> ProjectsResource: ... + +@typing.type_check_only +class ConnectionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Connection: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class FetchGitHubInstallationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FetchGitHubInstallationsResponse: ... + +@typing.type_check_only +class FetchGitRefsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FetchGitRefsResponse: ... + +@typing.type_check_only +class FetchLinkableGitRepositoriesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FetchLinkableGitRepositoriesResponse: ... + +@typing.type_check_only +class FetchReadTokenResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FetchReadTokenResponse: ... + +@typing.type_check_only +class FetchReadWriteTokenResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> FetchReadWriteTokenResponse: ... + +@typing.type_check_only +class GitRepositoryLinkHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GitRepositoryLink: ... + +@typing.type_check_only +class ListConnectionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListConnectionsResponse: ... + +@typing.type_check_only +class ListGitRepositoryLinksResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListGitRepositoryLinksResponse: ... + +@typing.type_check_only +class ListLocationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocationsResponse: ... + +@typing.type_check_only +class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOperationsResponse: ... + +@typing.type_check_only +class LocationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Location: ... + +@typing.type_check_only +class OperationHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Operation: ... diff --git a/googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi b/googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi new file mode 100644 index 00000000..af6697ed --- /dev/null +++ b/googleapiclient-stubs/_apis/developerconnect/v1/schemas.pyi @@ -0,0 +1,161 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Connection(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + createTime: str + deleteTime: str + disabled: bool + etag: str + githubConfig: GitHubConfig + installationState: InstallationState + labels: dict[str, typing.Any] + name: str + reconciling: bool + uid: str + updateTime: str + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FetchGitHubInstallationsResponse(typing_extensions.TypedDict, total=False): + installations: _list[Installation] + +@typing.type_check_only +class FetchGitRefsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + refNames: _list[str] + +@typing.type_check_only +class FetchLinkableGitRepositoriesResponse(typing_extensions.TypedDict, total=False): + linkableGitRepositories: _list[LinkableGitRepository] + nextPageToken: str + +@typing.type_check_only +class FetchReadTokenRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FetchReadTokenResponse(typing_extensions.TypedDict, total=False): + expirationTime: str + gitUsername: str + token: str + +@typing.type_check_only +class FetchReadWriteTokenRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FetchReadWriteTokenResponse(typing_extensions.TypedDict, total=False): + expirationTime: str + gitUsername: str + token: str + +@typing.type_check_only +class GitHubConfig(typing_extensions.TypedDict, total=False): + appInstallationId: str + authorizerCredential: OAuthCredential + githubApp: typing_extensions.Literal[ + "GIT_HUB_APP_UNSPECIFIED", "DEVELOPER_CONNECT", "FIREBASE" + ] + installationUri: str + +@typing.type_check_only +class GitRepositoryLink(typing_extensions.TypedDict, total=False): + annotations: dict[str, typing.Any] + cloneUri: str + createTime: str + deleteTime: str + etag: str + labels: dict[str, typing.Any] + name: str + reconciling: bool + uid: str + updateTime: str + +@typing.type_check_only +class Installation(typing_extensions.TypedDict, total=False): + id: str + name: str + type: str + +@typing.type_check_only +class InstallationState(typing_extensions.TypedDict, total=False): + actionUri: str + message: str + stage: typing_extensions.Literal[ + "STAGE_UNSPECIFIED", + "PENDING_CREATE_APP", + "PENDING_USER_OAUTH", + "PENDING_INSTALL_APP", + "COMPLETE", + ] + +@typing.type_check_only +class LinkableGitRepository(typing_extensions.TypedDict, total=False): + cloneUri: str + +@typing.type_check_only +class ListConnectionsResponse(typing_extensions.TypedDict, total=False): + connections: _list[Connection] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListGitRepositoryLinksResponse(typing_extensions.TypedDict, total=False): + gitRepositoryLinks: _list[GitRepositoryLink] + nextPageToken: str + unreachable: _list[str] + +@typing.type_check_only +class ListLocationsResponse(typing_extensions.TypedDict, total=False): + locations: _list[Location] + nextPageToken: str + +@typing.type_check_only +class ListOperationsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + operations: _list[Operation] + +@typing.type_check_only +class Location(typing_extensions.TypedDict, total=False): + displayName: str + labels: dict[str, typing.Any] + locationId: str + metadata: dict[str, typing.Any] + name: str + +@typing.type_check_only +class OAuthCredential(typing_extensions.TypedDict, total=False): + oauthTokenSecretVersion: str + username: str + +@typing.type_check_only +class Operation(typing_extensions.TypedDict, total=False): + done: bool + error: Status + metadata: dict[str, typing.Any] + name: str + response: dict[str, typing.Any] + +@typing.type_check_only +class OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class Status(typing_extensions.TypedDict, total=False): + code: int + details: _list[dict[str, typing.Any]] + message: str diff --git a/googleapiclient-stubs/_apis/dfareporting/v3_5/schemas.pyi b/googleapiclient-stubs/_apis/dfareporting/v3_5/schemas.pyi index ec980acc..44866888 100644 --- a/googleapiclient-stubs/_apis/dfareporting/v3_5/schemas.pyi +++ b/googleapiclient-stubs/_apis/dfareporting/v3_5/schemas.pyi @@ -196,7 +196,18 @@ class MediaResponseInfo(typing_extensions.TypedDict, total=False): scottyAgentUserId: str scottyCustomerLog: str trafficClassField: typing_extensions.Literal[ - "BE1", "AF1", "AF2", "AF3", "AF4", "NC1", "NC0", "BE0", "LLQ", "LLQ1", "LLQ2" + "BE1", + "AF1", + "AF2", + "AF3", + "AF4", + "NC1", + "NC0", + "BE0", + "LLQ", + "LLQ1", + "LLQ2", + "LLQ3", ] verifyHashFromHeader: bool diff --git a/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi b/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi index 4aa7757a..851fe52d 100644 --- a/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi +++ b/googleapiclient-stubs/_apis/dfareporting/v4/schemas.pyi @@ -460,19 +460,6 @@ class ChangeLogsListResponse(typing_extensions.TypedDict, total=False): kind: str nextPageToken: str -@typing.type_check_only -class ChannelGrouping(typing_extensions.TypedDict, total=False): - fallbackName: str - kind: str - name: str - rules: _list[ChannelGroupingRule] - -@typing.type_check_only -class ChannelGroupingRule(typing_extensions.TypedDict, total=False): - disjunctiveMatchStatements: _list[DisjunctiveMatchStatement] - kind: str - name: str - @typing.type_check_only class CitiesListResponse(typing_extensions.TypedDict, total=False): cities: _list[City] @@ -525,8 +512,6 @@ class CompatibleFields(typing_extensions.TypedDict, total=False): crossDimensionReachReportCompatibleFields: CrossDimensionReachReportCompatibleFields floodlightReportCompatibleFields: FloodlightReportCompatibleFields kind: str - pathAttributionReportCompatibleFields: PathReportCompatibleFields - pathReportCompatibleFields: PathReportCompatibleFields pathToConversionReportCompatibleFields: PathToConversionReportCompatibleFields reachReportCompatibleFields: ReachReportCompatibleFields reportCompatibleFields: ReportCompatibleFields @@ -1526,11 +1511,6 @@ class DirectorySitesListResponse(typing_extensions.TypedDict, total=False): kind: str nextPageToken: str -@typing.type_check_only -class DisjunctiveMatchStatement(typing_extensions.TypedDict, total=False): - eventFilters: _list[EventFilter] - kind: str - @typing.type_check_only class DynamicTargetingKey(typing_extensions.TypedDict, total=False): kind: str @@ -1562,12 +1542,6 @@ class EncryptionInfo(typing_extensions.TypedDict, total=False): ] kind: str -@typing.type_check_only -class EventFilter(typing_extensions.TypedDict, total=False): - dimensionFilter: PathReportDimensionValue - kind: str - uvarFilter: UvarFilter - @typing.type_check_only class EventTag(typing_extensions.TypedDict, total=False): accountId: str @@ -2025,6 +1999,7 @@ class MeasurementPartnerAdvertiserLink(typing_extensions.TypedDict, total=False) "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING", "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING", "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING", + "MEASUREMENT_PARTNER_UNLINK_PENDING", ] measurementPartner: typing_extensions.Literal[ "NONE", "INTEGRAL_AD_SCIENCE", "DOUBLE_VERIFY" @@ -2042,6 +2017,7 @@ class MeasurementPartnerCampaignLink(typing_extensions.TypedDict, total=False): "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING", "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING", "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING", + "MEASUREMENT_PARTNER_UNLINK_PENDING", ] measurementPartner: typing_extensions.Literal[ "NONE", "INTEGRAL_AD_SCIENCE", "DOUBLE_VERIFY" @@ -2059,6 +2035,7 @@ class MeasurementPartnerWrappingData(typing_extensions.TypedDict, total=False): "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING", "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING", "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING", + "MEASUREMENT_PARTNER_UNLINK_PENDING", ] measurementPartner: typing_extensions.Literal[ "NONE", "INTEGRAL_AD_SCIENCE", "DOUBLE_VERIFY" @@ -2251,32 +2228,6 @@ class OrdersListResponse(typing_extensions.TypedDict, total=False): nextPageToken: str orders: _list[Order] -@typing.type_check_only -class PathFilter(typing_extensions.TypedDict, total=False): - eventFilters: _list[EventFilter] - kind: str - pathMatchPosition: typing_extensions.Literal[ - "PATH_MATCH_POSITION_UNSPECIFIED", "ANY", "FIRST", "LAST" - ] - -@typing.type_check_only -class PathReportCompatibleFields(typing_extensions.TypedDict, total=False): - channelGroupings: _list[Dimension] - dimensions: _list[Dimension] - kind: str - metrics: _list[Metric] - pathFilters: _list[Dimension] - -@typing.type_check_only -class PathReportDimensionValue(typing_extensions.TypedDict, total=False): - dimensionName: str - ids: _list[str] - kind: str - matchType: typing_extensions.Literal[ - "EXACT", "BEGINS_WITH", "CONTAINS", "WILDCARD_EXPRESSION" - ] - values: _list[str] - @typing.type_check_only class PathToConversionReportCompatibleFields(typing_extensions.TypedDict, total=False): conversionDimensions: _list[Dimension] @@ -2680,20 +2631,12 @@ class Report(typing_extensions.TypedDict, total=False): lastModifiedTime: str name: str ownerProfileId: str - pathAttributionCriteria: dict[str, typing.Any] - pathCriteria: dict[str, typing.Any] pathToConversionCriteria: dict[str, typing.Any] reachCriteria: dict[str, typing.Any] schedule: dict[str, typing.Any] subAccountId: str type: typing_extensions.Literal[ - "STANDARD", - "REACH", - "PATH_TO_CONVERSION", - "CROSS_DIMENSION_REACH", - "FLOODLIGHT", - "PATH", - "PATH_ATTRIBUTION", + "STANDARD", "REACH", "PATH_TO_CONVERSION", "CROSS_DIMENSION_REACH", "FLOODLIGHT" ] @typing.type_check_only @@ -3179,14 +3122,6 @@ class UserRolesListResponse(typing_extensions.TypedDict, total=False): nextPageToken: str userRoles: _list[UserRole] -@typing.type_check_only -class UvarFilter(typing_extensions.TypedDict, total=False): - complement: bool - index: str - kind: str - match: typing_extensions.Literal["UNSPECIFIED", "EXACT", "CONTAINS"] - values: _list[str] - @typing.type_check_only class VideoFormat(typing_extensions.TypedDict, total=False): fileType: typing_extensions.Literal["FLV", "THREEGPP", "MP4", "WEBM", "M3U8"] diff --git a/googleapiclient-stubs/_apis/dialogflow/v2/resources.pyi b/googleapiclient-stubs/_apis/dialogflow/v2/resources.pyi index 66303829..4e3cbdc7 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v2/resources.pyi @@ -851,6 +851,15 @@ class DialogflowResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDialogflowV2SuggestFaqAnswersResponseHttpRequest ): ... + def suggestKnowledgeAssist( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDialogflowV2SuggestKnowledgeAssistResponseHttpRequest + ): ... def suggestSmartReplies( self, *, @@ -958,6 +967,30 @@ class DialogflowResource(googleapiclient.discovery.Resource): def participants(self) -> ParticipantsResource: ... def suggestions(self) -> SuggestionsResource: ... + @typing.type_check_only + class GeneratorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2Generator = ..., + generatorId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2GeneratorHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2ListGeneratorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowV2ListGeneratorsResponseHttpRequest, + previous_response: GoogleCloudDialogflowV2ListGeneratorsResponse, + ) -> GoogleCloudDialogflowV2ListGeneratorsResponseHttpRequest | None: ... + @typing.type_check_only class KnowledgeBasesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -1851,6 +1884,13 @@ class DialogflowResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDialogflowV2SuggestFaqAnswersResponseHttpRequest ): ... + def suggestKnowledgeAssist( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2SuggestKnowledgeAssistResponseHttpRequest: ... def suggestSmartReplies( self, *, @@ -1957,6 +1997,56 @@ class DialogflowResource(googleapiclient.discovery.Resource): def participants(self) -> ParticipantsResource: ... def suggestions(self) -> SuggestionsResource: ... + @typing.type_check_only + class EncryptionSpecResource(googleapiclient.discovery.Resource): + def initialize( + self, + *, + name: str, + body: GoogleCloudDialogflowV2InitializeEncryptionSpecRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class GeneratorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2Generator = ..., + generatorId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2GeneratorHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowV2GeneratorHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2ListGeneratorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowV2ListGeneratorsResponseHttpRequest, + previous_response: GoogleCloudDialogflowV2ListGeneratorsResponse, + ) -> ( + GoogleCloudDialogflowV2ListGeneratorsResponseHttpRequest | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDialogflowV2Generator = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2GeneratorHttpRequest: ... + @typing.type_check_only class KnowledgeBasesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -2082,6 +2172,16 @@ class DialogflowResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + @typing.type_check_only + class StatelessSuggestionResource(googleapiclient.discovery.Resource): + def generate( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2GenerateStatelessSuggestionResponseHttpRequest: ... + @typing.type_check_only class SuggestionsResource(googleapiclient.discovery.Resource): def generateStatelessSummary( @@ -2110,6 +2210,9 @@ class DialogflowResource(googleapiclient.discovery.Resource): def getAgent( self, *, parent: str, **kwargs: typing.Any ) -> GoogleCloudDialogflowV2AgentHttpRequest: ... + def getEncryptionSpec( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowV2EncryptionSpecHttpRequest: ... def list( self, *, @@ -2138,8 +2241,11 @@ class DialogflowResource(googleapiclient.discovery.Resource): def conversationModels(self) -> ConversationModelsResource: ... def conversationProfiles(self) -> ConversationProfilesResource: ... def conversations(self) -> ConversationsResource: ... + def encryptionSpec(self) -> EncryptionSpecResource: ... + def generators(self) -> GeneratorsResource: ... def knowledgeBases(self) -> KnowledgeBasesResource: ... def operations(self) -> OperationsResource: ... + def statelessSuggestion(self) -> StatelessSuggestionResource: ... def suggestions(self) -> SuggestionsResource: ... @typing.type_check_only @@ -2202,6 +2308,7 @@ class DialogflowResource(googleapiclient.discovery.Resource): def conversationModels(self) -> ConversationModelsResource: ... def conversationProfiles(self) -> ConversationProfilesResource: ... def conversations(self) -> ConversationsResource: ... + def generators(self) -> GeneratorsResource: ... def knowledgeBases(self) -> KnowledgeBasesResource: ... def locations(self) -> LocationsResource: ... def operations(self) -> OperationsResource: ... @@ -2321,6 +2428,16 @@ class GoogleCloudDialogflowV2DocumentHttpRequest(googleapiclient.http.HttpReques num_retries: int = 0, ) -> GoogleCloudDialogflowV2Document: ... +@typing.type_check_only +class GoogleCloudDialogflowV2EncryptionSpecHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2EncryptionSpec: ... + @typing.type_check_only class GoogleCloudDialogflowV2EntityTypeHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -2355,6 +2472,16 @@ class GoogleCloudDialogflowV2FulfillmentHttpRequest(googleapiclient.http.HttpReq num_retries: int = 0, ) -> GoogleCloudDialogflowV2Fulfillment: ... +@typing.type_check_only +class GoogleCloudDialogflowV2GenerateStatelessSuggestionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse: ... + @typing.type_check_only class GoogleCloudDialogflowV2GenerateStatelessSummaryResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2365,6 +2492,14 @@ class GoogleCloudDialogflowV2GenerateStatelessSummaryResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2GenerateStatelessSummaryResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowV2GeneratorHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2Generator: ... + @typing.type_check_only class GoogleCloudDialogflowV2IntentHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -2481,6 +2616,16 @@ class GoogleCloudDialogflowV2ListEnvironmentsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2ListEnvironmentsResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowV2ListGeneratorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2ListGeneratorsResponse: ... + @typing.type_check_only class GoogleCloudDialogflowV2ListIntentsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2609,6 +2754,16 @@ class GoogleCloudDialogflowV2SuggestFaqAnswersResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2SuggestFaqAnswersResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse: ... + @typing.type_check_only class GoogleCloudDialogflowV2SuggestSmartRepliesResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi index b2f1f2bc..40980fc4 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v2/schemas.pyi @@ -27,6 +27,7 @@ class GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -187,6 +188,7 @@ class GoogleCloudDialogflowCxV3EventHandler(typing_extensions.TypedDict, total=F name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3Fulfillment @typing.type_check_only @@ -873,6 +875,7 @@ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -1041,6 +1044,7 @@ class GoogleCloudDialogflowCxV3beta1EventHandler( name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3beta1Fulfillment @typing.type_check_only @@ -1392,6 +1396,7 @@ class GoogleCloudDialogflowCxV3beta1QueryInput( intent: GoogleCloudDialogflowCxV3beta1IntentInput languageCode: str text: GoogleCloudDialogflowCxV3beta1TextInput + toolCallResult: GoogleCloudDialogflowCxV3beta1ToolCallResult @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata( @@ -1418,6 +1423,7 @@ class GoogleCloudDialogflowCxV3beta1ResponseMessage( GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall ) text: GoogleCloudDialogflowCxV3beta1ResponseMessageText + toolCall: GoogleCloudDialogflowCxV3beta1ToolCall @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( @@ -1568,6 +1574,27 @@ class GoogleCloudDialogflowCxV3beta1TestRunDifference( class GoogleCloudDialogflowCxV3beta1TextInput(typing_extensions.TypedDict, total=False): text: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCall(typing_extensions.TypedDict, total=False): + action: str + inputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResult( + typing_extensions.TypedDict, total=False +): + action: str + error: GoogleCloudDialogflowCxV3beta1ToolCallResultError + outputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResultError( + typing_extensions.TypedDict, total=False +): + message: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1TransitionRoute( typing_extensions.TypedDict, total=False @@ -1769,6 +1796,9 @@ class GoogleCloudDialogflowV2AgentAssistantFeedback( documentEfficiency: typing_extensions.Literal[ "DOCUMENT_EFFICIENCY_UNSPECIFIED", "INEFFICIENT", "EFFICIENT" ] + knowledgeAssistFeedback: ( + GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback + ) knowledgeSearchFeedback: ( GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback ) @@ -1776,6 +1806,13 @@ class GoogleCloudDialogflowV2AgentAssistantFeedback( GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback ) +@typing.type_check_only +class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback( + typing_extensions.TypedDict, total=False +): + answerCopied: bool + clickedUris: _list[str] + @typing.type_check_only class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback( typing_extensions.TypedDict, total=False @@ -1976,6 +2013,7 @@ class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -1991,6 +2029,7 @@ class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -2018,6 +2057,12 @@ class GoogleCloudDialogflowV2Conversation(typing_extensions.TypedDict, total=Fal phoneNumber: GoogleCloudDialogflowV2ConversationPhoneNumber startTime: str +@typing.type_check_only +class GoogleCloudDialogflowV2ConversationContext( + typing_extensions.TypedDict, total=False +): + messageEntries: _list[GoogleCloudDialogflowV2MessageEntry] + @typing.type_check_only class GoogleCloudDialogflowV2ConversationDataset( typing_extensions.TypedDict, total=False @@ -2242,6 +2287,11 @@ class GoogleCloudDialogflowV2DocumentReloadStatus( class GoogleCloudDialogflowV2DtmfParameters(typing_extensions.TypedDict, total=False): acceptsDtmfInput: bool +@typing.type_check_only +class GoogleCloudDialogflowV2EncryptionSpec(typing_extensions.TypedDict, total=False): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -2354,6 +2404,13 @@ class GoogleCloudDialogflowV2FaqAnswer(typing_extensions.TypedDict, total=False) question: str source: str +@typing.type_check_only +class GoogleCloudDialogflowV2FewShotExample(typing_extensions.TypedDict, total=False): + conversationContext: GoogleCloudDialogflowV2ConversationContext + extraInfo: dict[str, typing.Any] + output: GoogleCloudDialogflowV2GeneratorSuggestion + summarizationSectionList: GoogleCloudDialogflowV2SummarizationSectionList + @typing.type_check_only class GoogleCloudDialogflowV2Fulfillment(typing_extensions.TypedDict, total=False): displayName: str @@ -2386,6 +2443,25 @@ class GoogleCloudDialogflowV2GcsDestination(typing_extensions.TypedDict, total=F class GoogleCloudDialogflowV2GcsSources(typing_extensions.TypedDict, total=False): uris: _list[str] +@typing.type_check_only +class GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest( + typing_extensions.TypedDict, total=False +): + conversationContext: GoogleCloudDialogflowV2ConversationContext + generator: GoogleCloudDialogflowV2Generator + generatorName: str + triggerEvents: _list[ + typing_extensions.Literal[ + "TRIGGER_EVENT_UNSPECIFIED", "END_OF_UTTERANCE", "MANUAL_CALL" + ] + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2GenerateStatelessSuggestionResponse( + typing_extensions.TypedDict, total=False +): + generatorSuggestion: GoogleCloudDialogflowV2GeneratorSuggestion + @typing.type_check_only class GoogleCloudDialogflowV2GenerateStatelessSummaryRequest( typing_extensions.TypedDict, total=False @@ -2419,6 +2495,24 @@ class GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary( text: str textSections: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDialogflowV2Generator(typing_extensions.TypedDict, total=False): + createTime: str + description: str + inferenceParameter: GoogleCloudDialogflowV2InferenceParameter + name: str + summarizationContext: GoogleCloudDialogflowV2SummarizationContext + triggerEvent: typing_extensions.Literal[ + "TRIGGER_EVENT_UNSPECIFIED", "END_OF_UTTERANCE", "MANUAL_CALL" + ] + updateTime: str + +@typing.type_check_only +class GoogleCloudDialogflowV2GeneratorSuggestion( + typing_extensions.TypedDict, total=False +): + summarySuggestion: GoogleCloudDialogflowV2SummarySuggestion + @typing.type_check_only class GoogleCloudDialogflowV2HumanAgentAssistantConfig( typing_extensions.TypedDict, total=False @@ -2458,9 +2552,11 @@ class GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig( class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig( typing_extensions.TypedDict, total=False ): + disableHighLatencyFeaturesSyncDelivery: bool featureConfigs: _list[ GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig ] + generators: _list[str] groupSuggestionResponses: bool @typing.type_check_only @@ -2476,6 +2572,8 @@ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig( disableAgentQueryLogging: bool enableConversationAugmentedQuery: bool enableEventBasedSuggestion: bool + enableQuerySuggestionOnly: bool + enableQuerySuggestionWhenNoAnswer: bool queryConfig: GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig suggestionFeature: GoogleCloudDialogflowV2SuggestionFeature suggestionTriggerSettings: ( @@ -2642,6 +2740,27 @@ class GoogleCloudDialogflowV2ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2InferenceParameter( + typing_extensions.TypedDict, total=False +): + maxOutputTokens: int + temperature: float + topK: int + topP: float + +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2InputAudioConfig(typing_extensions.TypedDict, total=False): audioEncoding: typing_extensions.Literal[ @@ -3011,6 +3130,52 @@ class GoogleCloudDialogflowV2IntentTrainingPhrasePart( text: str userDefined: bool +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2KnowledgeBase(typing_extensions.TypedDict, total=False): displayName: str @@ -3097,6 +3262,13 @@ class GoogleCloudDialogflowV2ListEnvironmentsResponse( environments: _list[GoogleCloudDialogflowV2Environment] nextPageToken: str +@typing.type_check_only +class GoogleCloudDialogflowV2ListGeneratorsResponse( + typing_extensions.TypedDict, total=False +): + generators: _list[GoogleCloudDialogflowV2Generator] + nextPageToken: str + @typing.type_check_only class GoogleCloudDialogflowV2ListIntentsResponse( typing_extensions.TypedDict, total=False @@ -3164,6 +3336,15 @@ class GoogleCloudDialogflowV2MessageAnnotation( containEntities: bool parts: _list[GoogleCloudDialogflowV2AnnotatedMessagePart] +@typing.type_check_only +class GoogleCloudDialogflowV2MessageEntry(typing_extensions.TypedDict, total=False): + createTime: str + languageCode: str + role: typing_extensions.Literal[ + "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER" + ] + text: str + @typing.type_check_only class GoogleCloudDialogflowV2NotificationConfig( typing_extensions.TypedDict, total=False @@ -3353,6 +3534,7 @@ class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3406,7 +3588,20 @@ class GoogleCloudDialogflowV2SpeechContext(typing_extensions.TypedDict, total=Fa class GoogleCloudDialogflowV2SpeechToTextConfig( typing_extensions.TypedDict, total=False ): + audioEncoding: typing_extensions.Literal[ + "AUDIO_ENCODING_UNSPECIFIED", + "AUDIO_ENCODING_LINEAR_16", + "AUDIO_ENCODING_FLAC", + "AUDIO_ENCODING_MULAW", + "AUDIO_ENCODING_AMR", + "AUDIO_ENCODING_AMR_WB", + "AUDIO_ENCODING_OGG_OPUS", + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + ] + enableWordInfo: bool + languageCode: str model: str + sampleRateHertz: int speechModelVariant: typing_extensions.Literal[ "SPEECH_MODEL_VARIANT_UNSPECIFIED", "USE_BEST_AVAILABLE", @@ -3472,6 +3667,22 @@ class GoogleCloudDialogflowV2SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest( + typing_extensions.TypedDict, total=False +): + contextSize: int + latestMessage: str + previousSuggestedQuery: str + +@typing.type_check_only +class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestSmartRepliesRequest( typing_extensions.TypedDict, total=False @@ -3498,6 +3709,7 @@ class GoogleCloudDialogflowV2SuggestionFeature( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3509,8 +3721,56 @@ class GoogleCloudDialogflowV2SuggestionResult(typing_extensions.TypedDict, total error: GoogleRpcStatus suggestArticlesResponse: GoogleCloudDialogflowV2SuggestArticlesResponse suggestFaqAnswersResponse: GoogleCloudDialogflowV2SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2SuggestSmartRepliesResponse +@typing.type_check_only +class GoogleCloudDialogflowV2SummarizationContext( + typing_extensions.TypedDict, total=False +): + fewShotExamples: _list[GoogleCloudDialogflowV2FewShotExample] + outputLanguageCode: str + summarizationSections: _list[GoogleCloudDialogflowV2SummarizationSection] + version: str + +@typing.type_check_only +class GoogleCloudDialogflowV2SummarizationSection( + typing_extensions.TypedDict, total=False +): + definition: str + key: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", + "SITUATION", + "ACTION", + "RESOLUTION", + "REASON_FOR_CANCELLATION", + "CUSTOMER_SATISFACTION", + "ENTITIES", + "CUSTOMER_DEFINED", + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2SummarizationSectionList( + typing_extensions.TypedDict, total=False +): + summarizationSections: _list[GoogleCloudDialogflowV2SummarizationSection] + +@typing.type_check_only +class GoogleCloudDialogflowV2SummarySuggestion( + typing_extensions.TypedDict, total=False +): + summarySections: _list[GoogleCloudDialogflowV2SummarySuggestionSummarySection] + +@typing.type_check_only +class GoogleCloudDialogflowV2SummarySuggestionSummarySection( + typing_extensions.TypedDict, total=False +): + section: str + summary: str + @typing.type_check_only class GoogleCloudDialogflowV2SynthesizeSpeechConfig( typing_extensions.TypedDict, total=False @@ -3657,6 +3917,7 @@ class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3689,6 +3950,13 @@ class GoogleCloudDialogflowV2beta1DialogflowAssistAnswer( intentSuggestion: GoogleCloudDialogflowV2beta1IntentSuggestion queryResult: GoogleCloudDialogflowV2beta1QueryResult +@typing.type_check_only +class GoogleCloudDialogflowV2beta1EncryptionSpec( + typing_extensions.TypedDict, total=False +): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -3757,6 +4025,18 @@ class GoogleCloudDialogflowV2beta1ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2beta1EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2beta1Intent(typing_extensions.TypedDict, total=False): action: str @@ -4225,6 +4505,54 @@ class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( ] source: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata( typing_extensions.TypedDict, total=False @@ -4244,6 +4572,7 @@ class GoogleCloudDialogflowV2beta1Message(typing_extensions.TypedDict, total=Fal participantRole: typing_extensions.Literal[ "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER" ] + responseMessages: _list[GoogleCloudDialogflowV2beta1ResponseMessage] sendTime: str sentimentAnalysis: GoogleCloudDialogflowV2beta1SentimentAnalysisResult @@ -4282,6 +4611,57 @@ class GoogleCloudDialogflowV2beta1QueryResult(typing_extensions.TypedDict, total webhookPayload: dict[str, typing.Any] webhookSource: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessage( + typing_extensions.TypedDict, total=False +): + endInteraction: GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction + liveAgentHandoff: GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff + mixedAudio: GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio + payload: dict[str, typing.Any] + telephonyTransferCall: ( + GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall + ) + text: GoogleCloudDialogflowV2beta1ResponseMessageText + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff( + typing_extensions.TypedDict, total=False +): + metadata: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio( + typing_extensions.TypedDict, total=False +): + segments: _list[GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment( + typing_extensions.TypedDict, total=False +): + allowPlaybackInterruption: bool + audio: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall( + typing_extensions.TypedDict, total=False +): + phoneNumber: str + sipUri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageText( + typing_extensions.TypedDict, total=False +): + text: _list[str] + @typing.type_check_only class GoogleCloudDialogflowV2beta1Sentiment(typing_extensions.TypedDict, total=False): magnitude: float @@ -4322,6 +4702,7 @@ class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -4356,6 +4737,14 @@ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2beta1FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse( typing_extensions.TypedDict, total=False @@ -4377,6 +4766,9 @@ class GoogleCloudDialogflowV2beta1SuggestionResult( GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse ) suggestFaqAnswersResponse: GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi b/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi index 8e30eacc..e4f24d6b 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v2beta1/resources.pyi @@ -821,6 +821,13 @@ class DialogflowResource(googleapiclient.discovery.Resource): ) -> ( GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponseHttpRequest ): ... + def suggestKnowledgeAssist( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponseHttpRequest: ... def suggestSmartReplies( self, *, @@ -929,6 +936,32 @@ class DialogflowResource(googleapiclient.discovery.Resource): def participants(self) -> ParticipantsResource: ... def suggestions(self) -> SuggestionsResource: ... + @typing.type_check_only + class GeneratorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2beta1Generator = ..., + generatorId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1GeneratorHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1ListGeneratorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowV2beta1ListGeneratorsResponseHttpRequest, + previous_response: GoogleCloudDialogflowV2beta1ListGeneratorsResponse, + ) -> ( + GoogleCloudDialogflowV2beta1ListGeneratorsResponseHttpRequest | None + ): ... + @typing.type_check_only class KnowledgeBasesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -1723,6 +1756,13 @@ class DialogflowResource(googleapiclient.discovery.Resource): body: GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest = ..., **kwargs: typing.Any, ) -> GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponseHttpRequest: ... + def suggestKnowledgeAssist( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponseHttpRequest: ... def suggestSmartReplies( self, *, @@ -1838,6 +1878,56 @@ class DialogflowResource(googleapiclient.discovery.Resource): def participants(self) -> ParticipantsResource: ... def suggestions(self) -> SuggestionsResource: ... + @typing.type_check_only + class EncryptionSpecResource(googleapiclient.discovery.Resource): + def initialize( + self, + *, + name: str, + body: GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class GeneratorsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2beta1Generator = ..., + generatorId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1GeneratorHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowV2beta1GeneratorHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1ListGeneratorsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowV2beta1ListGeneratorsResponseHttpRequest, + previous_response: GoogleCloudDialogflowV2beta1ListGeneratorsResponse, + ) -> ( + GoogleCloudDialogflowV2beta1ListGeneratorsResponseHttpRequest | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDialogflowV2beta1Generator = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1GeneratorHttpRequest: ... + @typing.type_check_only class KnowledgeBasesResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -1963,6 +2053,16 @@ class DialogflowResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + @typing.type_check_only + class StatelessSuggestionResource(googleapiclient.discovery.Resource): + def generate( + self, + *, + parent: str, + body: GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponseHttpRequest: ... + @typing.type_check_only class SuggestionsResource(googleapiclient.discovery.Resource): def generateStatelessSummary( @@ -1989,6 +2089,9 @@ class DialogflowResource(googleapiclient.discovery.Resource): def getAgent( self, *, parent: str, **kwargs: typing.Any ) -> GoogleCloudDialogflowV2beta1AgentHttpRequest: ... + def getEncryptionSpec( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowV2beta1EncryptionSpecHttpRequest: ... def list( self, *, @@ -2015,8 +2118,11 @@ class DialogflowResource(googleapiclient.discovery.Resource): def answerRecords(self) -> AnswerRecordsResource: ... def conversationProfiles(self) -> ConversationProfilesResource: ... def conversations(self) -> ConversationsResource: ... + def encryptionSpec(self) -> EncryptionSpecResource: ... + def generators(self) -> GeneratorsResource: ... def knowledgeBases(self) -> KnowledgeBasesResource: ... def operations(self) -> OperationsResource: ... + def statelessSuggestion(self) -> StatelessSuggestionResource: ... def suggestions(self) -> SuggestionsResource: ... @typing.type_check_only @@ -2079,6 +2185,7 @@ class DialogflowResource(googleapiclient.discovery.Resource): def answerRecords(self) -> AnswerRecordsResource: ... def conversationProfiles(self) -> ConversationProfilesResource: ... def conversations(self) -> ConversationsResource: ... + def generators(self) -> GeneratorsResource: ... def knowledgeBases(self) -> KnowledgeBasesResource: ... def locations(self) -> LocationsResource: ... def operations(self) -> OperationsResource: ... @@ -2192,6 +2299,16 @@ class GoogleCloudDialogflowV2beta1DocumentHttpRequest(googleapiclient.http.HttpR num_retries: int = 0, ) -> GoogleCloudDialogflowV2beta1Document: ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1EncryptionSpecHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2beta1EncryptionSpec: ... + @typing.type_check_only class GoogleCloudDialogflowV2beta1EntityTypeHttpRequest( googleapiclient.http.HttpRequest @@ -2232,6 +2349,16 @@ class GoogleCloudDialogflowV2beta1FulfillmentHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2beta1Fulfillment: ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse: ... + @typing.type_check_only class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2242,6 +2369,16 @@ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1GeneratorHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2beta1Generator: ... + @typing.type_check_only class GoogleCloudDialogflowV2beta1IntentHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -2330,6 +2467,16 @@ class GoogleCloudDialogflowV2beta1ListEnvironmentsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2beta1ListEnvironmentsResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ListGeneratorsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2beta1ListGeneratorsResponse: ... + @typing.type_check_only class GoogleCloudDialogflowV2beta1ListIntentsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2470,6 +2617,16 @@ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse: ... + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi index 153003a2..f691ffab 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v2beta1/schemas.pyi @@ -27,6 +27,7 @@ class GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -187,6 +188,7 @@ class GoogleCloudDialogflowCxV3EventHandler(typing_extensions.TypedDict, total=F name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3Fulfillment @typing.type_check_only @@ -873,6 +875,7 @@ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -1041,6 +1044,7 @@ class GoogleCloudDialogflowCxV3beta1EventHandler( name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3beta1Fulfillment @typing.type_check_only @@ -1392,6 +1396,7 @@ class GoogleCloudDialogflowCxV3beta1QueryInput( intent: GoogleCloudDialogflowCxV3beta1IntentInput languageCode: str text: GoogleCloudDialogflowCxV3beta1TextInput + toolCallResult: GoogleCloudDialogflowCxV3beta1ToolCallResult @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata( @@ -1418,6 +1423,7 @@ class GoogleCloudDialogflowCxV3beta1ResponseMessage( GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall ) text: GoogleCloudDialogflowCxV3beta1ResponseMessageText + toolCall: GoogleCloudDialogflowCxV3beta1ToolCall @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( @@ -1568,6 +1574,27 @@ class GoogleCloudDialogflowCxV3beta1TestRunDifference( class GoogleCloudDialogflowCxV3beta1TextInput(typing_extensions.TypedDict, total=False): text: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCall(typing_extensions.TypedDict, total=False): + action: str + inputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResult( + typing_extensions.TypedDict, total=False +): + action: str + error: GoogleCloudDialogflowCxV3beta1ToolCallResultError + outputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResultError( + typing_extensions.TypedDict, total=False +): + message: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1TransitionRoute( typing_extensions.TypedDict, total=False @@ -1786,6 +1813,7 @@ class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -1892,6 +1920,11 @@ class GoogleCloudDialogflowV2DeployConversationModelOperationMetadata( conversationModel: str createTime: str +@typing.type_check_only +class GoogleCloudDialogflowV2EncryptionSpec(typing_extensions.TypedDict, total=False): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -1971,6 +2004,18 @@ class GoogleCloudDialogflowV2ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2InputDataset(typing_extensions.TypedDict, total=False): dataset: str @@ -2297,6 +2342,52 @@ class GoogleCloudDialogflowV2IntentTrainingPhrasePart( text: str userDefined: bool +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2KnowledgeOperationMetadata( typing_extensions.TypedDict, total=False @@ -2391,6 +2482,7 @@ class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -2425,6 +2517,14 @@ class GoogleCloudDialogflowV2SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestSmartRepliesResponse( typing_extensions.TypedDict, total=False @@ -2438,6 +2538,9 @@ class GoogleCloudDialogflowV2SuggestionResult(typing_extensions.TypedDict, total error: GoogleRpcStatus suggestArticlesResponse: GoogleCloudDialogflowV2SuggestArticlesResponse suggestFaqAnswersResponse: GoogleCloudDialogflowV2SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2SuggestSmartRepliesResponse @typing.type_check_only @@ -2501,6 +2604,9 @@ class GoogleCloudDialogflowV2beta1AgentAssistantFeedback( documentEfficiency: typing_extensions.Literal[ "DOCUMENT_EFFICIENCY_UNSPECIFIED", "INEFFICIENT", "EFFICIENT" ] + knowledgeAssistFeedback: ( + GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback + ) knowledgeSearchFeedback: ( GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback ) @@ -2508,6 +2614,13 @@ class GoogleCloudDialogflowV2beta1AgentAssistantFeedback( GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback ) +@typing.type_check_only +class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback( + typing_extensions.TypedDict, total=False +): + answerCopied: bool + clickedUris: _list[str] + @typing.type_check_only class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback( typing_extensions.TypedDict, total=False @@ -2629,6 +2742,7 @@ class GoogleCloudDialogflowV2beta1AutomatedAgentReply( automatedAgentReplyType: typing_extensions.Literal[ "AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED", "PARTIAL", "FINAL" ] + callCompanionAuthCode: str cxCurrentPage: str cxSessionParameters: dict[str, typing.Any] detectIntentResponse: GoogleCloudDialogflowV2beta1DetectIntentResponse @@ -2739,6 +2853,7 @@ class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -2756,6 +2871,7 @@ class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -2800,6 +2916,12 @@ class GoogleCloudDialogflowV2beta1Conversation( phoneNumber: GoogleCloudDialogflowV2beta1ConversationPhoneNumber startTime: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ConversationContext( + typing_extensions.TypedDict, total=False +): + messageEntries: _list[GoogleCloudDialogflowV2beta1MessageEntry] + @typing.type_check_only class GoogleCloudDialogflowV2beta1ConversationEvent( typing_extensions.TypedDict, total=False @@ -2916,6 +3038,13 @@ class GoogleCloudDialogflowV2beta1DtmfParameters( ): acceptsDtmfInput: bool +@typing.type_check_only +class GoogleCloudDialogflowV2beta1EncryptionSpec( + typing_extensions.TypedDict, total=False +): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -3004,6 +3133,15 @@ class GoogleCloudDialogflowV2beta1FaqAnswer(typing_extensions.TypedDict, total=F question: str source: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1FewShotExample( + typing_extensions.TypedDict, total=False +): + conversationContext: GoogleCloudDialogflowV2beta1ConversationContext + extraInfo: dict[str, typing.Any] + output: GoogleCloudDialogflowV2beta1GeneratorSuggestion + summarizationSectionList: GoogleCloudDialogflowV2beta1SummarizationSectionList + @typing.type_check_only class GoogleCloudDialogflowV2beta1Fulfillment(typing_extensions.TypedDict, total=False): displayName: str @@ -3042,6 +3180,25 @@ class GoogleCloudDialogflowV2beta1GcsSource(typing_extensions.TypedDict, total=F class GoogleCloudDialogflowV2beta1GcsSources(typing_extensions.TypedDict, total=False): uris: _list[str] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest( + typing_extensions.TypedDict, total=False +): + conversationContext: GoogleCloudDialogflowV2beta1ConversationContext + generator: GoogleCloudDialogflowV2beta1Generator + generatorName: str + triggerEvents: _list[ + typing_extensions.Literal[ + "TRIGGER_EVENT_UNSPECIFIED", "END_OF_UTTERANCE", "MANUAL_CALL" + ] + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse( + typing_extensions.TypedDict, total=False +): + generatorSuggestion: GoogleCloudDialogflowV2beta1GeneratorSuggestion + @typing.type_check_only class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest( typing_extensions.TypedDict, total=False @@ -3075,6 +3232,24 @@ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary( text: str textSections: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1Generator(typing_extensions.TypedDict, total=False): + createTime: str + description: str + inferenceParameter: GoogleCloudDialogflowV2beta1InferenceParameter + name: str + summarizationContext: GoogleCloudDialogflowV2beta1SummarizationContext + triggerEvent: typing_extensions.Literal[ + "TRIGGER_EVENT_UNSPECIFIED", "END_OF_UTTERANCE", "MANUAL_CALL" + ] + updateTime: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1GeneratorSuggestion( + typing_extensions.TypedDict, total=False +): + summarySuggestion: GoogleCloudDialogflowV2beta1SummarySuggestion + @typing.type_check_only class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig( typing_extensions.TypedDict, total=False @@ -3114,9 +3289,11 @@ class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig( typing_extensions.TypedDict, total=False ): + disableHighLatencyFeaturesSyncDelivery: bool featureConfigs: _list[ GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig ] + generators: _list[str] groupSuggestionResponses: bool @typing.type_check_only @@ -3132,6 +3309,8 @@ class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConf disableAgentQueryLogging: bool enableConversationAugmentedQuery: bool enableEventBasedSuggestion: bool + enableQuerySuggestionOnly: bool + enableQuerySuggestionWhenNoAnswer: bool queryConfig: ( GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig ) @@ -3280,6 +3459,27 @@ class GoogleCloudDialogflowV2beta1ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InferenceParameter( + typing_extensions.TypedDict, total=False +): + maxOutputTokens: int + temperature: float + topK: int + topP: float + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2beta1EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2beta1InputAudioConfig( typing_extensions.TypedDict, total=False @@ -3295,6 +3495,7 @@ class GoogleCloudDialogflowV2beta1InputAudioConfig( "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", ] bargeInConfig: GoogleCloudDialogflowV2beta1BargeInConfig + defaultNoSpeechTimeout: str disableNoSpeechRecognizedEvent: bool enableAutomaticPunctuation: bool enableWordInfo: bool @@ -3789,6 +3990,54 @@ class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( ] source: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1KnowledgeBase( typing_extensions.TypedDict, total=False @@ -3854,6 +4103,13 @@ class GoogleCloudDialogflowV2beta1ListEnvironmentsResponse( environments: _list[GoogleCloudDialogflowV2beta1Environment] nextPageToken: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ListGeneratorsResponse( + typing_extensions.TypedDict, total=False +): + generators: _list[GoogleCloudDialogflowV2beta1Generator] + nextPageToken: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1ListIntentsResponse( typing_extensions.TypedDict, total=False @@ -3920,6 +4176,7 @@ class GoogleCloudDialogflowV2beta1Message(typing_extensions.TypedDict, total=Fal participantRole: typing_extensions.Literal[ "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER" ] + responseMessages: _list[GoogleCloudDialogflowV2beta1ResponseMessage] sendTime: str sentimentAnalysis: GoogleCloudDialogflowV2beta1SentimentAnalysisResult @@ -3930,6 +4187,17 @@ class GoogleCloudDialogflowV2beta1MessageAnnotation( containEntities: bool parts: _list[GoogleCloudDialogflowV2beta1AnnotatedMessagePart] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1MessageEntry( + typing_extensions.TypedDict, total=False +): + createTime: str + languageCode: str + role: typing_extensions.Literal[ + "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER" + ] + text: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1NotificationConfig( typing_extensions.TypedDict, total=False @@ -4176,6 +4444,7 @@ class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -4208,7 +4477,20 @@ class GoogleCloudDialogflowV2beta1SpeechContext( class GoogleCloudDialogflowV2beta1SpeechToTextConfig( typing_extensions.TypedDict, total=False ): + audioEncoding: typing_extensions.Literal[ + "AUDIO_ENCODING_UNSPECIFIED", + "AUDIO_ENCODING_LINEAR_16", + "AUDIO_ENCODING_FLAC", + "AUDIO_ENCODING_MULAW", + "AUDIO_ENCODING_AMR", + "AUDIO_ENCODING_AMR_WB", + "AUDIO_ENCODING_OGG_OPUS", + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + ] + enableWordInfo: bool + languageCode: str model: str + sampleRateHertz: int speechModelVariant: typing_extensions.Literal[ "SPEECH_MODEL_VARIANT_UNSPECIFIED", "USE_BEST_AVAILABLE", @@ -4287,6 +4569,22 @@ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2beta1FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest( + typing_extensions.TypedDict, total=False +): + contextSize: int + latestMessage: str + previousSuggestedQuery: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest( typing_extensions.TypedDict, total=False @@ -4344,6 +4642,7 @@ class GoogleCloudDialogflowV2beta1SuggestionFeature( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -4368,8 +4667,56 @@ class GoogleCloudDialogflowV2beta1SuggestionResult( GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse ) suggestFaqAnswersResponse: GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SummarizationContext( + typing_extensions.TypedDict, total=False +): + fewShotExamples: _list[GoogleCloudDialogflowV2beta1FewShotExample] + outputLanguageCode: str + summarizationSections: _list[GoogleCloudDialogflowV2beta1SummarizationSection] + version: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SummarizationSection( + typing_extensions.TypedDict, total=False +): + definition: str + key: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", + "SITUATION", + "ACTION", + "RESOLUTION", + "REASON_FOR_CANCELLATION", + "CUSTOMER_SATISFACTION", + "ENTITIES", + "CUSTOMER_DEFINED", + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SummarizationSectionList( + typing_extensions.TypedDict, total=False +): + summarizationSections: _list[GoogleCloudDialogflowV2beta1SummarizationSection] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SummarySuggestion( + typing_extensions.TypedDict, total=False +): + summarySections: _list[GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection( + typing_extensions.TypedDict, total=False +): + section: str + summary: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi index fabd2c7d..a27ba81d 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v3/schemas.pyi @@ -27,6 +27,7 @@ class GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -294,6 +295,7 @@ class GoogleCloudDialogflowCxV3DataStoreConnectionSignals( class GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals( typing_extensions.TypedDict, total=False ): + model: str modelOutput: str renderedPrompt: str @@ -333,6 +335,7 @@ class GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals( class GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals( typing_extensions.TypedDict, total=False ): + model: str modelOutput: str renderedPrompt: str @@ -494,6 +497,7 @@ class GoogleCloudDialogflowCxV3EventHandler(typing_extensions.TypedDict, total=F name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3Fulfillment @typing.type_check_only @@ -693,6 +697,7 @@ class GoogleCloudDialogflowCxV3Flow(typing_extensions.TypedDict, total=False): displayName: str eventHandlers: _list[GoogleCloudDialogflowCxV3EventHandler] knowledgeConnectorSettings: GoogleCloudDialogflowCxV3KnowledgeConnectorSettings + locked: bool multiLanguageSettings: GoogleCloudDialogflowCxV3FlowMultiLanguageSettings name: str nluSettings: GoogleCloudDialogflowCxV3NluSettings @@ -1249,6 +1254,7 @@ class GoogleCloudDialogflowCxV3Match(typing_extensions.TypedDict, total=False): "NO_MATCH", "NO_INPUT", "EVENT", + "KNOWLEDGE_CONNECTOR", "PLAYBOOK", ] parameters: dict[str, typing.Any] @@ -2060,6 +2066,7 @@ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -2228,6 +2235,7 @@ class GoogleCloudDialogflowCxV3beta1EventHandler( name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3beta1Fulfillment @typing.type_check_only @@ -2579,6 +2587,7 @@ class GoogleCloudDialogflowCxV3beta1QueryInput( intent: GoogleCloudDialogflowCxV3beta1IntentInput languageCode: str text: GoogleCloudDialogflowCxV3beta1TextInput + toolCallResult: GoogleCloudDialogflowCxV3beta1ToolCallResult @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata( @@ -2605,6 +2614,7 @@ class GoogleCloudDialogflowCxV3beta1ResponseMessage( GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall ) text: GoogleCloudDialogflowCxV3beta1ResponseMessageText + toolCall: GoogleCloudDialogflowCxV3beta1ToolCall @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( @@ -2755,6 +2765,27 @@ class GoogleCloudDialogflowCxV3beta1TestRunDifference( class GoogleCloudDialogflowCxV3beta1TextInput(typing_extensions.TypedDict, total=False): text: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCall(typing_extensions.TypedDict, total=False): + action: str + inputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResult( + typing_extensions.TypedDict, total=False +): + action: str + error: GoogleCloudDialogflowCxV3beta1ToolCallResultError + outputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResultError( + typing_extensions.TypedDict, total=False +): + message: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1TransitionRoute( typing_extensions.TypedDict, total=False @@ -2973,6 +3004,7 @@ class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3079,6 +3111,11 @@ class GoogleCloudDialogflowV2DeployConversationModelOperationMetadata( conversationModel: str createTime: str +@typing.type_check_only +class GoogleCloudDialogflowV2EncryptionSpec(typing_extensions.TypedDict, total=False): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -3158,6 +3195,18 @@ class GoogleCloudDialogflowV2ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2InputDataset(typing_extensions.TypedDict, total=False): dataset: str @@ -3484,6 +3533,52 @@ class GoogleCloudDialogflowV2IntentTrainingPhrasePart( text: str userDefined: bool +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2KnowledgeOperationMetadata( typing_extensions.TypedDict, total=False @@ -3578,6 +3673,7 @@ class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3612,6 +3708,14 @@ class GoogleCloudDialogflowV2SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestSmartRepliesResponse( typing_extensions.TypedDict, total=False @@ -3625,6 +3729,9 @@ class GoogleCloudDialogflowV2SuggestionResult(typing_extensions.TypedDict, total error: GoogleRpcStatus suggestArticlesResponse: GoogleCloudDialogflowV2SuggestArticlesResponse suggestFaqAnswersResponse: GoogleCloudDialogflowV2SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2SuggestSmartRepliesResponse @typing.type_check_only @@ -3698,6 +3805,7 @@ class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3730,6 +3838,13 @@ class GoogleCloudDialogflowV2beta1DialogflowAssistAnswer( intentSuggestion: GoogleCloudDialogflowV2beta1IntentSuggestion queryResult: GoogleCloudDialogflowV2beta1QueryResult +@typing.type_check_only +class GoogleCloudDialogflowV2beta1EncryptionSpec( + typing_extensions.TypedDict, total=False +): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -3798,6 +3913,18 @@ class GoogleCloudDialogflowV2beta1ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2beta1EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2beta1Intent(typing_extensions.TypedDict, total=False): action: str @@ -4266,6 +4393,54 @@ class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( ] source: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata( typing_extensions.TypedDict, total=False @@ -4285,6 +4460,7 @@ class GoogleCloudDialogflowV2beta1Message(typing_extensions.TypedDict, total=Fal participantRole: typing_extensions.Literal[ "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER" ] + responseMessages: _list[GoogleCloudDialogflowV2beta1ResponseMessage] sendTime: str sentimentAnalysis: GoogleCloudDialogflowV2beta1SentimentAnalysisResult @@ -4323,6 +4499,57 @@ class GoogleCloudDialogflowV2beta1QueryResult(typing_extensions.TypedDict, total webhookPayload: dict[str, typing.Any] webhookSource: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessage( + typing_extensions.TypedDict, total=False +): + endInteraction: GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction + liveAgentHandoff: GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff + mixedAudio: GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio + payload: dict[str, typing.Any] + telephonyTransferCall: ( + GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall + ) + text: GoogleCloudDialogflowV2beta1ResponseMessageText + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff( + typing_extensions.TypedDict, total=False +): + metadata: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio( + typing_extensions.TypedDict, total=False +): + segments: _list[GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment( + typing_extensions.TypedDict, total=False +): + allowPlaybackInterruption: bool + audio: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall( + typing_extensions.TypedDict, total=False +): + phoneNumber: str + sipUri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageText( + typing_extensions.TypedDict, total=False +): + text: _list[str] + @typing.type_check_only class GoogleCloudDialogflowV2beta1Sentiment(typing_extensions.TypedDict, total=False): magnitude: float @@ -4363,6 +4590,7 @@ class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -4397,6 +4625,14 @@ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2beta1FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse( typing_extensions.TypedDict, total=False @@ -4418,6 +4654,9 @@ class GoogleCloudDialogflowV2beta1SuggestionResult( GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse ) suggestFaqAnswersResponse: GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi b/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi index 0cd8e179..555f5b4b 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v3beta1/resources.pyi @@ -740,6 +740,127 @@ class DialogflowResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDialogflowCxV3beta1IntentHttpRequest: ... + @typing.type_check_only + class PlaybooksResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ExamplesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowCxV3beta1Example = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1ExampleHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowCxV3beta1ExampleHttpRequest: ... + def list( + self, + *, + parent: str, + languageCode: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1ListExamplesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowCxV3beta1ListExamplesResponseHttpRequest, + previous_response: GoogleCloudDialogflowCxV3beta1ListExamplesResponse, + ) -> ( + GoogleCloudDialogflowCxV3beta1ListExamplesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDialogflowCxV3beta1Example = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1ExampleHttpRequest: ... + + @typing.type_check_only + class VersionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowCxV3beta1PlaybookVersion = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDialogflowCxV3beta1PlaybookVersionHttpRequest + ): ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ( + GoogleCloudDialogflowCxV3beta1PlaybookVersionHttpRequest + ): ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponseHttpRequest, + previous_response: GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponse, + ) -> ( + GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponseHttpRequest + | None + ): ... + + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowCxV3beta1Playbook = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1PlaybookHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowCxV3beta1PlaybookHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDialogflowCxV3beta1ListPlaybooksResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDialogflowCxV3beta1ListPlaybooksResponseHttpRequest, + previous_response: GoogleCloudDialogflowCxV3beta1ListPlaybooksResponse, + ) -> ( + GoogleCloudDialogflowCxV3beta1ListPlaybooksResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDialogflowCxV3beta1Playbook = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1PlaybookHttpRequest: ... + def examples(self) -> ExamplesResource: ... + def versions(self) -> VersionsResource: ... + @typing.type_check_only class SessionsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -948,6 +1069,53 @@ class DialogflowResource(googleapiclient.discovery.Resource): ) -> GoogleLongrunningOperationHttpRequest: ... def results(self) -> ResultsResource: ... + @typing.type_check_only + class ToolsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDialogflowCxV3beta1Tool = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1ToolHttpRequest: ... + def delete( + self, *, name: str, force: bool = ..., **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def export( + self, + *, + parent: str, + body: GoogleCloudDialogflowCxV3beta1ExportToolsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDialogflowCxV3beta1ToolHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1ListToolsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDialogflowCxV3beta1ListToolsResponseHttpRequest, + previous_response: GoogleCloudDialogflowCxV3beta1ListToolsResponse, + ) -> ( + GoogleCloudDialogflowCxV3beta1ListToolsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDialogflowCxV3beta1Tool = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDialogflowCxV3beta1ToolHttpRequest: ... + @typing.type_check_only class TransitionRouteGroupsResource(googleapiclient.discovery.Resource): def create( @@ -1121,8 +1289,10 @@ class DialogflowResource(googleapiclient.discovery.Resource): def flows(self) -> FlowsResource: ... def generators(self) -> GeneratorsResource: ... def intents(self) -> IntentsResource: ... + def playbooks(self) -> PlaybooksResource: ... def sessions(self) -> SessionsResource: ... def testCases(self) -> TestCasesResource: ... + def tools(self) -> ToolsResource: ... def transitionRouteGroups(self) -> TransitionRouteGroupsResource: ... def webhooks(self) -> WebhooksResource: ... @@ -1358,6 +1528,16 @@ class GoogleCloudDialogflowCxV3beta1EnvironmentHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowCxV3beta1Environment: ... +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ExampleHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1Example: ... + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ExperimentHttpRequest( googleapiclient.http.HttpRequest @@ -1494,6 +1674,16 @@ class GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListExamplesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1ListExamplesResponse: ... + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ListExperimentsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1544,6 +1734,26 @@ class GoogleCloudDialogflowCxV3beta1ListPagesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowCxV3beta1ListPagesResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponse: ... + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListPlaybooksResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1ListPlaybooksResponse: ... + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1584,6 +1794,16 @@ class GoogleCloudDialogflowCxV3beta1ListTestCasesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowCxV3beta1ListTestCasesResponse: ... +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListToolsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1ListToolsResponse: ... + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1642,6 +1862,26 @@ class GoogleCloudDialogflowCxV3beta1PageHttpRequest(googleapiclient.http.HttpReq num_retries: int = 0, ) -> GoogleCloudDialogflowCxV3beta1Page: ... +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1Playbook: ... + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookVersionHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1PlaybookVersion: ... + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1SecuritySettingsHttpRequest( googleapiclient.http.HttpRequest @@ -1682,6 +1922,14 @@ class GoogleCloudDialogflowCxV3beta1TestCaseResultHttpRequest( num_retries: int = 0, ) -> GoogleCloudDialogflowCxV3beta1TestCaseResult: ... +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDialogflowCxV3beta1Tool: ... + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1TransitionRouteGroupHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi b/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi index c3503dd6..e6db0ef6 100644 --- a/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dialogflow/v3beta1/schemas.pyi @@ -27,6 +27,7 @@ class GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -187,6 +188,7 @@ class GoogleCloudDialogflowCxV3EventHandler(typing_extensions.TypedDict, total=F name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3Fulfillment @typing.type_check_only @@ -850,6 +852,14 @@ class GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig( genericWebService: GoogleCloudDialogflowCxV3WebhookGenericWebService service: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1Action(typing_extensions.TypedDict, total=False): + agentUtterance: GoogleCloudDialogflowCxV3beta1AgentUtterance + flowInvocation: GoogleCloudDialogflowCxV3beta1FlowInvocation + playbookInvocation: GoogleCloudDialogflowCxV3beta1PlaybookInvocation + toolUse: GoogleCloudDialogflowCxV3beta1ToolUse + userUtterance: GoogleCloudDialogflowCxV3beta1UserUtterance + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1AdvancedSettings( typing_extensions.TypedDict, total=False @@ -873,6 +883,7 @@ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings( class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings( typing_extensions.TypedDict, total=False ): + enableConsentBasedRedaction: bool enableInteractionLogging: bool enableStackdriverLogging: bool @@ -904,6 +915,7 @@ class GoogleCloudDialogflowCxV3beta1Agent(typing_extensions.TypedDict, total=Fal securitySettings: str speechToTextSettings: GoogleCloudDialogflowCxV3beta1SpeechToTextSettings startFlow: str + startPlaybook: str supportedLanguageCodes: _list[str] textToSpeechSettings: GoogleCloudDialogflowCxV3beta1TextToSpeechSettings timeZone: str @@ -944,6 +956,12 @@ class GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings( ): defaultEndUserMetadata: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1AgentUtterance( + typing_extensions.TypedDict, total=False +): + text: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1AgentValidationResult( typing_extensions.TypedDict, total=False @@ -1228,6 +1246,7 @@ class GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals( class GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals( typing_extensions.TypedDict, total=False ): + model: str modelOutput: str renderedPrompt: str @@ -1267,6 +1286,7 @@ class GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals( class GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals( typing_extensions.TypedDict, total=False ): + model: str modelOutput: str renderedPrompt: str @@ -1437,6 +1457,7 @@ class GoogleCloudDialogflowCxV3beta1EventHandler( name: str targetFlow: str targetPage: str + targetPlaybook: str triggerFulfillment: GoogleCloudDialogflowCxV3beta1Fulfillment @typing.type_check_only @@ -1445,6 +1466,27 @@ class GoogleCloudDialogflowCxV3beta1EventInput( ): event: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1Example(typing_extensions.TypedDict, total=False): + actions: _list[GoogleCloudDialogflowCxV3beta1Action] + conversationState: typing_extensions.Literal[ + "OUTPUT_STATE_UNSPECIFIED", + "OUTPUT_STATE_OK", + "OUTPUT_STATE_CANCELLED", + "OUTPUT_STATE_FAILED", + "OUTPUT_STATE_ESCALATED", + "OUTPUT_STATE_PENDING", + ] + createTime: str + description: str + displayName: str + languageCode: str + name: str + playbookInput: GoogleCloudDialogflowCxV3beta1PlaybookInput + playbookOutput: GoogleCloudDialogflowCxV3beta1PlaybookOutput + tokenCount: str + updateTime: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1Experiment( typing_extensions.TypedDict, total=False @@ -1628,6 +1670,15 @@ class GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse( content: str gcsUri: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ExportToolsRequest( + typing_extensions.TypedDict, total=False +): + dataFormat: typing_extensions.Literal["DATA_FORMAT_UNSPECIFIED", "BLOB", "JSON"] + tools: _list[str] + toolsContentInline: bool + toolsUri: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1FilterSpecs( typing_extensions.TypedDict, total=False @@ -1642,6 +1693,7 @@ class GoogleCloudDialogflowCxV3beta1Flow(typing_extensions.TypedDict, total=Fals displayName: str eventHandlers: _list[GoogleCloudDialogflowCxV3beta1EventHandler] knowledgeConnectorSettings: GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings + locked: bool multiLanguageSettings: GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings name: str nluSettings: GoogleCloudDialogflowCxV3beta1NluSettings @@ -1661,6 +1713,22 @@ class GoogleCloudDialogflowCxV3beta1FlowImportStrategy( "IMPORT_STRATEGY_THROW_ERROR", ] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1FlowInvocation( + typing_extensions.TypedDict, total=False +): + flow: str + flowState: typing_extensions.Literal[ + "OUTPUT_STATE_UNSPECIFIED", + "OUTPUT_STATE_OK", + "OUTPUT_STATE_CANCELLED", + "OUTPUT_STATE_FAILED", + "OUTPUT_STATE_ESCALATED", + "OUTPUT_STATE_PENDING", + ] + inputActionParameters: dict[str, typing.Any] + outputActionParameters: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings( typing_extensions.TypedDict, total=False @@ -1767,6 +1835,13 @@ class GoogleCloudDialogflowCxV3beta1GcsDestination( ): uri: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1GenerativeInfo( + typing_extensions.TypedDict, total=False +): + actionTracingInfo: GoogleCloudDialogflowCxV3beta1Example + currentPlaybooks: _list[str] + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1GenerativeSettings( typing_extensions.TypedDict, total=False @@ -1777,6 +1852,7 @@ class GoogleCloudDialogflowCxV3beta1GenerativeSettings( GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings ) languageCode: str + llmModelSettings: GoogleCloudDialogflowCxV3beta1LlmModelSettings name: str @typing.type_check_only @@ -1810,6 +1886,7 @@ class GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings @typing.type_check_only class GoogleCloudDialogflowCxV3beta1Generator(typing_extensions.TypedDict, total=False): displayName: str + llmModelSettings: GoogleCloudDialogflowCxV3beta1LlmModelSettings name: str placeholders: _list[GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder] promptText: GoogleCloudDialogflowCxV3beta1Phrase @@ -1955,6 +2032,15 @@ class GoogleCloudDialogflowCxV3beta1InlineDestination( ): content: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1InlineSchema( + typing_extensions.TypedDict, total=False +): + items: GoogleCloudDialogflowCxV3beta1TypeSchema + type: typing_extensions.Literal[ + "DATA_TYPE_UNSPECIFIED", "STRING", "NUMBER", "BOOLEAN", "ARRAY" + ] + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1InlineSource( typing_extensions.TypedDict, total=False @@ -2111,6 +2197,13 @@ class GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse( environments: _list[GoogleCloudDialogflowCxV3beta1Environment] nextPageToken: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListExamplesResponse( + typing_extensions.TypedDict, total=False +): + examples: _list[GoogleCloudDialogflowCxV3beta1Example] + nextPageToken: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ListExperimentsResponse( typing_extensions.TypedDict, total=False @@ -2146,6 +2239,20 @@ class GoogleCloudDialogflowCxV3beta1ListPagesResponse( nextPageToken: str pages: _list[GoogleCloudDialogflowCxV3beta1Page] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListPlaybookVersionsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + playbookVersions: _list[GoogleCloudDialogflowCxV3beta1PlaybookVersion] + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListPlaybooksResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + playbooks: _list[GoogleCloudDialogflowCxV3beta1Playbook] + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse( typing_extensions.TypedDict, total=False @@ -2174,6 +2281,13 @@ class GoogleCloudDialogflowCxV3beta1ListTestCasesResponse( nextPageToken: str testCases: _list[GoogleCloudDialogflowCxV3beta1TestCase] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ListToolsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + tools: _list[GoogleCloudDialogflowCxV3beta1Tool] + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse( typing_extensions.TypedDict, total=False @@ -2195,6 +2309,13 @@ class GoogleCloudDialogflowCxV3beta1ListWebhooksResponse( nextPageToken: str webhooks: _list[GoogleCloudDialogflowCxV3beta1Webhook] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1LlmModelSettings( + typing_extensions.TypedDict, total=False +): + model: str + promptText: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1LoadVersionRequest( typing_extensions.TypedDict, total=False @@ -2221,6 +2342,7 @@ class GoogleCloudDialogflowCxV3beta1Match(typing_extensions.TypedDict, total=Fal "NO_MATCH", "NO_INPUT", "EVENT", + "KNOWLEDGE_CONNECTOR", "PLAYBOOK", ] parameters: dict[str, typing.Any] @@ -2311,10 +2433,96 @@ class GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo( ] value: typing.Any +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ParameterDefinition( + typing_extensions.TypedDict, total=False +): + description: str + name: str + type: typing_extensions.Literal[ + "PARAMETER_TYPE_UNSPECIFIED", + "STRING", + "NUMBER", + "BOOLEAN", + "NULL", + "OBJECT", + "LIST", + ] + typeSchema: GoogleCloudDialogflowCxV3beta1TypeSchema + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1Phrase(typing_extensions.TypedDict, total=False): text: str +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1Playbook(typing_extensions.TypedDict, total=False): + createTime: str + displayName: str + goal: str + inputParameterDefinitions: _list[GoogleCloudDialogflowCxV3beta1ParameterDefinition] + instruction: GoogleCloudDialogflowCxV3beta1PlaybookInstruction + llmModelSettings: GoogleCloudDialogflowCxV3beta1LlmModelSettings + name: str + outputParameterDefinitions: _list[GoogleCloudDialogflowCxV3beta1ParameterDefinition] + referencedFlows: _list[str] + referencedPlaybooks: _list[str] + referencedTools: _list[str] + tokenCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookInput( + typing_extensions.TypedDict, total=False +): + actionParameters: dict[str, typing.Any] + precedingConversationSummary: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookInstruction( + typing_extensions.TypedDict, total=False +): + steps: _list[GoogleCloudDialogflowCxV3beta1PlaybookStep] + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookInvocation( + typing_extensions.TypedDict, total=False +): + playbook: str + playbookInput: GoogleCloudDialogflowCxV3beta1PlaybookInput + playbookOutput: GoogleCloudDialogflowCxV3beta1PlaybookOutput + playbookState: typing_extensions.Literal[ + "OUTPUT_STATE_UNSPECIFIED", + "OUTPUT_STATE_OK", + "OUTPUT_STATE_CANCELLED", + "OUTPUT_STATE_FAILED", + "OUTPUT_STATE_ESCALATED", + "OUTPUT_STATE_PENDING", + ] + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookOutput( + typing_extensions.TypedDict, total=False +): + actionParameters: dict[str, typing.Any] + executionSummary: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookStep( + typing_extensions.TypedDict, total=False +): + steps: _list[GoogleCloudDialogflowCxV3beta1PlaybookStep] + text: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1PlaybookVersion( + typing_extensions.TypedDict, total=False +): + description: str + examples: _list[GoogleCloudDialogflowCxV3beta1Example] + name: str + playbook: GoogleCloudDialogflowCxV3beta1Playbook + updateTime: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1QueryInput( typing_extensions.TypedDict, total=False @@ -2325,6 +2533,7 @@ class GoogleCloudDialogflowCxV3beta1QueryInput( intent: GoogleCloudDialogflowCxV3beta1IntentInput languageCode: str text: GoogleCloudDialogflowCxV3beta1TextInput + toolCallResult: GoogleCloudDialogflowCxV3beta1ToolCallResult @typing.type_check_only class GoogleCloudDialogflowCxV3beta1QueryParameters( @@ -2333,10 +2542,12 @@ class GoogleCloudDialogflowCxV3beta1QueryParameters( analyzeQueryTextSentiment: bool channel: str currentPage: str + currentPlaybook: str disableWebhook: bool endUserMetadata: dict[str, typing.Any] flowVersions: _list[str] geoLocation: GoogleTypeLatLng + llmModelSettings: GoogleCloudDialogflowCxV3beta1LlmModelSettings parameters: dict[str, typing.Any] payload: dict[str, typing.Any] populateDataStoreConnectionSignals: bool @@ -2352,10 +2563,12 @@ class GoogleCloudDialogflowCxV3beta1QueryResult( ): advancedSettings: GoogleCloudDialogflowCxV3beta1AdvancedSettings allowAnswerFeedback: bool + currentFlow: GoogleCloudDialogflowCxV3beta1Flow currentPage: GoogleCloudDialogflowCxV3beta1Page dataStoreConnectionSignals: GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals diagnosticInfo: dict[str, typing.Any] dtmf: GoogleCloudDialogflowCxV3beta1DtmfInput + generativeInfo: GoogleCloudDialogflowCxV3beta1GenerativeInfo intent: GoogleCloudDialogflowCxV3beta1Intent intentDetectionConfidence: float languageCode: str @@ -2406,6 +2619,7 @@ class GoogleCloudDialogflowCxV3beta1ResponseMessage( GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall ) text: GoogleCloudDialogflowCxV3beta1ResponseMessageText + toolCall: GoogleCloudDialogflowCxV3beta1ToolCall @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( @@ -2733,6 +2947,136 @@ class GoogleCloudDialogflowCxV3beta1TextToSpeechSettings( ): synthesizeSpeechConfigs: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1Tool(typing_extensions.TypedDict, total=False): + dataStoreSpec: GoogleCloudDialogflowCxV3beta1ToolDataStoreTool + description: str + displayName: str + extensionSpec: GoogleCloudDialogflowCxV3beta1ToolExtensionTool + functionSpec: GoogleCloudDialogflowCxV3beta1ToolFunctionTool + name: str + openApiSpec: GoogleCloudDialogflowCxV3beta1ToolOpenApiTool + toolType: typing_extensions.Literal[ + "TOOL_TYPE_UNSPECIFIED", "CUSTOMIZED_TOOL", "BUILTIN_TOOL" + ] + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolAuthentication( + typing_extensions.TypedDict, total=False +): + apiKeyConfig: GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig + oauthConfig: GoogleCloudDialogflowCxV3beta1ToolAuthenticationOAuthConfig + serviceAgentAuthConfig: ( + GoogleCloudDialogflowCxV3beta1ToolAuthenticationServiceAgentAuthConfig + ) + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolAuthenticationApiKeyConfig( + typing_extensions.TypedDict, total=False +): + apiKey: str + keyName: str + requestLocation: typing_extensions.Literal[ + "REQUEST_LOCATION_UNSPECIFIED", "HEADER", "QUERY_STRING" + ] + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolAuthenticationOAuthConfig( + typing_extensions.TypedDict, total=False +): + clientId: str + clientSecret: str + oauthGrantType: typing_extensions.Literal[ + "OAUTH_GRANT_TYPE_UNSPECIFIED", "CLIENT_CREDENTIAL" + ] + tokenEndpoint: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolAuthenticationServiceAgentAuthConfig( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCall(typing_extensions.TypedDict, total=False): + action: str + inputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResult( + typing_extensions.TypedDict, total=False +): + action: str + error: GoogleCloudDialogflowCxV3beta1ToolCallResultError + outputParameters: dict[str, typing.Any] + tool: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolCallResultError( + typing_extensions.TypedDict, total=False +): + message: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolDataStoreTool( + typing_extensions.TypedDict, total=False +): + dataStoreConnections: _list[GoogleCloudDialogflowCxV3beta1DataStoreConnection] + fallbackPrompt: GoogleCloudDialogflowCxV3beta1ToolDataStoreToolFallbackPrompt + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolDataStoreToolFallbackPrompt( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolExtensionTool( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolFunctionTool( + typing_extensions.TypedDict, total=False +): + inputSchema: dict[str, typing.Any] + outputSchema: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolOpenApiTool( + typing_extensions.TypedDict, total=False +): + authentication: GoogleCloudDialogflowCxV3beta1ToolAuthentication + serviceDirectoryConfig: GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig + textSchema: str + tlsConfig: GoogleCloudDialogflowCxV3beta1ToolTLSConfig + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolServiceDirectoryConfig( + typing_extensions.TypedDict, total=False +): + service: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolTLSConfig( + typing_extensions.TypedDict, total=False +): + caCerts: _list[GoogleCloudDialogflowCxV3beta1ToolTLSConfigCACert] + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolTLSConfigCACert( + typing_extensions.TypedDict, total=False +): + cert: str + displayName: str + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1ToolUse(typing_extensions.TypedDict, total=False): + action: str + inputActionParameters: dict[str, typing.Any] + outputActionParameters: dict[str, typing.Any] + tool: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1TrainFlowRequest( typing_extensions.TypedDict, total=False @@ -2826,12 +3170,32 @@ class GoogleCloudDialogflowCxV3beta1TurnSignals( userEscalated: bool webhookStatuses: _list[str] +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1TypeSchema( + typing_extensions.TypedDict, total=False +): + inlineSchema: GoogleCloudDialogflowCxV3beta1InlineSchema + schemaReference: GoogleCloudDialogflowCxV3beta1TypeSchemaSchemaReference + +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1TypeSchemaSchemaReference( + typing_extensions.TypedDict, total=False +): + schema: str + tool: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata( typing_extensions.TypedDict, total=False ): genericMetadata: GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata +@typing.type_check_only +class GoogleCloudDialogflowCxV3beta1UserUtterance( + typing_extensions.TypedDict, total=False +): + text: str + @typing.type_check_only class GoogleCloudDialogflowCxV3beta1ValidateAgentRequest( typing_extensions.TypedDict, total=False @@ -3097,6 +3461,7 @@ class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3203,6 +3568,11 @@ class GoogleCloudDialogflowV2DeployConversationModelOperationMetadata( conversationModel: str createTime: str +@typing.type_check_only +class GoogleCloudDialogflowV2EncryptionSpec(typing_extensions.TypedDict, total=False): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -3282,6 +3652,18 @@ class GoogleCloudDialogflowV2ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2InputDataset(typing_extensions.TypedDict, total=False): dataset: str @@ -3608,6 +3990,52 @@ class GoogleCloudDialogflowV2IntentTrainingPhrasePart( text: str userDefined: bool +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2KnowledgeOperationMetadata( typing_extensions.TypedDict, total=False @@ -3702,6 +4130,7 @@ class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata( "FAQ", "SMART_REPLY", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3736,6 +4165,14 @@ class GoogleCloudDialogflowV2SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2SuggestSmartRepliesResponse( typing_extensions.TypedDict, total=False @@ -3749,6 +4186,9 @@ class GoogleCloudDialogflowV2SuggestionResult(typing_extensions.TypedDict, total error: GoogleRpcStatus suggestArticlesResponse: GoogleCloudDialogflowV2SuggestArticlesResponse suggestFaqAnswersResponse: GoogleCloudDialogflowV2SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2SuggestSmartRepliesResponse @typing.type_check_only @@ -3822,6 +4262,7 @@ class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -3854,6 +4295,13 @@ class GoogleCloudDialogflowV2beta1DialogflowAssistAnswer( intentSuggestion: GoogleCloudDialogflowV2beta1IntentSuggestion queryResult: GoogleCloudDialogflowV2beta1QueryResult +@typing.type_check_only +class GoogleCloudDialogflowV2beta1EncryptionSpec( + typing_extensions.TypedDict, total=False +): + kmsKey: str + name: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1EntityType(typing_extensions.TypedDict, total=False): autoExpansionMode: typing_extensions.Literal[ @@ -3922,6 +4370,18 @@ class GoogleCloudDialogflowV2beta1ImportDocumentsResponse( ): warnings: _list[GoogleRpcStatus] +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata( + typing_extensions.TypedDict, total=False +): + request: GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecRequest( + typing_extensions.TypedDict, total=False +): + encryptionSpec: GoogleCloudDialogflowV2beta1EncryptionSpec + @typing.type_check_only class GoogleCloudDialogflowV2beta1Intent(typing_extensions.TypedDict, total=False): action: str @@ -4390,6 +4850,54 @@ class GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer( ] source: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer( + typing_extensions.TypedDict, total=False +): + answerRecord: str + suggestedQuery: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery + suggestedQueryAnswer: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer( + typing_extensions.TypedDict, total=False +): + answerText: str + faqSource: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource + generativeSource: ( + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource + ) + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource( + typing_extensions.TypedDict, total=False +): + question: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource( + typing_extensions.TypedDict, total=False +): + snippets: _list[ + GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet + ] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet( + typing_extensions.TypedDict, total=False +): + text: str + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery( + typing_extensions.TypedDict, total=False +): + queryText: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata( typing_extensions.TypedDict, total=False @@ -4409,6 +4917,7 @@ class GoogleCloudDialogflowV2beta1Message(typing_extensions.TypedDict, total=Fal participantRole: typing_extensions.Literal[ "ROLE_UNSPECIFIED", "HUMAN_AGENT", "AUTOMATED_AGENT", "END_USER" ] + responseMessages: _list[GoogleCloudDialogflowV2beta1ResponseMessage] sendTime: str sentimentAnalysis: GoogleCloudDialogflowV2beta1SentimentAnalysisResult @@ -4447,6 +4956,57 @@ class GoogleCloudDialogflowV2beta1QueryResult(typing_extensions.TypedDict, total webhookPayload: dict[str, typing.Any] webhookSource: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessage( + typing_extensions.TypedDict, total=False +): + endInteraction: GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction + liveAgentHandoff: GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff + mixedAudio: GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio + payload: dict[str, typing.Any] + telephonyTransferCall: ( + GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall + ) + text: GoogleCloudDialogflowV2beta1ResponseMessageText + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff( + typing_extensions.TypedDict, total=False +): + metadata: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio( + typing_extensions.TypedDict, total=False +): + segments: _list[GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment] + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment( + typing_extensions.TypedDict, total=False +): + allowPlaybackInterruption: bool + audio: str + uri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall( + typing_extensions.TypedDict, total=False +): + phoneNumber: str + sipUri: str + +@typing.type_check_only +class GoogleCloudDialogflowV2beta1ResponseMessageText( + typing_extensions.TypedDict, total=False +): + text: _list[str] + @typing.type_check_only class GoogleCloudDialogflowV2beta1Sentiment(typing_extensions.TypedDict, total=False): magnitude: float @@ -4487,6 +5047,7 @@ class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata( "DIALOGFLOW_ASSIST", "CONVERSATION_SUMMARIZATION", "KNOWLEDGE_SEARCH", + "KNOWLEDGE_ASSIST", ] @typing.type_check_only @@ -4521,6 +5082,14 @@ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse( faqAnswers: _list[GoogleCloudDialogflowV2beta1FaqAnswer] latestMessage: str +@typing.type_check_only +class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse( + typing_extensions.TypedDict, total=False +): + contextSize: int + knowledgeAssistAnswer: GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer + latestMessage: str + @typing.type_check_only class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse( typing_extensions.TypedDict, total=False @@ -4542,6 +5111,9 @@ class GoogleCloudDialogflowV2beta1SuggestionResult( GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse ) suggestFaqAnswersResponse: GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse + suggestKnowledgeAssistResponse: ( + GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse + ) suggestSmartRepliesResponse: GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi index c9b36699..a61897f9 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1/resources.pyi @@ -138,6 +138,69 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionSuggestionsResource( + googleapiclient.discovery.Resource + ): + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1Control = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1ListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1Control = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -572,11 +635,19 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1ImportUserEventsRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1PurgeUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def write( self, *, parent: str, body: GoogleCloudDiscoveryengineV1UserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1UserEventHttpRequest: ... @@ -599,6 +670,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1DataStore = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def delete( @@ -638,6 +710,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1DataStoreHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionSuggestions( + self, + ) -> CompletionSuggestionsResource: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def models(self) -> ModelsResource: ... def operations(self) -> OperationsResource: ... @@ -652,6 +728,50 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class EnginesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1Control = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1ListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1Control = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -848,6 +968,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1EngineHttpRequest: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def operations(self) -> OperationsResource: ... def servingConfigs(self) -> ServingConfigsResource: ... @@ -972,6 +1093,67 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionSuggestionsResource(googleapiclient.discovery.Resource): + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1Control = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1ListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1Control = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1ControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -1300,11 +1482,19 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1ImportUserEventsRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1PurgeUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def write( self, *, parent: str, body: GoogleCloudDiscoveryengineV1UserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1UserEventHttpRequest: ... @@ -1325,6 +1515,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1DataStore = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def delete( @@ -1361,6 +1552,8 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1DataStoreHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionSuggestions(self) -> CompletionSuggestionsResource: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def models(self) -> ModelsResource: ... def operations(self) -> OperationsResource: ... @@ -1383,6 +1576,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1CheckGroundingResponseHttpRequest: ... + @typing.type_check_only + class Identity_mapping_storesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + + def operations(self) -> OperationsResource: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( @@ -1415,17 +1632,28 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class UserEventsResource(googleapiclient.discovery.Resource): + def collect( + self, + *, + parent: str, + ets: str = ..., + uri: str = ..., + userEvent: str = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... def write( self, *, parent: str, body: GoogleCloudDiscoveryengineV1UserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1UserEventHttpRequest: ... def collections(self) -> CollectionsResource: ... def dataStores(self) -> DataStoresResource: ... def groundingConfigs(self) -> GroundingConfigsResource: ... + def identity_mapping_stores(self) -> Identity_mapping_storesResource: ... def operations(self) -> OperationsResource: ... def rankingConfigs(self) -> RankingConfigsResource: ... def userEvents(self) -> UserEventsResource: ... @@ -1457,6 +1685,13 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def provision( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1ProvisionProjectRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def locations(self) -> LocationsResource: ... def operations(self) -> OperationsResource: ... @@ -1520,6 +1755,14 @@ class GoogleCloudDiscoveryengineV1CompleteQueryResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1CompleteQueryResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1Control: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1ConversationHttpRequest( googleapiclient.http.HttpRequest @@ -1576,6 +1819,16 @@ class GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponseHttpReque num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ListControlsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1ListControlsResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1ListConversationsResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi index bddaa276..fc887d84 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1/schemas.pyi @@ -57,6 +57,17 @@ class GoogleCloudDiscoveryengineLoggingSourceLocation( ): functionName: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AlloyDbSource( + typing_extensions.TypedDict, total=False +): + clusterId: str + databaseId: str + gcsStagingDir: str + locationId: str + projectId: str + tableId: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1Answer(typing_extensions.TypedDict, total=False): answerSkippedReasons: _list[ @@ -66,6 +77,8 @@ class GoogleCloudDiscoveryengineV1Answer(typing_extensions.TypedDict, total=Fals "NON_ANSWER_SEEKING_QUERY_IGNORED", "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] answerText: str @@ -113,6 +126,7 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequest( safetySpec: GoogleCloudDiscoveryengineV1AnswerQueryRequestSafetySpec searchSpec: GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec session: str + userLabels: dict[str, typing.Any] userPseudoId: str @typing.type_check_only @@ -121,6 +135,7 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequestAnswerGenerationSpec( ): answerLanguageCode: str ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool ignoreNonAnswerSeekingQuery: bool includeCitations: bool modelSpec: ( @@ -155,7 +170,10 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryC ): types: _list[ typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] ] @@ -164,6 +182,7 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryR typing_extensions.TypedDict, total=False ): disable: bool + maxRephraseSteps: int @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerQueryRequestRelatedQuestionsSpec( @@ -191,9 +210,13 @@ class GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchParams( typing_extensions.TypedDict, total=False ): boostSpec: GoogleCloudDiscoveryengineV1SearchRequestBoostSpec + dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec] filter: str maxReturnResults: int orderBy: str + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultList( @@ -277,7 +300,10 @@ class GoogleCloudDiscoveryengineV1AnswerQueryUnderstandingInfoQueryClassificatio ): positive: bool type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] @typing.type_check_only @@ -285,6 +311,9 @@ class GoogleCloudDiscoveryengineV1AnswerReference( typing_extensions.TypedDict, total=False ): chunkInfo: GoogleCloudDiscoveryengineV1AnswerReferenceChunkInfo + structuredDocumentInfo: ( + GoogleCloudDiscoveryengineV1AnswerReferenceStructuredDocumentInfo + ) unstructuredDocumentInfo: ( GoogleCloudDiscoveryengineV1AnswerReferenceUnstructuredDocumentInfo ) @@ -306,9 +335,17 @@ class GoogleCloudDiscoveryengineV1AnswerReferenceChunkInfoDocumentMetadata( ): document: str pageIdentifier: str + structData: dict[str, typing.Any] title: str uri: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1AnswerReferenceStructuredDocumentInfo( + typing_extensions.TypedDict, total=False +): + document: str + structData: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerReferenceUnstructuredDocumentInfo( typing_extensions.TypedDict, total=False @@ -317,6 +354,7 @@ class GoogleCloudDiscoveryengineV1AnswerReferenceUnstructuredDocumentInfo( GoogleCloudDiscoveryengineV1AnswerReferenceUnstructuredDocumentInfoChunkContent ] document: str + structData: dict[str, typing.Any] title: str uri: str @@ -326,6 +364,7 @@ class GoogleCloudDiscoveryengineV1AnswerReferenceUnstructuredDocumentInfoChunkCo ): content: str pageIdentifier: str + relevanceScore: float @typing.type_check_only class GoogleCloudDiscoveryengineV1AnswerStep(typing_extensions.TypedDict, total=False): @@ -362,6 +401,7 @@ class GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResult( snippetInfo: _list[ GoogleCloudDiscoveryengineV1AnswerStepActionObservationSearchResultSnippetInfo ] + structData: dict[str, typing.Any] title: str uri: str @@ -506,6 +546,39 @@ class GoogleCloudDiscoveryengineV1CheckGroundingSpec( ): citationThreshold: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Chunk(typing_extensions.TypedDict, total=False): + chunkMetadata: GoogleCloudDiscoveryengineV1ChunkChunkMetadata + content: str + derivedStructData: dict[str, typing.Any] + documentMetadata: GoogleCloudDiscoveryengineV1ChunkDocumentMetadata + id: str + name: str + pageSpan: GoogleCloudDiscoveryengineV1ChunkPageSpan + relevanceScore: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ChunkChunkMetadata( + typing_extensions.TypedDict, total=False +): + nextChunks: _list[GoogleCloudDiscoveryengineV1Chunk] + previousChunks: _list[GoogleCloudDiscoveryengineV1Chunk] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ChunkDocumentMetadata( + typing_extensions.TypedDict, total=False +): + structData: dict[str, typing.Any] + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1CloudSqlSource( typing_extensions.TypedDict, total=False @@ -540,6 +613,89 @@ class GoogleCloudDiscoveryengineV1CompletionInfo( selectedPosition: int selectedSuggestion: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1CompletionSuggestion( + typing_extensions.TypedDict, total=False +): + alternativePhrases: _list[str] + frequency: str + globalScore: float + groupId: str + groupScore: float + languageCode: str + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Condition(typing_extensions.TypedDict, total=False): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1ConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1ConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Control(typing_extensions.TypedDict, total=False): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1ControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1Condition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1ControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1ControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1ControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1Conversation( typing_extensions.TypedDict, total=False @@ -723,6 +879,7 @@ class GoogleCloudDiscoveryengineV1DocumentInfo( typing_extensions.TypedDict, total=False ): id: str + joined: bool name: str promotionIds: _list[str] quantity: int @@ -732,17 +889,32 @@ class GoogleCloudDiscoveryengineV1DocumentInfo( class GoogleCloudDiscoveryengineV1DocumentProcessingConfig( typing_extensions.TypedDict, total=False ): + chunkingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig defaultParsingConfig: ( GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig ) name: str parsingConfigOverrides: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig( + typing_extensions.TypedDict, total=False +): + layoutBasedChunkingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig( + typing_extensions.TypedDict, total=False +): + chunkSize: int + includeAncestorHeadings: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig( typing_extensions.TypedDict, total=False ): digitalParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig + layoutParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig ocrParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig @typing.type_check_only @@ -750,6 +922,11 @@ class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalPa typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig( typing_extensions.TypedDict, total=False @@ -858,6 +1035,7 @@ class GoogleCloudDiscoveryengineV1FhirStoreSource( ): fhirStore: str gcsStagingDir: str + resourceTypes: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1FirestoreSource( @@ -880,6 +1058,39 @@ class GoogleCloudDiscoveryengineV1GroundingFact( attributes: dict[str, typing.Any] factText: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequest( + typing_extensions.TypedDict, total=False +): + bigquerySource: GoogleCloudDiscoveryengineV1BigQuerySource + errorConfig: GoogleCloudDiscoveryengineV1ImportErrorConfig + gcsSource: GoogleCloudDiscoveryengineV1GcsSource + inlineSource: ( + GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource + ) + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsRequestInlineSource( + typing_extensions.TypedDict, total=False +): + suggestions: _list[GoogleCloudDiscoveryengineV1CompletionSuggestion] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1ImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -894,6 +1105,7 @@ class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata( class GoogleCloudDiscoveryengineV1ImportDocumentsRequest( typing_extensions.TypedDict, total=False ): + alloyDbSource: GoogleCloudDiscoveryengineV1AlloyDbSource autoGenerateIds: bool bigquerySource: GoogleCloudDiscoveryengineV1BigQuerySource bigtableSource: GoogleCloudDiscoveryengineV1BigtableSource @@ -999,6 +1211,13 @@ class GoogleCloudDiscoveryengineV1Interval(typing_extensions.TypedDict, total=Fa maximum: float minimum: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ListControlsResponse( + typing_extensions.TypedDict, total=False +): + controls: _list[GoogleCloudDiscoveryengineV1Control] + nextPageToken: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1ListConversationsResponse( typing_extensions.TypedDict, total=False @@ -1068,6 +1287,56 @@ class GoogleCloudDiscoveryengineV1PanelInfo(typing_extensions.TypedDict, total=F panelPosition: int totalPanels: int +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Project(typing_extensions.TypedDict, total=False): + createTime: str + name: str + provisionCompletionTime: str + serviceTermsMap: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ProjectServiceTerms( + typing_extensions.TypedDict, total=False +): + acceptTime: str + declineTime: str + id: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "TERMS_ACCEPTED", "TERMS_PENDING", "TERMS_DECLINED" + ] + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ProvisionProjectMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ProvisionProjectRequest( + typing_extensions.TypedDict, total=False +): + acceptDataUseTerms: bool + dataUseTermsVersion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorSamples: _list[GoogleRpcStatus] + purgeSucceeded: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -1082,8 +1351,17 @@ class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata( class GoogleCloudDiscoveryengineV1PurgeDocumentsRequest( typing_extensions.TypedDict, total=False ): + errorConfig: GoogleCloudDiscoveryengineV1PurgeErrorConfig filter: str force: bool + gcsSource: GoogleCloudDiscoveryengineV1GcsSource + inlineSource: GoogleCloudDiscoveryengineV1PurgeDocumentsRequestInlineSource + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeDocumentsRequestInlineSource( + typing_extensions.TypedDict, total=False +): + documents: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1PurgeDocumentsResponse( @@ -1092,6 +1370,12 @@ class GoogleCloudDiscoveryengineV1PurgeDocumentsResponse( purgeCount: str purgeSample: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeErrorConfig( + typing_extensions.TypedDict, total=False +): + gcsPrefix: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -1111,6 +1395,13 @@ class GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse( errorSamples: _list[GoogleRpcStatus] purgeCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeUserEventsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + force: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1Query(typing_extensions.TypedDict, total=False): queryId: str @@ -1123,6 +1414,7 @@ class GoogleCloudDiscoveryengineV1RankRequest(typing_extensions.TypedDict, total query: str records: _list[GoogleCloudDiscoveryengineV1RankingRecord] topN: int + userLabels: dict[str, typing.Any] @typing.type_check_only class GoogleCloudDiscoveryengineV1RankResponse( @@ -1201,6 +1493,7 @@ class GoogleCloudDiscoveryengineV1SearchRequest( facetSpecs: _list[GoogleCloudDiscoveryengineV1SearchRequestFacetSpec] filter: str imageQuery: GoogleCloudDiscoveryengineV1SearchRequestImageQuery + languageCode: str offset: int orderBy: str pageSize: int @@ -1209,6 +1502,9 @@ class GoogleCloudDiscoveryengineV1SearchRequest( query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec safeSearch: bool + searchAsYouTypeSpec: GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec + session: str + sessionSpec: GoogleCloudDiscoveryengineV1SearchRequestSessionSpec spellCorrectionSpec: GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec userInfo: GoogleCloudDiscoveryengineV1UserInfo userLabels: dict[str, typing.Any] @@ -1233,12 +1529,23 @@ class GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec( class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec( typing_extensions.TypedDict, total=False ): + chunkSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec extractiveContentSpec: ( GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec ) + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] snippetSpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec summarySpec: GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecChunkSpec( + typing_extensions.TypedDict, total=False +): + numNextChunks: int + numPreviousChunks: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec( typing_extensions.TypedDict, total=False @@ -1262,6 +1569,7 @@ class GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec( typing_extensions.TypedDict, total=False ): ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool ignoreNonSummarySeekingQuery: bool includeCitations: bool languageCode: str @@ -1324,6 +1632,19 @@ class GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec( condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "AUTO"] pinUnexpandedResults: bool +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestSearchAsYouTypeSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "ENABLED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchRequestSessionSpec( + typing_extensions.TypedDict, total=False +): + queryId: str + searchResultPersistenceCount: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec( typing_extensions.TypedDict, total=False @@ -1341,6 +1662,7 @@ class GoogleCloudDiscoveryengineV1SearchResponse( queryExpansionInfo: GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo redirectUri: str results: _list[GoogleCloudDiscoveryengineV1SearchResponseSearchResult] + sessionInfo: GoogleCloudDiscoveryengineV1SearchResponseSessionInfo summary: GoogleCloudDiscoveryengineV1SearchResponseSummary totalSize: int @@ -1371,9 +1693,17 @@ class GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo( class GoogleCloudDiscoveryengineV1SearchResponseSearchResult( typing_extensions.TypedDict, total=False ): + chunk: GoogleCloudDiscoveryengineV1Chunk document: GoogleCloudDiscoveryengineV1Document id: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1SearchResponseSessionInfo( + typing_extensions.TypedDict, total=False +): + name: str + queryId: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1SearchResponseSummary( typing_extensions.TypedDict, total=False @@ -1387,6 +1717,8 @@ class GoogleCloudDiscoveryengineV1SearchResponseSummary( "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", "LLM_ADDON_NOT_ENABLED", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] summaryText: str @@ -1557,8 +1889,10 @@ class GoogleCloudDiscoveryengineV1UserEvent(typing_extensions.TypedDict, total=F attributes: dict[str, typing.Any] attributionToken: str completionInfo: GoogleCloudDiscoveryengineV1CompletionInfo + dataStore: str directUserRequest: bool documents: _list[GoogleCloudDiscoveryengineV1DocumentInfo] + engine: str eventTime: str eventType: str filter: str @@ -1594,6 +1928,8 @@ class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total "NON_ANSWER_SEEKING_QUERY_IGNORED", "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] answerText: str @@ -1639,7 +1975,10 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassifi ): positive: bool type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] @typing.type_check_only @@ -1647,6 +1986,9 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReference( typing_extensions.TypedDict, total=False ): chunkInfo: GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo + structuredDocumentInfo: ( + GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo + ) unstructuredDocumentInfo: ( GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo ) @@ -1668,9 +2010,17 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata( ): document: str pageIdentifier: str + structData: dict[str, typing.Any] title: str uri: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo( + typing_extensions.TypedDict, total=False +): + document: str + structData: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo( typing_extensions.TypedDict, total=False @@ -1679,6 +2029,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo( GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent ] document: str + structData: dict[str, typing.Any] title: str uri: str @@ -1688,6 +2039,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoCh ): content: str pageIdentifier: str + relevanceScore: float @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerStep( @@ -1726,6 +2078,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult( snippetInfo: _list[ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo ] + structData: dict[str, typing.Any] title: str uri: str @@ -1764,39 +2117,126 @@ class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse( targetSites: _list[GoogleCloudDiscoveryengineV1alphaTargetSite] @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata( +class GoogleCloudDiscoveryengineV1alphaCondition( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str + activeTimeRange: _list[GoogleCloudDiscoveryengineV1alphaConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1alphaConditionQueryTerm] @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata( +class GoogleCloudDiscoveryengineV1alphaConditionQueryTerm( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str + fullMatch: bool + value: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata( +class GoogleCloudDiscoveryengineV1alphaConditionTimeRange( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str + endTime: str + startTime: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata( +class GoogleCloudDiscoveryengineV1alphaControl( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str - -@typing.type_check_only + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1alphaControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1alphaCondition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1alphaControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1alphaControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1alphaControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateEvaluationMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec( + typing_extensions.TypedDict, total=False +): + enableSearchAdaptor: bool + +@typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( typing_extensions.TypedDict, total=False ): createTime: str displayName: str + metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", "TRAINING_PAUSED", @@ -1804,6 +2244,7 @@ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( "TRAINING_COMPLETE", "READY_FOR_SERVING", "TRAINING_FAILED", + "NO_IMPROVEMENT", ] modelVersion: str name: str @@ -1825,6 +2266,7 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + languageInfo: GoogleCloudDiscoveryengineV1alphaLanguageInfo name: str solutionTypes: _list[ typing_extensions.Literal[ @@ -2061,13 +2503,45 @@ class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse( dataSizeBytes: str documentCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluation( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + error: GoogleRpcStatus + errorSamples: _list[GoogleRpcStatus] + evaluationSpec: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec + name: str + qualityMetrics: GoogleCloudDiscoveryengineV1alphaQualityMetrics + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PENDING", "RUNNING", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec( + typing_extensions.TypedDict, total=False +): + querySetSpec: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec + searchRequest: GoogleCloudDiscoveryengineV1alphaSearchRequest + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec( + typing_extensions.TypedDict, total=False +): + sampleQuerySet: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFieldConfig( typing_extensions.TypedDict, total=False ): advancedSiteSearchDataSources: _list[ typing_extensions.Literal[ - "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED", "METATAGS", "PAGEMAP" + "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED", + "METATAGS", + "PAGEMAP", + "URI_PATTERN_MAPPING", + "SCHEMA_ORG", ] ] completableOption: typing_extensions.Literal[ @@ -2099,10 +2573,17 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( retrievableOption: typing_extensions.Literal[ "RETRIEVABLE_OPTION_UNSPECIFIED", "RETRIEVABLE_ENABLED", "RETRIEVABLE_DISABLED" ] + schemaOrgPaths: _list[str] searchableOption: typing_extensions.Literal[ "SEARCHABLE_OPTION_UNSPECIFIED", "SEARCHABLE_ENABLED", "SEARCHABLE_DISABLED" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse( + typing_extensions.TypedDict, total=False +): + documentDataMap: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaIdpConfig( typing_extensions.TypedDict, total=False @@ -2116,6 +2597,22 @@ class GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig( ): workforcePoolName: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2139,6 +2636,23 @@ class GoogleCloudDiscoveryengineV1alphaImportErrorConfig( ): gcsPrefix: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + totalCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -2172,6 +2686,24 @@ class GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse( joinedEventsCount: str unjoinedEventsCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaInterval( + typing_extensions.TypedDict, total=False +): + exclusiveMaximum: float + exclusiveMinimum: float + maximum: float + minimum: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaLanguageInfo( + typing_extensions.TypedDict, total=False +): + language: str + languageCode: str + normalizedLanguageCode: str + region: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse( typing_extensions.TypedDict, total=False @@ -2204,6 +2736,20 @@ class GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorSamples: _list[GoogleRpcStatus] + purgeSucceeded: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2250,6 +2796,25 @@ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse( ): purgeCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaQualityMetrics( + typing_extensions.TypedDict, total=False +): + docNdcg: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + docPrecision: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + docRecall: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + pageNdcg: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + pageRecall: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics( + typing_extensions.TypedDict, total=False +): + top1: float + top10: float + top3: float + top5: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaQuery(typing_extensions.TypedDict, total=False): queryId: str @@ -2302,115 +2867,437 @@ class GoogleCloudDiscoveryengineV1alphaSchema(typing_extensions.TypedDict, total structSchema: dict[str, typing.Any] @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaSession( +class GoogleCloudDiscoveryengineV1alphaSearchRequest( typing_extensions.TypedDict, total=False ): - endTime: str - name: str - startTime: str - state: typing_extensions.Literal["STATE_UNSPECIFIED", "IN_PROGRESS"] - turns: _list[GoogleCloudDiscoveryengineV1alphaSessionTurn] + boostSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec + branch: str + canonicalFilter: str + contentSearchSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec + customFineTuningSpec: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec + dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec] + embeddingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec + facetSpecs: _list[GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec] + filter: str + imageQuery: GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery + languageCode: str + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec + offset: int + orderBy: str + pageSize: int + pageToken: str + params: dict[str, typing.Any] + query: str + queryExpansionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec + rankingExpression: str + regionCode: str + relevanceThreshold: typing_extensions.Literal[ + "RELEVANCE_THRESHOLD_UNSPECIFIED", "LOWEST", "LOW", "MEDIUM", "HIGH" + ] + safeSearch: bool + searchAsYouTypeSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec + ) + servingConfig: str + session: str + sessionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec + spellCorrectionSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec + ) + userInfo: GoogleCloudDiscoveryengineV1alphaUserInfo + userLabels: dict[str, typing.Any] userPseudoId: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaSessionTurn( +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec( typing_extensions.TypedDict, total=False ): - answer: str - query: GoogleCloudDiscoveryengineV1alphaQuery + conditionBoostSpecs: _list[ + GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec + ] @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec( typing_extensions.TypedDict, total=False ): - siteVerificationState: typing_extensions.Literal[ - "SITE_VERIFICATION_STATE_UNSPECIFIED", "VERIFIED", "UNVERIFIED", "EXEMPTED" - ] - verifyTime: str + boost: float + boostControlSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec + condition: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaTargetSite( +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec( typing_extensions.TypedDict, total=False ): - exactMatch: bool - failureReason: GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason - generatedUriPattern: str - indexingStatus: typing_extensions.Literal[ - "INDEXING_STATUS_UNSPECIFIED", "PENDING", "FAILED", "SUCCEEDED", "DELETING" + attributeType: typing_extensions.Literal[ + "ATTRIBUTE_TYPE_UNSPECIFIED", "NUMERICAL", "FRESHNESS" + ] + controlPoints: _list[ + GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint + ] + fieldName: str + interpolationType: typing_extensions.Literal[ + "INTERPOLATION_TYPE_UNSPECIFIED", "LINEAR" ] - name: str - providedUriPattern: str - rootDomainUri: str - siteVerificationInfo: GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "INCLUDE", "EXCLUDE"] - updateTime: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason( +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint( typing_extensions.TypedDict, total=False ): - quotaFailure: GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure + attributeValue: str + boostAmount: float @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure( +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec( typing_extensions.TypedDict, total=False ): - totalRequiredQuota: str + chunkSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec + extractiveContentSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] + snippetSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec + ) + summarySpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec + ) @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata( +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str + numNextChunks: int + numPreviousChunks: int @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse( +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec( typing_extensions.TypedDict, total=False ): - errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig - errorSamples: _list[GoogleRpcStatus] - metrics: dict[str, typing.Any] - modelName: str - modelStatus: str + maxExtractiveAnswerCount: int + maxExtractiveSegmentCount: int + numNextSegments: int + numPreviousSegments: int + returnExtractiveSegmentScore: bool @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata( +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec( typing_extensions.TypedDict, total=False ): - engine: str + maxSnippetCount: int + referenceOnly: bool + returnSnippet: bool @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaTuneEngineResponse( +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec( typing_extensions.TypedDict, total=False -): ... +): + ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool + ignoreNonSummarySeekingQuery: bool + includeCitations: bool + languageCode: str + modelPromptSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec + modelSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec + summaryResultCount: int + useSemanticChunks: bool @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str + preamble: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata( +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str + version: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata( +class GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec( typing_extensions.TypedDict, total=False ): - createTime: str - updateTime: str + dataStore: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse( +class GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec( typing_extensions.TypedDict, total=False ): - targetSites: _list[GoogleCloudDiscoveryengineV1betaTargetSite] + embeddingVectors: _list[ + GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector( + typing_extensions.TypedDict, total=False +): + fieldPath: str + vector: _list[float] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec( + typing_extensions.TypedDict, total=False +): + enableDynamicPosition: bool + excludedFilterKeys: _list[str] + facetKey: GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey + limit: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey( + typing_extensions.TypedDict, total=False +): + caseInsensitive: bool + contains: _list[str] + intervals: _list[GoogleCloudDiscoveryengineV1alphaInterval] + key: str + orderBy: str + prefixes: _list[str] + restrictedValues: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery( + typing_extensions.TypedDict, total=False +): + imageBytes: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec( + typing_extensions.TypedDict, total=False +): + filterExtractionCondition: typing_extensions.Literal[ + "CONDITION_UNSPECIFIED", "DISABLED", "ENABLED" + ] + geoSearchQueryDetectionFieldNames: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "AUTO"] + pinUnexpandedResults: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "ENABLED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec( + typing_extensions.TypedDict, total=False +): + queryId: str + searchResultPersistenceCount: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSession( + typing_extensions.TypedDict, total=False +): + endTime: str + name: str + startTime: str + state: typing_extensions.Literal["STATE_UNSPECIFIED", "IN_PROGRESS"] + turns: _list[GoogleCloudDiscoveryengineV1alphaSessionTurn] + userPseudoId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSessionTurn( + typing_extensions.TypedDict, total=False +): + answer: str + query: GoogleCloudDiscoveryengineV1alphaQuery + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( + typing_extensions.TypedDict, total=False +): + siteVerificationState: typing_extensions.Literal[ + "SITE_VERIFICATION_STATE_UNSPECIFIED", "VERIFIED", "UNVERIFIED", "EXEMPTED" + ] + verifyTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaTargetSite( + typing_extensions.TypedDict, total=False +): + exactMatch: bool + failureReason: GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason + generatedUriPattern: str + indexingStatus: typing_extensions.Literal[ + "INDEXING_STATUS_UNSPECIFIED", "PENDING", "FAILED", "SUCCEEDED", "DELETING" + ] + name: str + providedUriPattern: str + rootDomainUri: str + siteVerificationInfo: GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "INCLUDE", "EXCLUDE"] + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason( + typing_extensions.TypedDict, total=False +): + quotaFailure: GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure( + typing_extensions.TypedDict, total=False +): + totalRequiredQuota: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + metrics: dict[str, typing.Any] + modelName: str + modelStatus: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata( + typing_extensions.TypedDict, total=False +): + engine: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaTuneEngineResponse( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUserInfo( + typing_extensions.TypedDict, total=False +): + userAgent: str + userId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse( + typing_extensions.TypedDict, total=False +): + targetSites: _list[GoogleCloudDiscoveryengineV1betaTargetSite] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCondition( + typing_extensions.TypedDict, total=False +): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1betaConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1betaConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControl(typing_extensions.TypedDict, total=False): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1betaControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1betaCondition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1betaControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1betaControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1betaControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata( @@ -2426,6 +3313,11 @@ class GoogleCloudDiscoveryengineV1betaCreateEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCreateEvaluationMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -2446,6 +3338,7 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( ): createTime: str displayName: str + metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", "TRAINING_PAUSED", @@ -2453,6 +3346,7 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( "TRAINING_COMPLETE", "READY_FOR_SERVING", "TRAINING_FAILED", + "NO_IMPROVEMENT", ] modelVersion: str name: str @@ -2472,6 +3366,7 @@ class GoogleCloudDiscoveryengineV1betaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + languageInfo: GoogleCloudDiscoveryengineV1betaLanguageInfo name: str solutionTypes: _list[ typing_extensions.Literal[ @@ -2528,17 +3423,34 @@ class GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse( class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig( typing_extensions.TypedDict, total=False ): + chunkingConfig: ( + GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig + ) defaultParsingConfig: ( GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig ) name: str parsingConfigOverrides: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig( + typing_extensions.TypedDict, total=False +): + layoutBasedChunkingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig( + typing_extensions.TypedDict, total=False +): + chunkSize: int + includeAncestorHeadings: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig( typing_extensions.TypedDict, total=False ): digitalParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig + layoutParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig ocrParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig @typing.type_check_only @@ -2546,6 +3458,11 @@ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigit typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig( typing_extensions.TypedDict, total=False @@ -2628,6 +3545,50 @@ class GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig( "SEARCH_TIER_UNSPECIFIED", "SEARCH_TIER_STANDARD", "SEARCH_TIER_ENTERPRISE" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluation( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + error: GoogleRpcStatus + errorSamples: _list[GoogleRpcStatus] + evaluationSpec: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec + name: str + qualityMetrics: GoogleCloudDiscoveryengineV1betaQualityMetrics + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PENDING", "RUNNING", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec( + typing_extensions.TypedDict, total=False +): + querySetSpec: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec + searchRequest: GoogleCloudDiscoveryengineV1betaSearchRequest + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec( + typing_extensions.TypedDict, total=False +): + sampleQuerySet: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2651,6 +3612,23 @@ class GoogleCloudDiscoveryengineV1betaImportErrorConfig( ): gcsPrefix: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + totalCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -2684,12 +3662,54 @@ class GoogleCloudDiscoveryengineV1betaImportUserEventsResponse( joinedEventsCount: str unjoinedEventsCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaInterval( + typing_extensions.TypedDict, total=False +): + exclusiveMaximum: float + exclusiveMinimum: float + maximum: float + minimum: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaLanguageInfo( + typing_extensions.TypedDict, total=False +): + language: str + languageCode: str + normalizedLanguageCode: str + region: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse( typing_extensions.TypedDict, total=False ): models: _list[GoogleCloudDiscoveryengineV1betaCustomTuningModel] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProject(typing_extensions.TypedDict, total=False): + createTime: str + name: str + provisionCompletionTime: str + serviceTermsMap: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProjectServiceTerms( + typing_extensions.TypedDict, total=False +): + acceptTime: str + declineTime: str + id: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "TERMS_ACCEPTED", "TERMS_PENDING", "TERMS_DECLINED" + ] + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProvisionProjectMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2721,12 +3741,257 @@ class GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse( errorSamples: _list[GoogleRpcStatus] purgeCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaQualityMetrics( + typing_extensions.TypedDict, total=False +): + docNdcg: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + docPrecision: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + docRecall: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + pageNdcg: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + pageRecall: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics( + typing_extensions.TypedDict, total=False +): + top1: float + top10: float + top3: float + top5: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSchema(typing_extensions.TypedDict, total=False): jsonSchema: str name: str structSchema: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequest( + typing_extensions.TypedDict, total=False +): + boostSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec + branch: str + canonicalFilter: str + contentSearchSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec + dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec] + embeddingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec + facetSpecs: _list[GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec] + filter: str + imageQuery: GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery + languageCode: str + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec + offset: int + orderBy: str + pageSize: int + pageToken: str + params: dict[str, typing.Any] + query: str + queryExpansionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec + rankingExpression: str + regionCode: str + safeSearch: bool + searchAsYouTypeSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec + ) + servingConfig: str + session: str + sessionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec + spellCorrectionSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec + ) + userInfo: GoogleCloudDiscoveryengineV1betaUserInfo + userLabels: dict[str, typing.Any] + userPseudoId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec( + typing_extensions.TypedDict, total=False +): + conditionBoostSpecs: _list[ + GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec( + typing_extensions.TypedDict, total=False +): + boost: float + boostControlSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec + condition: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec( + typing_extensions.TypedDict, total=False +): + attributeType: typing_extensions.Literal[ + "ATTRIBUTE_TYPE_UNSPECIFIED", "NUMERICAL", "FRESHNESS" + ] + controlPoints: _list[ + GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint + ] + fieldName: str + interpolationType: typing_extensions.Literal[ + "INTERPOLATION_TYPE_UNSPECIFIED", "LINEAR" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint( + typing_extensions.TypedDict, total=False +): + attributeValue: str + boostAmount: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec( + typing_extensions.TypedDict, total=False +): + chunkSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec + extractiveContentSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] + snippetSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec + ) + summarySpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec + ) + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec( + typing_extensions.TypedDict, total=False +): + numNextChunks: int + numPreviousChunks: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec( + typing_extensions.TypedDict, total=False +): + maxExtractiveAnswerCount: int + maxExtractiveSegmentCount: int + numNextSegments: int + numPreviousSegments: int + returnExtractiveSegmentScore: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec( + typing_extensions.TypedDict, total=False +): + maxSnippetCount: int + referenceOnly: bool + returnSnippet: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec( + typing_extensions.TypedDict, total=False +): + ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool + ignoreNonSummarySeekingQuery: bool + includeCitations: bool + languageCode: str + modelPromptSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec + modelSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec + summaryResultCount: int + useSemanticChunks: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec( + typing_extensions.TypedDict, total=False +): + preamble: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec( + typing_extensions.TypedDict, total=False +): + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec( + typing_extensions.TypedDict, total=False +): + dataStore: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec( + typing_extensions.TypedDict, total=False +): + embeddingVectors: _list[ + GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector( + typing_extensions.TypedDict, total=False +): + fieldPath: str + vector: _list[float] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec( + typing_extensions.TypedDict, total=False +): + enableDynamicPosition: bool + excludedFilterKeys: _list[str] + facetKey: GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey + limit: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey( + typing_extensions.TypedDict, total=False +): + caseInsensitive: bool + contains: _list[str] + intervals: _list[GoogleCloudDiscoveryengineV1betaInterval] + key: str + orderBy: str + prefixes: _list[str] + restrictedValues: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery( + typing_extensions.TypedDict, total=False +): + imageBytes: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec( + typing_extensions.TypedDict, total=False +): + filterExtractionCondition: typing_extensions.Literal[ + "CONDITION_UNSPECIFIED", "DISABLED", "ENABLED" + ] + geoSearchQueryDetectionFieldNames: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "AUTO"] + pinUnexpandedResults: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "ENABLED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec( + typing_extensions.TypedDict, total=False +): + queryId: str + searchResultPersistenceCount: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo( typing_extensions.TypedDict, total=False @@ -2807,6 +4072,13 @@ class GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaUserInfo( + typing_extensions.TypedDict, total=False +): + userAgent: str + userId: str + @typing.type_check_only class GoogleLongrunningCancelOperationRequest( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi index 80107d51..7647070f 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/resources.pyi @@ -104,7 +104,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): "PROCESSED_DOCUMENT_TYPE_UNSPECIFIED", "PARSED_DOCUMENT", "CHUNKED_DOCUMENT", - "PNG_CONVERTED_DOCUMENT", + "IMAGE_CONVERTED_DOCUMENT", ] = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaProcessedDocumentHttpRequest: ... @@ -184,6 +184,67 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionSuggestionsResource( + googleapiclient.discovery.Resource + ): + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaControl = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaControl = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -611,6 +672,9 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponseHttpRequest | None ): ... + def getUriPatternDocumentData( + self, *, siteSearchEngine: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponseHttpRequest: ... def recrawlUris( self, *, @@ -618,6 +682,13 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def setUriPatternDocumentData( + self, + *, + siteSearchEngine: str, + body: GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def operations(self) -> OperationsResource: ... def targetSites(self) -> TargetSitesResource: ... @@ -670,6 +741,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1alphaUserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaUserEventHttpRequest: ... @@ -690,6 +762,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaDataStore = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def delete( @@ -747,6 +820,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionSuggestions( + self, + ) -> CompletionSuggestionsResource: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def customModels(self) -> CustomModelsResource: ... def models(self) -> ModelsResource: ... @@ -762,6 +839,48 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class EnginesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaControl = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaControl = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -1015,6 +1134,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaTuneEngineRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def operations(self) -> OperationsResource: ... def servingConfigs(self) -> ServingConfigsResource: ... @@ -1098,7 +1218,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): "PROCESSED_DOCUMENT_TYPE_UNSPECIFIED", "PARSED_DOCUMENT", "CHUNKED_DOCUMENT", - "PNG_CONVERTED_DOCUMENT", + "IMAGE_CONVERTED_DOCUMENT", ] = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaProcessedDocumentHttpRequest: ... @@ -1175,6 +1295,67 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionSuggestionsResource(googleapiclient.discovery.Resource): + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaControl = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaControl = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -1547,6 +1728,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): *, parent: str, body: GoogleCloudDiscoveryengineV1alphaUserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaUserEventHttpRequest: ... @@ -1569,6 +1751,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1alphaDataStore = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def delete( @@ -1623,6 +1806,8 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigHttpRequest ): ... def branches(self) -> BranchesResource: ... + def completionSuggestions(self) -> CompletionSuggestionsResource: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def models(self) -> ModelsResource: ... def operations(self) -> OperationsResource: ... @@ -1643,6 +1828,50 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaEvaluation = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaEvaluationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListEvaluationsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListEvaluationsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListEvaluationsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListEvaluationsResponseHttpRequest + | None + ): ... + def listResults( + self, + *, + evaluation: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseHttpRequest: ... + def listResults_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseHttpRequest + | None + ): ... def operations(self) -> OperationsResource: ... @typing.type_check_only @@ -1657,6 +1886,30 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseHttpRequest ): ... + @typing.type_check_only + class Identity_mapping_storesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + name: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningListOperationsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleLongrunningListOperationsResponseHttpRequest, + previous_response: GoogleLongrunningListOperationsResponse, + ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + + def operations(self) -> OperationsResource: ... + @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): def get( @@ -1687,6 +1940,18 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaRankResponseHttpRequest: ... + @typing.type_check_only + class RequirementsResource(googleapiclient.discovery.Resource): + def checkRequirement( + self, + *, + location: str, + body: GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseHttpRequest + ): ... + @typing.type_check_only class SampleQuerySetsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -1695,15 +1960,112 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... + @typing.type_check_only + class SampleQueriesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaSampleQuery = ..., + sampleQueryId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaSampleQueryHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaSampleQueryHttpRequest: ... + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaImportSampleQueriesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaSampleQuery = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaSampleQueryHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1alphaSampleQuerySet = ..., + sampleQuerySetId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaSampleQuerySetHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1alphaSampleQuerySetHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaListSampleQuerySetsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1alphaListSampleQuerySetsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1alphaListSampleQuerySetsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1alphaListSampleQuerySetsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1alphaSampleQuerySet = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1alphaSampleQuerySetHttpRequest: ... def operations(self) -> OperationsResource: ... + def sampleQueries(self) -> SampleQueriesResource: ... @typing.type_check_only class UserEventsResource(googleapiclient.discovery.Resource): + def collect( + self, + *, + parent: str, + ets: str = ..., + uri: str = ..., + userEvent: str = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... def write( self, *, parent: str, body: GoogleCloudDiscoveryengineV1alphaUserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1alphaUserEventHttpRequest: ... @@ -1728,8 +2090,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def dataStores(self) -> DataStoresResource: ... def evaluations(self) -> EvaluationsResource: ... def groundingConfigs(self) -> GroundingConfigsResource: ... + def identity_mapping_stores(self) -> Identity_mapping_storesResource: ... def operations(self) -> OperationsResource: ... def rankingConfigs(self) -> RankingConfigsResource: ... + def requirements(self) -> RequirementsResource: ... def sampleQuerySets(self) -> SampleQuerySetsResource: ... def userEvents(self) -> UserEventsResource: ... @@ -1835,6 +2199,16 @@ class GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaChunkHttpRequest( googleapiclient.http.HttpRequest @@ -1855,6 +2229,16 @@ class GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaControl: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaConversationHttpRequest( googleapiclient.http.HttpRequest @@ -1915,6 +2299,16 @@ class GoogleCloudDiscoveryengineV1alphaEngineHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaEngine: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluationHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaEvaluation: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1925,6 +2319,16 @@ class GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponseHttp num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListChunksResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1935,6 +2339,16 @@ class GoogleCloudDiscoveryengineV1alphaListChunksResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaListChunksResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListControlsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListControlsResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListConversationsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1985,6 +2399,46 @@ class GoogleCloudDiscoveryengineV1alphaListEnginesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaListEnginesResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListEvaluationsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListEvaluationsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListSampleQuerySetsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaListSampleQuerySetsResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListSchemasResponseHttpRequest( googleapiclient.http.HttpRequest @@ -2065,6 +2519,26 @@ class GoogleCloudDiscoveryengineV1alphaRecommendResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1alphaRecommendResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSampleQueryHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaSampleQuery: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSampleQuerySetHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1alphaSampleQuerySet: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSchemaHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi index 1c747b6e..4a5e5cca 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1alpha/schemas.pyi @@ -4,12 +4,66 @@ import typing_extensions _list = list +@typing.type_check_only +class GoogleApiDistribution(typing_extensions.TypedDict, total=False): + bucketCounts: _list[str] + bucketOptions: GoogleApiDistributionBucketOptions + count: str + exemplars: _list[GoogleApiDistributionExemplar] + mean: float + range: GoogleApiDistributionRange + sumOfSquaredDeviation: float + +@typing.type_check_only +class GoogleApiDistributionBucketOptions(typing_extensions.TypedDict, total=False): + explicitBuckets: GoogleApiDistributionBucketOptionsExplicit + exponentialBuckets: GoogleApiDistributionBucketOptionsExponential + linearBuckets: GoogleApiDistributionBucketOptionsLinear + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsExplicit( + typing_extensions.TypedDict, total=False +): + bounds: _list[float] + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsExponential( + typing_extensions.TypedDict, total=False +): + growthFactor: float + numFiniteBuckets: int + scale: float + +@typing.type_check_only +class GoogleApiDistributionBucketOptionsLinear( + typing_extensions.TypedDict, total=False +): + numFiniteBuckets: int + offset: float + width: float + +@typing.type_check_only +class GoogleApiDistributionExemplar(typing_extensions.TypedDict, total=False): + attachments: _list[dict[str, typing.Any]] + timestamp: str + value: float + +@typing.type_check_only +class GoogleApiDistributionRange(typing_extensions.TypedDict, total=False): + max: float + min: float + @typing.type_check_only class GoogleApiHttpBody(typing_extensions.TypedDict, total=False): contentType: str data: str extensions: _list[dict[str, typing.Any]] +@typing.type_check_only +class GoogleApiMonitoredResource(typing_extensions.TypedDict, total=False): + labels: dict[str, typing.Any] + type: str + @typing.type_check_only class GoogleCloudDiscoveryengineLoggingErrorContext( typing_extensions.TypedDict, total=False @@ -70,6 +124,77 @@ class GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1TargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Condition(typing_extensions.TypedDict, total=False): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1ConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1ConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Control(typing_extensions.TypedDict, total=False): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1ControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1Condition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1ControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1ControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1ControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1CreateDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -166,17 +291,32 @@ class GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse( class GoogleCloudDiscoveryengineV1DocumentProcessingConfig( typing_extensions.TypedDict, total=False ): + chunkingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig defaultParsingConfig: ( GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig ) name: str parsingConfigOverrides: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig( + typing_extensions.TypedDict, total=False +): + layoutBasedChunkingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig( + typing_extensions.TypedDict, total=False +): + chunkSize: int + includeAncestorHeadings: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig( typing_extensions.TypedDict, total=False ): digitalParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig + layoutParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig ocrParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig @typing.type_check_only @@ -184,6 +324,11 @@ class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalPa typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig( typing_extensions.TypedDict, total=False @@ -266,6 +411,22 @@ class GoogleCloudDiscoveryengineV1EngineSearchEngineConfig( "SEARCH_TIER_UNSPECIFIED", "SEARCH_TIER_STANDARD", "SEARCH_TIER_ENTERPRISE" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1ImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -322,6 +483,44 @@ class GoogleCloudDiscoveryengineV1ImportUserEventsResponse( joinedEventsCount: str unjoinedEventsCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Project(typing_extensions.TypedDict, total=False): + createTime: str + name: str + provisionCompletionTime: str + serviceTermsMap: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ProjectServiceTerms( + typing_extensions.TypedDict, total=False +): + acceptTime: str + declineTime: str + id: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "TERMS_ACCEPTED", "TERMS_PENDING", "TERMS_DECLINED" + ] + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ProvisionProjectMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorSamples: _list[GoogleRpcStatus] + purgeSucceeded: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -416,6 +615,17 @@ class GoogleCloudDiscoveryengineV1alphaAclConfig( idpConfig: GoogleCloudDiscoveryengineV1alphaIdpConfig name: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAlloyDbSource( + typing_extensions.TypedDict, total=False +): + clusterId: str + databaseId: str + gcsStagingDir: str + locationId: str + projectId: str + tableId: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total=False): answerSkippedReasons: _list[ @@ -425,6 +635,8 @@ class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total "NON_ANSWER_SEEKING_QUERY_IGNORED", "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] answerText: str @@ -474,6 +686,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest( safetySpec: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec searchSpec: GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec session: str + userLabels: dict[str, typing.Any] userPseudoId: str @typing.type_check_only @@ -482,6 +695,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec( ): answerLanguageCode: str ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool ignoreNonAnswerSeekingQuery: bool includeCitations: bool modelSpec: ( @@ -514,7 +728,10 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQ ): types: _list[ typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] ] @@ -554,6 +771,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams( ): boostSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec customFineTuningSpec: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec + dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec] filter: str maxReturnResults: int orderBy: str @@ -643,7 +861,10 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassifi ): positive: bool type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] @typing.type_check_only @@ -651,6 +872,9 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReference( typing_extensions.TypedDict, total=False ): chunkInfo: GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo + structuredDocumentInfo: ( + GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo + ) unstructuredDocumentInfo: ( GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo ) @@ -672,9 +896,17 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata( ): document: str pageIdentifier: str + structData: dict[str, typing.Any] title: str uri: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo( + typing_extensions.TypedDict, total=False +): + document: str + structData: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo( typing_extensions.TypedDict, total=False @@ -683,6 +915,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo( GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent ] document: str + structData: dict[str, typing.Any] title: str uri: str @@ -692,6 +925,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoCh ): content: str pageIdentifier: str + relevanceScore: float @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerStep( @@ -730,6 +964,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult( snippetInfo: _list[ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo ] + structData: dict[str, typing.Any] title: str uri: str @@ -874,6 +1109,37 @@ class GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec( ): citationThreshold: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest( + typing_extensions.TypedDict, total=False +): + requirementType: str + resources: _list[GoogleApiMonitoredResource] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse( + typing_extensions.TypedDict, total=False +): + metricResults: _list[ + GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult + ] + oldestMetricTimestamp: str + requirement: GoogleCloudDiscoveryengineV1alphaRequirement + requirementCondition: GoogleTypeExpr + requirementResult: typing_extensions.Literal[ + "UNKNOWN", "SUCCESS", "FAILURE", "WARNING" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult( + typing_extensions.TypedDict, total=False +): + metricType: str + name: str + timestamp: str + unit: str + value: GoogleMonitoringV3TypedValue + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaChunk(typing_extensions.TypedDict, total=False): chunkMetadata: GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata @@ -941,6 +1207,93 @@ class GoogleCloudDiscoveryengineV1alphaCompletionInfo( selectedPosition: int selectedSuggestion: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCompletionSuggestion( + typing_extensions.TypedDict, total=False +): + alternativePhrases: _list[str] + frequency: str + globalScore: float + groupId: str + groupScore: float + languageCode: str + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCondition( + typing_extensions.TypedDict, total=False +): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1alphaConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1alphaConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControl( + typing_extensions.TypedDict, total=False +): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1alphaControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1alphaCondition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1alphaControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1alphaControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1alphaControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaConversation( typing_extensions.TypedDict, total=False @@ -1005,6 +1358,11 @@ class GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateEvaluationMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -1045,6 +1403,7 @@ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( ): createTime: str displayName: str + metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", "TRAINING_PAUSED", @@ -1052,6 +1411,7 @@ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( "TRAINING_COMPLETE", "READY_FOR_SERVING", "TRAINING_FAILED", + "NO_IMPROVEMENT", ] modelVersion: str name: str @@ -1073,6 +1433,7 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + languageInfo: GoogleCloudDiscoveryengineV1alphaLanguageInfo name: str solutionTypes: _list[ typing_extensions.Literal[ @@ -1155,6 +1516,7 @@ class GoogleCloudDiscoveryengineV1alphaDocumentAclInfo( class GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction( typing_extensions.TypedDict, total=False ): + idpWide: bool principals: _list[GoogleCloudDiscoveryengineV1alphaPrincipal] @typing.type_check_only @@ -1170,6 +1532,7 @@ class GoogleCloudDiscoveryengineV1alphaDocumentInfo( typing_extensions.TypedDict, total=False ): id: str + joined: bool name: str promotionIds: _list[str] quantity: int @@ -1410,6 +1773,34 @@ class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse( dataSizeBytes: str documentCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluation( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + error: GoogleRpcStatus + errorSamples: _list[GoogleRpcStatus] + evaluationSpec: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec + name: str + qualityMetrics: GoogleCloudDiscoveryengineV1alphaQualityMetrics + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PENDING", "RUNNING", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec( + typing_extensions.TypedDict, total=False +): + querySetSpec: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec + searchRequest: GoogleCloudDiscoveryengineV1alphaSearchRequest + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec( + typing_extensions.TypedDict, total=False +): + sampleQuerySet: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFactChunk( typing_extensions.TypedDict, total=False @@ -1433,6 +1824,7 @@ class GoogleCloudDiscoveryengineV1alphaFhirStoreSource( ): fhirStore: str gcsStagingDir: str + resourceTypes: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFieldConfig( @@ -1440,7 +1832,11 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( ): advancedSiteSearchDataSources: _list[ typing_extensions.Literal[ - "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED", "METATAGS", "PAGEMAP" + "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED", + "METATAGS", + "PAGEMAP", + "URI_PATTERN_MAPPING", + "SCHEMA_ORG", ] ] completableOption: typing_extensions.Literal[ @@ -1472,6 +1868,7 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( retrievableOption: typing_extensions.Literal[ "RETRIEVABLE_OPTION_UNSPECIFIED", "RETRIEVABLE_ENABLED", "RETRIEVABLE_DISABLED" ] + schemaOrgPaths: _list[str] searchableOption: typing_extensions.Literal[ "SEARCHABLE_OPTION_UNSPECIFIED", "SEARCHABLE_ENABLED", "SEARCHABLE_DISABLED" ] @@ -1493,7 +1890,13 @@ class GoogleCloudDiscoveryengineV1alphaGcsSource( inputUris: _list[str] @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaGroundingFact( +class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse( + typing_extensions.TypedDict, total=False +): + documentDataMap: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGroundingFact( typing_extensions.TypedDict, total=False ): attributes: dict[str, typing.Any] @@ -1520,6 +1923,39 @@ class GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig( ): workforcePoolName: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequest( + typing_extensions.TypedDict, total=False +): + bigquerySource: GoogleCloudDiscoveryengineV1alphaBigQuerySource + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + gcsSource: GoogleCloudDiscoveryengineV1alphaGcsSource + inlineSource: ( + GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource + ) + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsRequestInlineSource( + typing_extensions.TypedDict, total=False +): + suggestions: _list[GoogleCloudDiscoveryengineV1alphaCompletionSuggestion] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -1534,6 +1970,7 @@ class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata( class GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest( typing_extensions.TypedDict, total=False ): + alloyDbSource: GoogleCloudDiscoveryengineV1alphaAlloyDbSource autoGenerateIds: bool bigquerySource: GoogleCloudDiscoveryengineV1alphaBigQuerySource bigtableSource: GoogleCloudDiscoveryengineV1alphaBigtableSource @@ -1569,6 +2006,40 @@ class GoogleCloudDiscoveryengineV1alphaImportErrorConfig( ): gcsPrefix: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + totalCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesRequest( + typing_extensions.TypedDict, total=False +): + bigquerySource: GoogleCloudDiscoveryengineV1alphaBigQuerySource + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + gcsSource: GoogleCloudDiscoveryengineV1alphaGcsSource + inlineSource: ( + GoogleCloudDiscoveryengineV1alphaImportSampleQueriesRequestInlineSource + ) + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesRequestInlineSource( + typing_extensions.TypedDict, total=False +): + sampleQueries: _list[GoogleCloudDiscoveryengineV1alphaSampleQuery] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -1639,6 +2110,15 @@ class GoogleCloudDiscoveryengineV1alphaInterval( maximum: float minimum: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaLanguageInfo( + typing_extensions.TypedDict, total=False +): + language: str + languageCode: str + normalizedLanguageCode: str + region: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListChunksResponse( typing_extensions.TypedDict, total=False @@ -1646,6 +2126,13 @@ class GoogleCloudDiscoveryengineV1alphaListChunksResponse( chunks: _list[GoogleCloudDiscoveryengineV1alphaChunk] nextPageToken: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListControlsResponse( + typing_extensions.TypedDict, total=False +): + controls: _list[GoogleCloudDiscoveryengineV1alphaControl] + nextPageToken: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListConversationsResponse( typing_extensions.TypedDict, total=False @@ -1680,6 +2167,43 @@ class GoogleCloudDiscoveryengineV1alphaListEnginesResponse( engines: _list[GoogleCloudDiscoveryengineV1alphaEngine] nextPageToken: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponse( + typing_extensions.TypedDict, total=False +): + evaluationResults: _list[ + GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseEvaluationResult + ] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListEvaluationResultsResponseEvaluationResult( + typing_extensions.TypedDict, total=False +): + qualityMetrics: GoogleCloudDiscoveryengineV1alphaQualityMetrics + sampleQuery: GoogleCloudDiscoveryengineV1alphaSampleQuery + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListEvaluationsResponse( + typing_extensions.TypedDict, total=False +): + evaluations: _list[GoogleCloudDiscoveryengineV1alphaEvaluation] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sampleQueries: _list[GoogleCloudDiscoveryengineV1alphaSampleQuery] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaListSampleQuerySetsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sampleQuerySets: _list[GoogleCloudDiscoveryengineV1alphaSampleQuerySet] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListSchemasResponse( typing_extensions.TypedDict, total=False @@ -1786,6 +2310,25 @@ class GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest( acceptDataUseTerms: bool dataUseTermsVersion: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsRequest( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorSamples: _list[GoogleRpcStatus] + purgeSucceeded: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -1804,6 +2347,13 @@ class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest( filter: str force: bool gcsSource: GoogleCloudDiscoveryengineV1alphaGcsSource + inlineSource: GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequestInlineSource + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequestInlineSource( + typing_extensions.TypedDict, total=False +): + documents: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse( @@ -1859,6 +2409,25 @@ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse( ): purgeCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaQualityMetrics( + typing_extensions.TypedDict, total=False +): + docNdcg: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + docPrecision: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + docRecall: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + pageNdcg: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + pageRecall: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics( + typing_extensions.TypedDict, total=False +): + top1: float + top10: float + top3: float + top5: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaQuery(typing_extensions.TypedDict, total=False): queryId: str @@ -1873,6 +2442,7 @@ class GoogleCloudDiscoveryengineV1alphaRankRequest( query: str records: _list[GoogleCloudDiscoveryengineV1alphaRankingRecord] topN: int + userLabels: dict[str, typing.Any] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaRankResponse( @@ -1989,11 +2559,86 @@ class GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest( serviceTermId: str serviceTermVersion: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRequirement( + typing_extensions.TypedDict, total=False +): + condition: GoogleTypeExpr + description: str + displayName: str + metricBindings: _list[GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding] + thresholdBindings: _list[ + GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding + ] + type: str + violationSamplesBindings: _list[ + GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding( + typing_extensions.TypedDict, total=False +): + category: str + description: str + metricFilter: str + resourceType: str + variableId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding( + typing_extensions.TypedDict, total=False +): + blockingThreshold: float + description: str + variableId: str + warningThreshold: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding( + typing_extensions.TypedDict, total=False +): + description: str + sampleFilter: str + variableId: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaResumeEngineRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSampleQuery( + typing_extensions.TypedDict, total=False +): + createTime: str + name: str + queryEntry: GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry( + typing_extensions.TypedDict, total=False +): + query: str + targets: _list[GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget( + typing_extensions.TypedDict, total=False +): + pageNumbers: _list[int] + score: float + uri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSampleQuerySet( + typing_extensions.TypedDict, total=False +): + createTime: str + description: str + displayName: str + name: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSchema(typing_extensions.TypedDict, total=False): fieldConfigs: _list[GoogleCloudDiscoveryengineV1alphaFieldConfig] @@ -2023,6 +2668,8 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest( facetSpecs: _list[GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec] filter: str imageQuery: GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery + languageCode: str + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int orderBy: str pageSize: int @@ -2031,7 +2678,17 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest( query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec rankingExpression: str + regionCode: str + relevanceThreshold: typing_extensions.Literal[ + "RELEVANCE_THRESHOLD_UNSPECIFIED", "LOWEST", "LOW", "MEDIUM", "HIGH" + ] safeSearch: bool + searchAsYouTypeSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec + ) + servingConfig: str + session: str + sessionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec spellCorrectionSpec: ( GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec ) @@ -2123,6 +2780,7 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec typing_extensions.TypedDict, total=False ): ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool ignoreNonSummarySeekingQuery: bool includeCitations: bool languageCode: str @@ -2191,6 +2849,15 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery( ): imageBytes: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec( + typing_extensions.TypedDict, total=False +): + filterExtractionCondition: typing_extensions.Literal[ + "CONDITION_UNSPECIFIED", "DISABLED", "ENABLED" + ] + geoSearchQueryDetectionFieldNames: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -2198,6 +2865,19 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec( condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "AUTO"] pinUnexpandedResults: bool +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "ENABLED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec( + typing_extensions.TypedDict, total=False +): + queryId: str + searchResultPersistenceCount: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec( typing_extensions.TypedDict, total=False @@ -2218,12 +2898,15 @@ class GoogleCloudDiscoveryengineV1alphaSearchResponse( guidedSearchResult: ( GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult ) + naturalLanguageQueryUnderstandingInfo: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo nextPageToken: str + oneBoxResults: _list[GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult] queryExpansionInfo: ( GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo ) redirectUri: str results: _list[GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult] + sessionInfo: GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo summary: GoogleCloudDiscoveryengineV1alphaSearchResponseSummary totalSize: int @@ -2266,6 +2949,87 @@ class GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinemen attributeKey: str attributeValue: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfo( + typing_extensions.TypedDict, total=False +): + extractedFilters: str + rewrittenQuery: str + structuredExtractedFilter: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter( + typing_extensions.TypedDict, total=False +): + expression: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression( + typing_extensions.TypedDict, total=False +): + expressions: _list[ + GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression( + typing_extensions.TypedDict, total=False +): + andExpr: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression + geolocationConstraint: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint + numberConstraint: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint + orExpr: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression + stringConstraint: GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint( + typing_extensions.TypedDict, total=False +): + address: str + fieldName: str + latitude: float + longitude: float + radiusInMeters: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint( + typing_extensions.TypedDict, total=False +): + comparison: typing_extensions.Literal[ + "COMPARISON_UNSPECIFIED", + "EQUALS", + "LESS_THAN_EQUALS", + "LESS_THAN", + "GREATER_THAN_EQUALS", + "GREATER_THAN", + ] + fieldName: str + value: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression( + typing_extensions.TypedDict, total=False +): + expressions: _list[ + GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint( + typing_extensions.TypedDict, total=False +): + fieldName: str + values: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseOneBoxResult( + typing_extensions.TypedDict, total=False +): + oneBoxType: typing_extensions.Literal[ + "ONE_BOX_TYPE_UNSPECIFIED", "PEOPLE", "ORGANIZATION", "SLACK" + ] + searchResults: _list[GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo( typing_extensions.TypedDict, total=False @@ -2282,6 +3046,13 @@ class GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult( id: str modelScores: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchResponseSessionInfo( + typing_extensions.TypedDict, total=False +): + name: str + queryId: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSearchResponseSummary( typing_extensions.TypedDict, total=False @@ -2297,6 +3068,8 @@ class GoogleCloudDiscoveryengineV1alphaSearchResponseSummary( "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", "LLM_ADDON_NOT_ENABLED", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] summaryText: str @@ -2424,6 +3197,26 @@ class GoogleCloudDiscoveryengineV1alphaSessionTurn( answer: str query: GoogleCloudDiscoveryengineV1alphaQuery +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataRequest( + typing_extensions.TypedDict, total=False +): + documentDataMap: dict[str, typing.Any] + emptyDocumentDataMap: bool + schema: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSiteSearchEngine( typing_extensions.TypedDict, total=False @@ -2579,8 +3372,10 @@ class GoogleCloudDiscoveryengineV1alphaUserEvent( attributes: dict[str, typing.Any] attributionToken: str completionInfo: GoogleCloudDiscoveryengineV1alphaCompletionInfo + dataStore: str directUserRequest: bool documents: _list[GoogleCloudDiscoveryengineV1alphaDocumentInfo] + engine: str eventTime: str eventType: str filter: str @@ -2615,6 +3410,79 @@ class GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1betaTargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCondition( + typing_extensions.TypedDict, total=False +): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1betaConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1betaConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControl(typing_extensions.TypedDict, total=False): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1betaControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1betaCondition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1betaControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1betaControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1betaControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -2629,6 +3497,11 @@ class GoogleCloudDiscoveryengineV1betaCreateEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCreateEvaluationMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -2649,6 +3522,7 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( ): createTime: str displayName: str + metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", "TRAINING_PAUSED", @@ -2656,6 +3530,7 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( "TRAINING_COMPLETE", "READY_FOR_SERVING", "TRAINING_FAILED", + "NO_IMPROVEMENT", ] modelVersion: str name: str @@ -2675,6 +3550,7 @@ class GoogleCloudDiscoveryengineV1betaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + languageInfo: GoogleCloudDiscoveryengineV1betaLanguageInfo name: str solutionTypes: _list[ typing_extensions.Literal[ @@ -2731,17 +3607,34 @@ class GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse( class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig( typing_extensions.TypedDict, total=False ): + chunkingConfig: ( + GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig + ) defaultParsingConfig: ( GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig ) name: str parsingConfigOverrides: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig( + typing_extensions.TypedDict, total=False +): + layoutBasedChunkingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig( + typing_extensions.TypedDict, total=False +): + chunkSize: int + includeAncestorHeadings: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig( typing_extensions.TypedDict, total=False ): digitalParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig + layoutParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig ocrParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig @typing.type_check_only @@ -2749,6 +3642,11 @@ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigit typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig( typing_extensions.TypedDict, total=False @@ -2831,6 +3729,50 @@ class GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig( "SEARCH_TIER_UNSPECIFIED", "SEARCH_TIER_STANDARD", "SEARCH_TIER_ENTERPRISE" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluation( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + error: GoogleRpcStatus + errorSamples: _list[GoogleRpcStatus] + evaluationSpec: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec + name: str + qualityMetrics: GoogleCloudDiscoveryengineV1betaQualityMetrics + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PENDING", "RUNNING", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec( + typing_extensions.TypedDict, total=False +): + querySetSpec: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec + searchRequest: GoogleCloudDiscoveryengineV1betaSearchRequest + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec( + typing_extensions.TypedDict, total=False +): + sampleQuerySet: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2854,6 +3796,23 @@ class GoogleCloudDiscoveryengineV1betaImportErrorConfig( ): gcsPrefix: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + totalCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -2887,12 +3846,54 @@ class GoogleCloudDiscoveryengineV1betaImportUserEventsResponse( joinedEventsCount: str unjoinedEventsCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaInterval( + typing_extensions.TypedDict, total=False +): + exclusiveMaximum: float + exclusiveMinimum: float + maximum: float + minimum: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaLanguageInfo( + typing_extensions.TypedDict, total=False +): + language: str + languageCode: str + normalizedLanguageCode: str + region: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaListCustomModelsResponse( typing_extensions.TypedDict, total=False ): models: _list[GoogleCloudDiscoveryengineV1betaCustomTuningModel] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProject(typing_extensions.TypedDict, total=False): + createTime: str + name: str + provisionCompletionTime: str + serviceTermsMap: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProjectServiceTerms( + typing_extensions.TypedDict, total=False +): + acceptTime: str + declineTime: str + id: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "TERMS_ACCEPTED", "TERMS_PENDING", "TERMS_DECLINED" + ] + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProvisionProjectMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2924,12 +3925,257 @@ class GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse( errorSamples: _list[GoogleRpcStatus] purgeCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaQualityMetrics( + typing_extensions.TypedDict, total=False +): + docNdcg: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + docPrecision: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + docRecall: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + pageNdcg: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + pageRecall: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics( + typing_extensions.TypedDict, total=False +): + top1: float + top10: float + top3: float + top5: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSchema(typing_extensions.TypedDict, total=False): jsonSchema: str name: str structSchema: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequest( + typing_extensions.TypedDict, total=False +): + boostSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec + branch: str + canonicalFilter: str + contentSearchSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec + dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec] + embeddingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec + facetSpecs: _list[GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec] + filter: str + imageQuery: GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery + languageCode: str + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec + offset: int + orderBy: str + pageSize: int + pageToken: str + params: dict[str, typing.Any] + query: str + queryExpansionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec + rankingExpression: str + regionCode: str + safeSearch: bool + searchAsYouTypeSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec + ) + servingConfig: str + session: str + sessionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec + spellCorrectionSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec + ) + userInfo: GoogleCloudDiscoveryengineV1betaUserInfo + userLabels: dict[str, typing.Any] + userPseudoId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec( + typing_extensions.TypedDict, total=False +): + conditionBoostSpecs: _list[ + GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec( + typing_extensions.TypedDict, total=False +): + boost: float + boostControlSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec + condition: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec( + typing_extensions.TypedDict, total=False +): + attributeType: typing_extensions.Literal[ + "ATTRIBUTE_TYPE_UNSPECIFIED", "NUMERICAL", "FRESHNESS" + ] + controlPoints: _list[ + GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint + ] + fieldName: str + interpolationType: typing_extensions.Literal[ + "INTERPOLATION_TYPE_UNSPECIFIED", "LINEAR" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint( + typing_extensions.TypedDict, total=False +): + attributeValue: str + boostAmount: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec( + typing_extensions.TypedDict, total=False +): + chunkSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec + extractiveContentSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] + snippetSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec + ) + summarySpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec + ) + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec( + typing_extensions.TypedDict, total=False +): + numNextChunks: int + numPreviousChunks: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec( + typing_extensions.TypedDict, total=False +): + maxExtractiveAnswerCount: int + maxExtractiveSegmentCount: int + numNextSegments: int + numPreviousSegments: int + returnExtractiveSegmentScore: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec( + typing_extensions.TypedDict, total=False +): + maxSnippetCount: int + referenceOnly: bool + returnSnippet: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec( + typing_extensions.TypedDict, total=False +): + ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool + ignoreNonSummarySeekingQuery: bool + includeCitations: bool + languageCode: str + modelPromptSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec + modelSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec + summaryResultCount: int + useSemanticChunks: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec( + typing_extensions.TypedDict, total=False +): + preamble: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec( + typing_extensions.TypedDict, total=False +): + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec( + typing_extensions.TypedDict, total=False +): + dataStore: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec( + typing_extensions.TypedDict, total=False +): + embeddingVectors: _list[ + GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector( + typing_extensions.TypedDict, total=False +): + fieldPath: str + vector: _list[float] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec( + typing_extensions.TypedDict, total=False +): + enableDynamicPosition: bool + excludedFilterKeys: _list[str] + facetKey: GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey + limit: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey( + typing_extensions.TypedDict, total=False +): + caseInsensitive: bool + contains: _list[str] + intervals: _list[GoogleCloudDiscoveryengineV1betaInterval] + key: str + orderBy: str + prefixes: _list[str] + restrictedValues: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery( + typing_extensions.TypedDict, total=False +): + imageBytes: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec( + typing_extensions.TypedDict, total=False +): + filterExtractionCondition: typing_extensions.Literal[ + "CONDITION_UNSPECIFIED", "DISABLED", "ENABLED" + ] + geoSearchQueryDetectionFieldNames: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "AUTO"] + pinUnexpandedResults: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "ENABLED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec( + typing_extensions.TypedDict, total=False +): + queryId: str + searchResultPersistenceCount: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSiteVerificationInfo( typing_extensions.TypedDict, total=False @@ -3010,6 +4256,13 @@ class GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaUserInfo( + typing_extensions.TypedDict, total=False +): + userAgent: str + userId: str + @typing.type_check_only class GoogleLongrunningCancelOperationRequest( typing_extensions.TypedDict, total=False @@ -3028,6 +4281,14 @@ class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): name: str response: dict[str, typing.Any] +@typing.type_check_only +class GoogleMonitoringV3TypedValue(typing_extensions.TypedDict, total=False): + boolValue: bool + distributionValue: GoogleApiDistribution + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... @@ -3042,3 +4303,10 @@ class GoogleTypeDate(typing_extensions.TypedDict, total=False): day: int month: int year: int + +@typing.type_check_only +class GoogleTypeExpr(typing_extensions.TypedDict, total=False): + description: str + expression: str + location: str + title: str diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi index 79a92c97..97fe0864 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1beta/resources.pyi @@ -144,6 +144,67 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionSuggestionsResource( + googleapiclient.discovery.Resource + ): + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaControl = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1betaControl = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -620,11 +681,19 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1betaImportUserEventsRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaPurgeUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def write( self, *, parent: str, body: GoogleCloudDiscoveryengineV1betaUserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaUserEventHttpRequest: ... @@ -647,6 +716,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1betaDataStore = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def delete( @@ -693,6 +763,10 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionSuggestions( + self, + ) -> CompletionSuggestionsResource: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def customModels(self) -> CustomModelsResource: ... def models(self) -> ModelsResource: ... @@ -708,6 +782,48 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): @typing.type_check_only class EnginesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaControl = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1betaControl = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -963,6 +1079,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1betaTuneEngineRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def operations(self) -> OperationsResource: ... def servingConfigs(self) -> ServingConfigsResource: ... @@ -1085,6 +1202,67 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): def documents(self) -> DocumentsResource: ... def operations(self) -> OperationsResource: ... + @typing.type_check_only + class CompletionSuggestionsResource(googleapiclient.discovery.Resource): + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class ControlsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaControl = ..., + controlId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaListControlsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1betaControl = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaControlHttpRequest: ... + @typing.type_check_only class ConversationsResource(googleapiclient.discovery.Resource): def converse( @@ -1444,11 +1622,19 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1betaImportUserEventsRequest = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... + def purge( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaPurgeUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def write( self, *, parent: str, body: GoogleCloudDiscoveryengineV1betaUserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaUserEventHttpRequest: ... @@ -1471,6 +1657,7 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): body: GoogleCloudDiscoveryengineV1betaDataStore = ..., createAdvancedSiteSearch: bool = ..., dataStoreId: str = ..., + skipDefaultSchemaCreation: bool = ..., **kwargs: typing.Any, ) -> GoogleLongrunningOperationHttpRequest: ... def delete( @@ -1510,6 +1697,8 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaDataStoreHttpRequest: ... def branches(self) -> BranchesResource: ... + def completionSuggestions(self) -> CompletionSuggestionsResource: ... + def controls(self) -> ControlsResource: ... def conversations(self) -> ConversationsResource: ... def models(self) -> ModelsResource: ... def operations(self) -> OperationsResource: ... @@ -1522,6 +1711,60 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): ) -> SuggestionDenyListEntriesResource: ... def userEvents(self) -> UserEventsResource: ... + @typing.type_check_only + class EvaluationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaEvaluation = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1betaEvaluationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudDiscoveryengineV1betaListEvaluationsResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaListEvaluationsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaListEvaluationsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaListEvaluationsResponseHttpRequest + | None + ): ... + def listResults( + self, + *, + evaluation: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseHttpRequest: ... + def listResults_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseHttpRequest + | None + ): ... + def operations(self) -> OperationsResource: ... + @typing.type_check_only class GroundingConfigsResource(googleapiclient.discovery.Resource): def check( @@ -1564,21 +1807,130 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaRankResponseHttpRequest: ... + @typing.type_check_only + class SampleQuerySetsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class OperationsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleLongrunningOperationHttpRequest: ... + + @typing.type_check_only + class SampleQueriesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaSampleQuery = ..., + sampleQueryId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaSampleQueryHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1betaSampleQueryHttpRequest: ... + def import_( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaListSampleQueriesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaListSampleQueriesResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaListSampleQueriesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1betaSampleQuery = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaSampleQueryHttpRequest: ... + + def create( + self, + *, + parent: str, + body: GoogleCloudDiscoveryengineV1betaSampleQuerySet = ..., + sampleQuerySetId: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaSampleQuerySetHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudDiscoveryengineV1betaSampleQuerySetHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponseHttpRequest, + previous_response: GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponse, + ) -> ( + GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1betaSampleQuerySet = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudDiscoveryengineV1betaSampleQuerySetHttpRequest: ... + def operations(self) -> OperationsResource: ... + def sampleQueries(self) -> SampleQueriesResource: ... + @typing.type_check_only class UserEventsResource(googleapiclient.discovery.Resource): + def collect( + self, + *, + parent: str, + ets: str = ..., + uri: str = ..., + userEvent: str = ..., + **kwargs: typing.Any, + ) -> GoogleApiHttpBodyHttpRequest: ... def write( self, *, parent: str, body: GoogleCloudDiscoveryengineV1betaUserEvent = ..., + writeAsync: bool = ..., **kwargs: typing.Any, ) -> GoogleCloudDiscoveryengineV1betaUserEventHttpRequest: ... def collections(self) -> CollectionsResource: ... def dataStores(self) -> DataStoresResource: ... + def evaluations(self) -> EvaluationsResource: ... def groundingConfigs(self) -> GroundingConfigsResource: ... def operations(self) -> OperationsResource: ... def rankingConfigs(self) -> RankingConfigsResource: ... + def sampleQuerySets(self) -> SampleQuerySetsResource: ... def userEvents(self) -> UserEventsResource: ... @typing.type_check_only @@ -1601,6 +1953,13 @@ class DiscoveryEngineResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def provision( + self, + *, + name: str, + body: GoogleCloudDiscoveryengineV1betaProvisionProjectRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def locations(self) -> LocationsResource: ... def operations(self) -> OperationsResource: ... @@ -1666,6 +2025,16 @@ class GoogleCloudDiscoveryengineV1betaCompleteQueryResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1betaCompleteQueryResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaControl: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaConversationHttpRequest( googleapiclient.http.HttpRequest @@ -1716,6 +2085,16 @@ class GoogleCloudDiscoveryengineV1betaEngineHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1betaEngine: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluationHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaEvaluation: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1726,6 +2105,16 @@ class GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponseHttpR num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListControlsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaListControlsResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaListConversationsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1776,6 +2165,46 @@ class GoogleCloudDiscoveryengineV1betaListEnginesResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1betaListEnginesResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListEvaluationsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaListEvaluationsResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListSampleQueriesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponse: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaListSchemasResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1836,6 +2265,26 @@ class GoogleCloudDiscoveryengineV1betaRecommendResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudDiscoveryengineV1betaRecommendResponse: ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSampleQueryHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaSampleQuery: ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSampleQuerySetHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudDiscoveryengineV1betaSampleQuerySet: ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSchemaHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi index 7a2b48cb..449d53bd 100644 --- a/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/discoveryengine/v1beta/schemas.pyi @@ -70,6 +70,77 @@ class GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1TargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Condition(typing_extensions.TypedDict, total=False): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1ConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1ConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Control(typing_extensions.TypedDict, total=False): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1ControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1Condition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1ControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1ControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1ControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1CreateDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -166,17 +237,32 @@ class GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse( class GoogleCloudDiscoveryengineV1DocumentProcessingConfig( typing_extensions.TypedDict, total=False ): + chunkingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig defaultParsingConfig: ( GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig ) name: str parsingConfigOverrides: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig( + typing_extensions.TypedDict, total=False +): + layoutBasedChunkingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig( + typing_extensions.TypedDict, total=False +): + chunkSize: int + includeAncestorHeadings: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig( typing_extensions.TypedDict, total=False ): digitalParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig + layoutParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig ocrParsingConfig: GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig @typing.type_check_only @@ -184,6 +270,11 @@ class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalPa typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigLayoutParsingConfig( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig( typing_extensions.TypedDict, total=False @@ -266,6 +357,22 @@ class GoogleCloudDiscoveryengineV1EngineSearchEngineConfig( "SEARCH_TIER_UNSPECIFIED", "SEARCH_TIER_STANDARD", "SEARCH_TIER_ENTERPRISE" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1ImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1ImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -322,6 +429,44 @@ class GoogleCloudDiscoveryengineV1ImportUserEventsResponse( joinedEventsCount: str unjoinedEventsCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1Project(typing_extensions.TypedDict, total=False): + createTime: str + name: str + provisionCompletionTime: str + serviceTermsMap: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ProjectServiceTerms( + typing_extensions.TypedDict, total=False +): + acceptTime: str + declineTime: str + id: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "TERMS_ACCEPTED", "TERMS_PENDING", "TERMS_DECLINED" + ] + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1ProvisionProjectMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1PurgeCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorSamples: _list[GoogleRpcStatus] + purgeSucceeded: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -425,6 +570,8 @@ class GoogleCloudDiscoveryengineV1alphaAnswer(typing_extensions.TypedDict, total "NON_ANSWER_SEEKING_QUERY_IGNORED", "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] answerText: str @@ -470,7 +617,10 @@ class GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassifi ): positive: bool type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] @typing.type_check_only @@ -478,6 +628,9 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReference( typing_extensions.TypedDict, total=False ): chunkInfo: GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo + structuredDocumentInfo: ( + GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo + ) unstructuredDocumentInfo: ( GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo ) @@ -499,9 +652,17 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata( ): document: str pageIdentifier: str + structData: dict[str, typing.Any] title: str uri: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo( + typing_extensions.TypedDict, total=False +): + document: str + structData: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo( typing_extensions.TypedDict, total=False @@ -510,6 +671,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo( GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent ] document: str + structData: dict[str, typing.Any] title: str uri: str @@ -519,6 +681,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoCh ): content: str pageIdentifier: str + relevanceScore: float @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaAnswerStep( @@ -557,6 +720,7 @@ class GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult( snippetInfo: _list[ GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo ] + structData: dict[str, typing.Any] title: str uri: str @@ -594,6 +758,81 @@ class GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse( ): targetSites: _list[GoogleCloudDiscoveryengineV1alphaTargetSite] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCondition( + typing_extensions.TypedDict, total=False +): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1alphaConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1alphaConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControl( + typing_extensions.TypedDict, total=False +): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1alphaControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1alphaCondition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1alphaControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1alphaControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1alphaControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata( typing_extensions.TypedDict, total=False @@ -608,6 +847,11 @@ class GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCreateEvaluationMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -622,12 +866,19 @@ class GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec( + typing_extensions.TypedDict, total=False +): + enableSearchAdaptor: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( typing_extensions.TypedDict, total=False ): createTime: str displayName: str + metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", "TRAINING_PAUSED", @@ -635,6 +886,7 @@ class GoogleCloudDiscoveryengineV1alphaCustomTuningModel( "TRAINING_COMPLETE", "READY_FOR_SERVING", "TRAINING_FAILED", + "NO_IMPROVEMENT", ] modelVersion: str name: str @@ -656,6 +908,7 @@ class GoogleCloudDiscoveryengineV1alphaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + languageInfo: GoogleCloudDiscoveryengineV1alphaLanguageInfo name: str solutionTypes: _list[ typing_extensions.Literal[ @@ -892,13 +1145,45 @@ class GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse( dataSizeBytes: str documentCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluation( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + error: GoogleRpcStatus + errorSamples: _list[GoogleRpcStatus] + evaluationSpec: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec + name: str + qualityMetrics: GoogleCloudDiscoveryengineV1alphaQualityMetrics + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PENDING", "RUNNING", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpec( + typing_extensions.TypedDict, total=False +): + querySetSpec: GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec + searchRequest: GoogleCloudDiscoveryengineV1alphaSearchRequest + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaEvaluationEvaluationSpecQuerySetSpec( + typing_extensions.TypedDict, total=False +): + sampleQuerySet: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaFieldConfig( typing_extensions.TypedDict, total=False ): advancedSiteSearchDataSources: _list[ typing_extensions.Literal[ - "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED", "METATAGS", "PAGEMAP" + "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED", + "METATAGS", + "PAGEMAP", + "URI_PATTERN_MAPPING", + "SCHEMA_ORG", ] ] completableOption: typing_extensions.Literal[ @@ -930,10 +1215,17 @@ class GoogleCloudDiscoveryengineV1alphaFieldConfig( retrievableOption: typing_extensions.Literal[ "RETRIEVABLE_OPTION_UNSPECIFIED", "RETRIEVABLE_ENABLED", "RETRIEVABLE_DISABLED" ] + schemaOrgPaths: _list[str] searchableOption: typing_extensions.Literal[ "SEARCHABLE_OPTION_UNSPECIFIED", "SEARCHABLE_ENABLED", "SEARCHABLE_DISABLED" ] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaGetUriPatternDocumentDataResponse( + typing_extensions.TypedDict, total=False +): + documentDataMap: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaIdpConfig( typing_extensions.TypedDict, total=False @@ -947,6 +1239,22 @@ class GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig( ): workforcePoolName: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -970,6 +1278,23 @@ class GoogleCloudDiscoveryengineV1alphaImportErrorConfig( ): gcsPrefix: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + totalCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaImportSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1alphaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -1003,6 +1328,24 @@ class GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse( joinedEventsCount: str unjoinedEventsCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaInterval( + typing_extensions.TypedDict, total=False +): + exclusiveMaximum: float + exclusiveMinimum: float + maximum: float + minimum: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaLanguageInfo( + typing_extensions.TypedDict, total=False +): + language: str + languageCode: str + normalizedLanguageCode: str + region: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse( typing_extensions.TypedDict, total=False @@ -1036,21 +1379,35 @@ class GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata( ): ... @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata( +class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsMetadata( typing_extensions.TypedDict, total=False ): createTime: str - failureCount: str - ignoredCount: str - successCount: str updateTime: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse( +class GoogleCloudDiscoveryengineV1alphaPurgeCompletionSuggestionsResponse( typing_extensions.TypedDict, total=False ): - purgeCount: str - purgeSample: _list[str] + errorSamples: _list[GoogleRpcStatus] + purgeSucceeded: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + ignoredCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse( + typing_extensions.TypedDict, total=False +): + purgeCount: str + purgeSample: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata( @@ -1081,6 +1438,25 @@ class GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse( ): purgeCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaQualityMetrics( + typing_extensions.TypedDict, total=False +): + docNdcg: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + docPrecision: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + docRecall: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + pageNdcg: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + pageRecall: GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaQualityMetricsTopkMetrics( + typing_extensions.TypedDict, total=False +): + top1: float + top10: float + top3: float + top5: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaQuery(typing_extensions.TypedDict, total=False): queryId: str @@ -1132,6 +1508,236 @@ class GoogleCloudDiscoveryengineV1alphaSchema(typing_extensions.TypedDict, total name: str structSchema: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequest( + typing_extensions.TypedDict, total=False +): + boostSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec + branch: str + canonicalFilter: str + contentSearchSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec + customFineTuningSpec: GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec + dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec] + embeddingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec + facetSpecs: _list[GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec] + filter: str + imageQuery: GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery + languageCode: str + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec + offset: int + orderBy: str + pageSize: int + pageToken: str + params: dict[str, typing.Any] + query: str + queryExpansionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec + rankingExpression: str + regionCode: str + relevanceThreshold: typing_extensions.Literal[ + "RELEVANCE_THRESHOLD_UNSPECIFIED", "LOWEST", "LOW", "MEDIUM", "HIGH" + ] + safeSearch: bool + searchAsYouTypeSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec + ) + servingConfig: str + session: str + sessionSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec + spellCorrectionSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec + ) + userInfo: GoogleCloudDiscoveryengineV1alphaUserInfo + userLabels: dict[str, typing.Any] + userPseudoId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec( + typing_extensions.TypedDict, total=False +): + conditionBoostSpecs: _list[ + GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec( + typing_extensions.TypedDict, total=False +): + boost: float + boostControlSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec + condition: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec( + typing_extensions.TypedDict, total=False +): + attributeType: typing_extensions.Literal[ + "ATTRIBUTE_TYPE_UNSPECIFIED", "NUMERICAL", "FRESHNESS" + ] + controlPoints: _list[ + GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint + ] + fieldName: str + interpolationType: typing_extensions.Literal[ + "INTERPOLATION_TYPE_UNSPECIFIED", "LINEAR" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint( + typing_extensions.TypedDict, total=False +): + attributeValue: str + boostAmount: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec( + typing_extensions.TypedDict, total=False +): + chunkSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec + extractiveContentSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] + snippetSpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec + ) + summarySpec: ( + GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec + ) + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec( + typing_extensions.TypedDict, total=False +): + numNextChunks: int + numPreviousChunks: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec( + typing_extensions.TypedDict, total=False +): + maxExtractiveAnswerCount: int + maxExtractiveSegmentCount: int + numNextSegments: int + numPreviousSegments: int + returnExtractiveSegmentScore: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec( + typing_extensions.TypedDict, total=False +): + maxSnippetCount: int + referenceOnly: bool + returnSnippet: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec( + typing_extensions.TypedDict, total=False +): + ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool + ignoreNonSummarySeekingQuery: bool + includeCitations: bool + languageCode: str + modelPromptSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec + modelSpec: GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec + summaryResultCount: int + useSemanticChunks: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec( + typing_extensions.TypedDict, total=False +): + preamble: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec( + typing_extensions.TypedDict, total=False +): + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec( + typing_extensions.TypedDict, total=False +): + dataStore: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec( + typing_extensions.TypedDict, total=False +): + embeddingVectors: _list[ + GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector( + typing_extensions.TypedDict, total=False +): + fieldPath: str + vector: _list[float] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec( + typing_extensions.TypedDict, total=False +): + enableDynamicPosition: bool + excludedFilterKeys: _list[str] + facetKey: GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey + limit: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey( + typing_extensions.TypedDict, total=False +): + caseInsensitive: bool + contains: _list[str] + intervals: _list[GoogleCloudDiscoveryengineV1alphaInterval] + key: str + orderBy: str + prefixes: _list[str] + restrictedValues: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery( + typing_extensions.TypedDict, total=False +): + imageBytes: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestNaturalLanguageQueryUnderstandingSpec( + typing_extensions.TypedDict, total=False +): + filterExtractionCondition: typing_extensions.Literal[ + "CONDITION_UNSPECIFIED", "DISABLED", "ENABLED" + ] + geoSearchQueryDetectionFieldNames: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "AUTO"] + pinUnexpandedResults: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "ENABLED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSessionSpec( + typing_extensions.TypedDict, total=False +): + queryId: str + searchResultPersistenceCount: int + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec( + typing_extensions.TypedDict, total=False +): + mode: typing_extensions.Literal["MODE_UNSPECIFIED", "SUGGESTION_ONLY", "AUTO"] + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSession( typing_extensions.TypedDict, total=False @@ -1150,6 +1756,18 @@ class GoogleCloudDiscoveryengineV1alphaSessionTurn( answer: str query: GoogleCloudDiscoveryengineV1alphaQuery +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaSetUriPatternDocumentDataResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo( typing_extensions.TypedDict, total=False @@ -1230,6 +1848,24 @@ class GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1alphaUserInfo( + typing_extensions.TypedDict, total=False +): + userAgent: str + userId: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAlloyDbSource( + typing_extensions.TypedDict, total=False +): + clusterId: str + databaseId: str + gcsStagingDir: str + locationId: str + projectId: str + tableId: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswer(typing_extensions.TypedDict, total=False): answerSkippedReasons: _list[ @@ -1239,6 +1875,8 @@ class GoogleCloudDiscoveryengineV1betaAnswer(typing_extensions.TypedDict, total= "NON_ANSWER_SEEKING_QUERY_IGNORED", "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] answerText: str @@ -1286,6 +1924,7 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequest( safetySpec: GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec searchSpec: GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec session: str + userLabels: dict[str, typing.Any] userPseudoId: str @typing.type_check_only @@ -1294,6 +1933,7 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec( ): answerLanguageCode: str ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool ignoreNonAnswerSeekingQuery: bool includeCitations: bool modelSpec: ( @@ -1328,7 +1968,10 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQu ): types: _list[ typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] ] @@ -1367,9 +2010,13 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams( typing_extensions.TypedDict, total=False ): boostSpec: GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec + dataStoreSpecs: _list[GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec] filter: str maxReturnResults: int orderBy: str + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList( @@ -1453,7 +2100,10 @@ class GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassific ): positive: bool type: typing_extensions.Literal[ - "TYPE_UNSPECIFIED", "ADVERSARIAL_QUERY", "NON_ANSWER_SEEKING_QUERY" + "TYPE_UNSPECIFIED", + "ADVERSARIAL_QUERY", + "NON_ANSWER_SEEKING_QUERY", + "JAIL_BREAKING_QUERY", ] @typing.type_check_only @@ -1461,6 +2111,9 @@ class GoogleCloudDiscoveryengineV1betaAnswerReference( typing_extensions.TypedDict, total=False ): chunkInfo: GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo + structuredDocumentInfo: ( + GoogleCloudDiscoveryengineV1betaAnswerReferenceStructuredDocumentInfo + ) unstructuredDocumentInfo: ( GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo ) @@ -1482,9 +2135,17 @@ class GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata( ): document: str pageIdentifier: str + structData: dict[str, typing.Any] title: str uri: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaAnswerReferenceStructuredDocumentInfo( + typing_extensions.TypedDict, total=False +): + document: str + structData: dict[str, typing.Any] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo( typing_extensions.TypedDict, total=False @@ -1493,6 +2154,7 @@ class GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo( GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent ] document: str + structData: dict[str, typing.Any] title: str uri: str @@ -1502,6 +2164,7 @@ class GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChu ): content: str pageIdentifier: str + relevanceScore: float @typing.type_check_only class GoogleCloudDiscoveryengineV1betaAnswerStep( @@ -1540,6 +2203,7 @@ class GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult( snippetInfo: _list[ GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo ] + structData: dict[str, typing.Any] title: str uri: str @@ -1684,6 +2348,39 @@ class GoogleCloudDiscoveryengineV1betaCheckGroundingSpec( ): citationThreshold: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaChunk(typing_extensions.TypedDict, total=False): + chunkMetadata: GoogleCloudDiscoveryengineV1betaChunkChunkMetadata + content: str + derivedStructData: dict[str, typing.Any] + documentMetadata: GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata + id: str + name: str + pageSpan: GoogleCloudDiscoveryengineV1betaChunkPageSpan + relevanceScore: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaChunkChunkMetadata( + typing_extensions.TypedDict, total=False +): + nextChunks: _list[GoogleCloudDiscoveryengineV1betaChunk] + previousChunks: _list[GoogleCloudDiscoveryengineV1betaChunk] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaChunkDocumentMetadata( + typing_extensions.TypedDict, total=False +): + structData: dict[str, typing.Any] + title: str + uri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCloudSqlSource( typing_extensions.TypedDict, total=False @@ -1718,6 +2415,91 @@ class GoogleCloudDiscoveryengineV1betaCompletionInfo( selectedPosition: int selectedSuggestion: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCompletionSuggestion( + typing_extensions.TypedDict, total=False +): + alternativePhrases: _list[str] + frequency: str + globalScore: float + groupId: str + groupScore: float + languageCode: str + suggestion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCondition( + typing_extensions.TypedDict, total=False +): + activeTimeRange: _list[GoogleCloudDiscoveryengineV1betaConditionTimeRange] + queryTerms: _list[GoogleCloudDiscoveryengineV1betaConditionQueryTerm] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaConditionQueryTerm( + typing_extensions.TypedDict, total=False +): + fullMatch: bool + value: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaConditionTimeRange( + typing_extensions.TypedDict, total=False +): + endTime: str + startTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControl(typing_extensions.TypedDict, total=False): + associatedServingConfigIds: _list[str] + boostAction: GoogleCloudDiscoveryengineV1betaControlBoostAction + conditions: _list[GoogleCloudDiscoveryengineV1betaCondition] + displayName: str + filterAction: GoogleCloudDiscoveryengineV1betaControlFilterAction + name: str + redirectAction: GoogleCloudDiscoveryengineV1betaControlRedirectAction + solutionType: typing_extensions.Literal[ + "SOLUTION_TYPE_UNSPECIFIED", + "SOLUTION_TYPE_RECOMMENDATION", + "SOLUTION_TYPE_SEARCH", + "SOLUTION_TYPE_CHAT", + "SOLUTION_TYPE_GENERATIVE_CHAT", + ] + synonymsAction: GoogleCloudDiscoveryengineV1betaControlSynonymsAction + useCases: _list[ + typing_extensions.Literal[ + "SEARCH_USE_CASE_UNSPECIFIED", + "SEARCH_USE_CASE_SEARCH", + "SEARCH_USE_CASE_BROWSE", + ] + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlBoostAction( + typing_extensions.TypedDict, total=False +): + boost: float + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlFilterAction( + typing_extensions.TypedDict, total=False +): + dataStore: str + filter: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlRedirectAction( + typing_extensions.TypedDict, total=False +): + redirectUri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaControlSynonymsAction( + typing_extensions.TypedDict, total=False +): + synonyms: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaConversation( typing_extensions.TypedDict, total=False @@ -1782,6 +2564,11 @@ class GoogleCloudDiscoveryengineV1betaCreateEngineMetadata( createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaCreateEvaluationMetadata( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata( typing_extensions.TypedDict, total=False @@ -1816,6 +2603,7 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( ): createTime: str displayName: str + metrics: dict[str, typing.Any] modelState: typing_extensions.Literal[ "MODEL_STATE_UNSPECIFIED", "TRAINING_PAUSED", @@ -1823,6 +2611,7 @@ class GoogleCloudDiscoveryengineV1betaCustomTuningModel( "TRAINING_COMPLETE", "READY_FOR_SERVING", "TRAINING_FAILED", + "NO_IMPROVEMENT", ] modelVersion: str name: str @@ -1842,6 +2631,7 @@ class GoogleCloudDiscoveryengineV1betaDataStore( industryVertical: typing_extensions.Literal[ "INDUSTRY_VERTICAL_UNSPECIFIED", "GENERIC", "MEDIA", "HEALTHCARE_FHIR" ] + languageInfo: GoogleCloudDiscoveryengineV1betaLanguageInfo name: str solutionTypes: _list[ typing_extensions.Literal[ @@ -1926,6 +2716,7 @@ class GoogleCloudDiscoveryengineV1betaDocumentInfo( typing_extensions.TypedDict, total=False ): id: str + joined: bool name: str promotionIds: _list[str] quantity: int @@ -1935,17 +2726,34 @@ class GoogleCloudDiscoveryengineV1betaDocumentInfo( class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig( typing_extensions.TypedDict, total=False ): + chunkingConfig: ( + GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig + ) defaultParsingConfig: ( GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig ) name: str parsingConfigOverrides: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfig( + typing_extensions.TypedDict, total=False +): + layoutBasedChunkingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig( + typing_extensions.TypedDict, total=False +): + chunkSize: int + includeAncestorHeadings: bool + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig( typing_extensions.TypedDict, total=False ): digitalParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig + layoutParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig ocrParsingConfig: GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig @typing.type_check_only @@ -1953,6 +2761,11 @@ class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigit typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigLayoutParsingConfig( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig( typing_extensions.TypedDict, total=False @@ -2036,21 +2849,49 @@ class GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata( dialogflowAgent: str @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaEngineCommonConfig( +class GoogleCloudDiscoveryengineV1betaEngineCommonConfig( + typing_extensions.TypedDict, total=False +): + companyName: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig( + typing_extensions.TypedDict, total=False +): + searchAddOns: _list[ + typing_extensions.Literal["SEARCH_ADD_ON_UNSPECIFIED", "SEARCH_ADD_ON_LLM"] + ] + searchTier: typing_extensions.Literal[ + "SEARCH_TIER_UNSPECIFIED", "SEARCH_TIER_STANDARD", "SEARCH_TIER_ENTERPRISE" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluation( + typing_extensions.TypedDict, total=False +): + createTime: str + endTime: str + error: GoogleRpcStatus + errorSamples: _list[GoogleRpcStatus] + evaluationSpec: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec + name: str + qualityMetrics: GoogleCloudDiscoveryengineV1betaQualityMetrics + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "PENDING", "RUNNING", "SUCCEEDED", "FAILED" + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpec( typing_extensions.TypedDict, total=False ): - companyName: str + querySetSpec: GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec + searchRequest: GoogleCloudDiscoveryengineV1betaSearchRequest @typing.type_check_only -class GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig( +class GoogleCloudDiscoveryengineV1betaEvaluationEvaluationSpecQuerySetSpec( typing_extensions.TypedDict, total=False ): - searchAddOns: _list[ - typing_extensions.Literal["SEARCH_ADD_ON_UNSPECIFIED", "SEARCH_ADD_ON_LLM"] - ] - searchTier: typing_extensions.Literal[ - "SEARCH_TIER_UNSPECIFIED", "SEARCH_TIER_STANDARD", "SEARCH_TIER_ENTERPRISE" - ] + sampleQuerySet: str @typing.type_check_only class GoogleCloudDiscoveryengineV1betaFactChunk( @@ -2075,6 +2916,7 @@ class GoogleCloudDiscoveryengineV1betaFhirStoreSource( ): fhirStore: str gcsStagingDir: str + resourceTypes: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1betaFirestoreSource( @@ -2099,6 +2941,39 @@ class GoogleCloudDiscoveryengineV1betaGroundingFact( attributes: dict[str, typing.Any] factText: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequest( + typing_extensions.TypedDict, total=False +): + bigquerySource: GoogleCloudDiscoveryengineV1betaBigQuerySource + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + gcsSource: GoogleCloudDiscoveryengineV1betaGcsSource + inlineSource: ( + GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource + ) + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsRequestInlineSource( + typing_extensions.TypedDict, total=False +): + suggestions: _list[GoogleCloudDiscoveryengineV1betaCompletionSuggestion] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportCompletionSuggestionsResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2113,6 +2988,7 @@ class GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata( class GoogleCloudDiscoveryengineV1betaImportDocumentsRequest( typing_extensions.TypedDict, total=False ): + alloyDbSource: GoogleCloudDiscoveryengineV1betaAlloyDbSource autoGenerateIds: bool bigquerySource: GoogleCloudDiscoveryengineV1betaBigQuerySource bigtableSource: GoogleCloudDiscoveryengineV1betaBigtableSource @@ -2148,6 +3024,38 @@ class GoogleCloudDiscoveryengineV1betaImportErrorConfig( ): gcsPrefix: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesMetadata( + typing_extensions.TypedDict, total=False +): + createTime: str + failureCount: str + successCount: str + totalCount: str + updateTime: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequest( + typing_extensions.TypedDict, total=False +): + bigquerySource: GoogleCloudDiscoveryengineV1betaBigQuerySource + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + gcsSource: GoogleCloudDiscoveryengineV1betaGcsSource + inlineSource: GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequestInlineSource + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesRequestInlineSource( + typing_extensions.TypedDict, total=False +): + sampleQueries: _list[GoogleCloudDiscoveryengineV1betaSampleQuery] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaImportSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + errorConfig: GoogleCloudDiscoveryengineV1betaImportErrorConfig + errorSamples: _list[GoogleRpcStatus] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -2218,6 +3126,22 @@ class GoogleCloudDiscoveryengineV1betaInterval( maximum: float minimum: float +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaLanguageInfo( + typing_extensions.TypedDict, total=False +): + language: str + languageCode: str + normalizedLanguageCode: str + region: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListControlsResponse( + typing_extensions.TypedDict, total=False +): + controls: _list[GoogleCloudDiscoveryengineV1betaControl] + nextPageToken: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaListConversationsResponse( typing_extensions.TypedDict, total=False @@ -2252,6 +3176,43 @@ class GoogleCloudDiscoveryengineV1betaListEnginesResponse( engines: _list[GoogleCloudDiscoveryengineV1betaEngine] nextPageToken: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponse( + typing_extensions.TypedDict, total=False +): + evaluationResults: _list[ + GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseEvaluationResult + ] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListEvaluationResultsResponseEvaluationResult( + typing_extensions.TypedDict, total=False +): + qualityMetrics: GoogleCloudDiscoveryengineV1betaQualityMetrics + sampleQuery: GoogleCloudDiscoveryengineV1betaSampleQuery + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListEvaluationsResponse( + typing_extensions.TypedDict, total=False +): + evaluations: _list[GoogleCloudDiscoveryengineV1betaEvaluation] + nextPageToken: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListSampleQueriesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sampleQueries: _list[GoogleCloudDiscoveryengineV1betaSampleQuery] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaListSampleQuerySetsResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + sampleQuerySets: _list[GoogleCloudDiscoveryengineV1betaSampleQuerySet] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaListSchemasResponse( typing_extensions.TypedDict, total=False @@ -2311,6 +3272,42 @@ class GoogleCloudDiscoveryengineV1betaPauseEngineRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProject(typing_extensions.TypedDict, total=False): + createTime: str + name: str + provisionCompletionTime: str + serviceTermsMap: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProjectServiceTerms( + typing_extensions.TypedDict, total=False +): + acceptTime: str + declineTime: str + id: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "TERMS_ACCEPTED", "TERMS_PENDING", "TERMS_DECLINED" + ] + version: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProvisionProjectMetadata( + typing_extensions.TypedDict, total=False +): ... + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaProvisionProjectRequest( + typing_extensions.TypedDict, total=False +): + acceptDataUseTerms: bool + dataUseTermsVersion: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaPurgeCompletionSuggestionsRequest( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -2325,8 +3322,17 @@ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata( class GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest( typing_extensions.TypedDict, total=False ): + errorConfig: GoogleCloudDiscoveryengineV1betaPurgeErrorConfig filter: str force: bool + gcsSource: GoogleCloudDiscoveryengineV1betaGcsSource + inlineSource: GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequestInlineSource + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequestInlineSource( + typing_extensions.TypedDict, total=False +): + documents: _list[str] @typing.type_check_only class GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse( @@ -2335,6 +3341,12 @@ class GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse( purgeCount: str purgeSample: _list[str] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaPurgeErrorConfig( + typing_extensions.TypedDict, total=False +): + gcsPrefix: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata( typing_extensions.TypedDict, total=False @@ -2354,6 +3366,32 @@ class GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse( errorSamples: _list[GoogleRpcStatus] purgeCount: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaPurgeUserEventsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + force: bool + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaQualityMetrics( + typing_extensions.TypedDict, total=False +): + docNdcg: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + docPrecision: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + docRecall: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + pageNdcg: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + pageRecall: GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaQualityMetricsTopkMetrics( + typing_extensions.TypedDict, total=False +): + top1: float + top10: float + top3: float + top5: float + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaQuery(typing_extensions.TypedDict, total=False): queryId: str @@ -2368,6 +3406,7 @@ class GoogleCloudDiscoveryengineV1betaRankRequest( query: str records: _list[GoogleCloudDiscoveryengineV1betaRankingRecord] topN: int + userLabels: dict[str, typing.Any] @typing.type_check_only class GoogleCloudDiscoveryengineV1betaRankResponse( @@ -2440,6 +3479,38 @@ class GoogleCloudDiscoveryengineV1betaResumeEngineRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSampleQuery( + typing_extensions.TypedDict, total=False +): + createTime: str + name: str + queryEntry: GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntry + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntry( + typing_extensions.TypedDict, total=False +): + query: str + targets: _list[GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSampleQueryQueryEntryTarget( + typing_extensions.TypedDict, total=False +): + pageNumbers: _list[int] + score: float + uri: str + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSampleQuerySet( + typing_extensions.TypedDict, total=False +): + createTime: str + description: str + displayName: str + name: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSchema(typing_extensions.TypedDict, total=False): jsonSchema: str @@ -2467,6 +3538,8 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest( facetSpecs: _list[GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec] filter: str imageQuery: GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery + languageCode: str + naturalLanguageQueryUnderstandingSpec: GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec offset: int orderBy: str pageSize: int @@ -2475,7 +3548,14 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest( query: str queryExpansionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec rankingExpression: str + regionCode: str safeSearch: bool + searchAsYouTypeSpec: ( + GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec + ) + servingConfig: str + session: str + sessionSpec: GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec spellCorrectionSpec: ( GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec ) @@ -2525,7 +3605,11 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBo class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec( typing_extensions.TypedDict, total=False ): + chunkSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec extractiveContentSpec: GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec + searchResultMode: typing_extensions.Literal[ + "SEARCH_RESULT_MODE_UNSPECIFIED", "DOCUMENTS", "CHUNKS" + ] snippetSpec: ( GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec ) @@ -2533,6 +3617,13 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec( GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec ) +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecChunkSpec( + typing_extensions.TypedDict, total=False +): + numNextChunks: int + numPreviousChunks: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec( typing_extensions.TypedDict, total=False @@ -2556,6 +3647,7 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec( typing_extensions.TypedDict, total=False ): ignoreAdversarialQuery: bool + ignoreLowRelevantContent: bool ignoreNonSummarySeekingQuery: bool includeCitations: bool languageCode: str @@ -2624,6 +3716,15 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery( ): imageBytes: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestNaturalLanguageQueryUnderstandingSpec( + typing_extensions.TypedDict, total=False +): + filterExtractionCondition: typing_extensions.Literal[ + "CONDITION_UNSPECIFIED", "DISABLED", "ENABLED" + ] + geoSearchQueryDetectionFieldNames: _list[str] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec( typing_extensions.TypedDict, total=False @@ -2631,6 +3732,19 @@ class GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec( condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "AUTO"] pinUnexpandedResults: bool +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpec( + typing_extensions.TypedDict, total=False +): + condition: typing_extensions.Literal["CONDITION_UNSPECIFIED", "DISABLED", "ENABLED"] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchRequestSessionSpec( + typing_extensions.TypedDict, total=False +): + queryId: str + searchResultPersistenceCount: int + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec( typing_extensions.TypedDict, total=False @@ -2649,10 +3763,13 @@ class GoogleCloudDiscoveryengineV1betaSearchResponse( GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo ] guidedSearchResult: GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult + naturalLanguageQueryUnderstandingInfo: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfo nextPageToken: str + oneBoxResults: _list[GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult] queryExpansionInfo: GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo redirectUri: str results: _list[GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult] + sessionInfo: GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo summary: GoogleCloudDiscoveryengineV1betaSearchResponseSummary totalSize: int @@ -2695,6 +3812,87 @@ class GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinement attributeKey: str attributeValue: str +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfo( + typing_extensions.TypedDict, total=False +): + extractedFilters: str + rewrittenQuery: str + structuredExtractedFilter: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilter( + typing_extensions.TypedDict, total=False +): + expression: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression( + typing_extensions.TypedDict, total=False +): + expressions: _list[ + GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression( + typing_extensions.TypedDict, total=False +): + andExpr: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterAndExpression + geolocationConstraint: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint + numberConstraint: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint + orExpr: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression + stringConstraint: GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterGeolocationConstraint( + typing_extensions.TypedDict, total=False +): + address: str + fieldName: str + latitude: float + longitude: float + radiusInMeters: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterNumberConstraint( + typing_extensions.TypedDict, total=False +): + comparison: typing_extensions.Literal[ + "COMPARISON_UNSPECIFIED", + "EQUALS", + "LESS_THAN_EQUALS", + "LESS_THAN", + "GREATER_THAN_EQUALS", + "GREATER_THAN", + ] + fieldName: str + value: float + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterOrExpression( + typing_extensions.TypedDict, total=False +): + expressions: _list[ + GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterExpression + ] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseNaturalLanguageQueryUnderstandingInfoStructuredExtractedFilterStringConstraint( + typing_extensions.TypedDict, total=False +): + fieldName: str + values: _list[str] + +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseOneBoxResult( + typing_extensions.TypedDict, total=False +): + oneBoxType: typing_extensions.Literal[ + "ONE_BOX_TYPE_UNSPECIFIED", "PEOPLE", "ORGANIZATION", "SLACK" + ] + searchResults: _list[GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult] + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo( typing_extensions.TypedDict, total=False @@ -2706,10 +3904,18 @@ class GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo( class GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult( typing_extensions.TypedDict, total=False ): + chunk: GoogleCloudDiscoveryengineV1betaChunk document: GoogleCloudDiscoveryengineV1betaDocument id: str modelScores: dict[str, typing.Any] +@typing.type_check_only +class GoogleCloudDiscoveryengineV1betaSearchResponseSessionInfo( + typing_extensions.TypedDict, total=False +): + name: str + queryId: str + @typing.type_check_only class GoogleCloudDiscoveryengineV1betaSearchResponseSummary( typing_extensions.TypedDict, total=False @@ -2725,6 +3931,8 @@ class GoogleCloudDiscoveryengineV1betaSearchResponseSummary( "OUT_OF_DOMAIN_QUERY_IGNORED", "POTENTIAL_POLICY_VIOLATION", "LLM_ADDON_NOT_ENABLED", + "NO_RELEVANT_CONTENT", + "JAIL_BREAKING_QUERY_IGNORED", ] ] summaryText: str @@ -3003,8 +4211,10 @@ class GoogleCloudDiscoveryengineV1betaUserEvent( attributes: dict[str, typing.Any] attributionToken: str completionInfo: GoogleCloudDiscoveryengineV1betaCompletionInfo + dataStore: str directUserRequest: bool documents: _list[GoogleCloudDiscoveryengineV1betaDocumentInfo] + engine: str eventTime: str eventType: str filter: str diff --git a/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi b/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi index 3a36b40c..a16f1aaa 100644 --- a/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/displayvideo/v2/schemas.pyi @@ -1058,6 +1058,7 @@ class CreateSdfDownloadTaskRequest(typing_extensions.TypedDict, total=False): "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", + "SDF_VERSION_7_1", ] @typing.type_check_only @@ -3683,6 +3684,7 @@ class SdfConfig(typing_extensions.TypedDict, total=False): "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", + "SDF_VERSION_7_1", ] @typing.type_check_only @@ -3707,6 +3709,7 @@ class SdfDownloadTaskMetadata(typing_extensions.TypedDict, total=False): "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", + "SDF_VERSION_7_1", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi b/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi index 247e5b24..0d59cd66 100644 --- a/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/displayvideo/v3/schemas.pyi @@ -1289,6 +1289,7 @@ class CreateSdfDownloadTaskRequest(typing_extensions.TypedDict, total=False): "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", + "SDF_VERSION_7_1", ] @typing.type_check_only @@ -2715,9 +2716,11 @@ class HouseholdIncomeTargetingOptionDetails(typing_extensions.TypedDict, total=F class IdFilter(typing_extensions.TypedDict, total=False): adGroupAdIds: _list[str] adGroupIds: _list[str] + adGroupQaIds: _list[str] campaignIds: _list[str] insertionOrderIds: _list[str] lineItemIds: _list[str] + lineItemQaIds: _list[str] mediaProductIds: _list[str] @typing.type_check_only @@ -2754,6 +2757,14 @@ class InsertionOrder(typing_extensions.TypedDict, total=False): integrationDetails: IntegrationDetails kpi: Kpi name: str + optimizationObjective: typing_extensions.Literal[ + "OPTIMIZATION_OBJECTIVE_UNSPECIFIED", + "CONVERSION", + "CLICK", + "BRAND_AWARENESS", + "CUSTOM", + "NO_OBJECTIVE", + ] pacing: Pacing partnerCosts: _list[PartnerCost] reservationType: typing_extensions.Literal[ @@ -3635,6 +3646,8 @@ class ParentEntityFilter(typing_extensions.TypedDict, total=False): "FILE_TYPE_LINE_ITEM", "FILE_TYPE_AD_GROUP", "FILE_TYPE_AD", + "FILE_TYPE_LINE_ITEM_QA", + "FILE_TYPE_AD_GROUP_QA", ] ] filterIds: _list[str] @@ -3974,6 +3987,7 @@ class SdfConfig(typing_extensions.TypedDict, total=False): "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", + "SDF_VERSION_7_1", ] @typing.type_check_only @@ -3998,6 +4012,7 @@ class SdfDownloadTaskMetadata(typing_extensions.TypedDict, total=False): "SDF_VERSION_5_5", "SDF_VERSION_6", "SDF_VERSION_7", + "SDF_VERSION_7_1", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/dlp/v2/resources.pyi b/googleapiclient-stubs/_apis/dlp/v2/resources.pyi index 09dc531c..6d3f375b 100644 --- a/googleapiclient-stubs/_apis/dlp/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/dlp/v2/resources.pyi @@ -148,6 +148,40 @@ class DLPResource(googleapiclient.discovery.Resource): @typing.type_check_only class ConnectionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GooglePrivacyDlpV2CreateConnectionRequest = ..., + **kwargs: typing.Any, + ) -> GooglePrivacyDlpV2ConnectionHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GooglePrivacyDlpV2ConnectionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GooglePrivacyDlpV2ListConnectionsResponseHttpRequest: ... + def list_next( + self, + previous_request: GooglePrivacyDlpV2ListConnectionsResponseHttpRequest, + previous_response: GooglePrivacyDlpV2ListConnectionsResponse, + ) -> GooglePrivacyDlpV2ListConnectionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: GooglePrivacyDlpV2UpdateConnectionRequest = ..., + **kwargs: typing.Any, + ) -> GooglePrivacyDlpV2ConnectionHttpRequest: ... def search( self, *, @@ -264,6 +298,33 @@ class DLPResource(googleapiclient.discovery.Resource): previous_response: GooglePrivacyDlpV2ListDlpJobsResponse, ) -> GooglePrivacyDlpV2ListDlpJobsResponseHttpRequest | None: ... + @typing.type_check_only + class FileStoreDataProfilesResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GooglePrivacyDlpV2FileStoreDataProfileHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GooglePrivacyDlpV2ListFileStoreDataProfilesResponseHttpRequest: ... + def list_next( + self, + previous_request: GooglePrivacyDlpV2ListFileStoreDataProfilesResponseHttpRequest, + previous_response: GooglePrivacyDlpV2ListFileStoreDataProfilesResponse, + ) -> ( + GooglePrivacyDlpV2ListFileStoreDataProfilesResponseHttpRequest + | None + ): ... + @typing.type_check_only class InspectTemplatesResource(googleapiclient.discovery.Resource): def create( @@ -440,6 +501,7 @@ class DLPResource(googleapiclient.discovery.Resource): def deidentifyTemplates(self) -> DeidentifyTemplatesResource: ... def discoveryConfigs(self) -> DiscoveryConfigsResource: ... def dlpJobs(self) -> DlpJobsResource: ... + def fileStoreDataProfiles(self) -> FileStoreDataProfilesResource: ... def inspectTemplates(self) -> InspectTemplatesResource: ... def jobTriggers(self) -> JobTriggersResource: ... def projectDataProfiles(self) -> ProjectDataProfilesResource: ... @@ -929,6 +991,33 @@ class DLPResource(googleapiclient.discovery.Resource): previous_response: GooglePrivacyDlpV2ListDlpJobsResponse, ) -> GooglePrivacyDlpV2ListDlpJobsResponseHttpRequest | None: ... + @typing.type_check_only + class FileStoreDataProfilesResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GooglePrivacyDlpV2FileStoreDataProfileHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> GooglePrivacyDlpV2ListFileStoreDataProfilesResponseHttpRequest: ... + def list_next( + self, + previous_request: GooglePrivacyDlpV2ListFileStoreDataProfilesResponseHttpRequest, + previous_response: GooglePrivacyDlpV2ListFileStoreDataProfilesResponse, + ) -> ( + GooglePrivacyDlpV2ListFileStoreDataProfilesResponseHttpRequest + | None + ): ... + @typing.type_check_only class ImageResource(googleapiclient.discovery.Resource): def redact( @@ -1130,6 +1219,7 @@ class DLPResource(googleapiclient.discovery.Resource): def deidentifyTemplates(self) -> DeidentifyTemplatesResource: ... def discoveryConfigs(self) -> DiscoveryConfigsResource: ... def dlpJobs(self) -> DlpJobsResource: ... + def fileStoreDataProfiles(self) -> FileStoreDataProfilesResource: ... def image(self) -> ImageResource: ... def inspectTemplates(self) -> InspectTemplatesResource: ... def jobTriggers(self) -> JobTriggersResource: ... @@ -1251,6 +1341,16 @@ class GooglePrivacyDlpV2DlpJobHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> GooglePrivacyDlpV2DlpJob: ... +@typing.type_check_only +class GooglePrivacyDlpV2FileStoreDataProfileHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GooglePrivacyDlpV2FileStoreDataProfile: ... + @typing.type_check_only class GooglePrivacyDlpV2HybridInspectResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1337,6 +1437,16 @@ class GooglePrivacyDlpV2ListDlpJobsResponseHttpRequest( num_retries: int = 0, ) -> GooglePrivacyDlpV2ListDlpJobsResponse: ... +@typing.type_check_only +class GooglePrivacyDlpV2ListFileStoreDataProfilesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GooglePrivacyDlpV2ListFileStoreDataProfilesResponse: ... + @typing.type_check_only class GooglePrivacyDlpV2ListInfoTypesResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi b/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi index 1a66f4e0..f44e55d5 100644 --- a/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/dlp/v2/schemas.pyi @@ -38,6 +38,9 @@ class GooglePrivacyDlpV2AllOtherDatabaseResources( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GooglePrivacyDlpV2AllOtherResources(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class GooglePrivacyDlpV2AllText(typing_extensions.TypedDict, total=False): ... @@ -159,6 +162,9 @@ class GooglePrivacyDlpV2ByteContentItem(typing_extensions.TypedDict, total=False "AVRO", "CSV", "TSV", + "AUDIO", + "VIDEO", + "EXECUTABLE", ] @typing.type_check_only @@ -233,6 +239,15 @@ class GooglePrivacyDlpV2CloudSqlProperties(typing_extensions.TypedDict, total=Fa maxConnections: int usernamePassword: GooglePrivacyDlpV2SecretManagerCredential +@typing.type_check_only +class GooglePrivacyDlpV2CloudStorageDiscoveryTarget( + typing_extensions.TypedDict, total=False +): + conditions: GooglePrivacyDlpV2DiscoveryFileStoreConditions + disabled: GooglePrivacyDlpV2Disabled + filter: GooglePrivacyDlpV2DiscoveryCloudStorageFilter + generationCadence: GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence + @typing.type_check_only class GooglePrivacyDlpV2CloudStorageFileSet(typing_extensions.TypedDict, total=False): url: str @@ -266,6 +281,11 @@ class GooglePrivacyDlpV2CloudStorageOptions(typing_extensions.TypedDict, total=F class GooglePrivacyDlpV2CloudStoragePath(typing_extensions.TypedDict, total=False): path: str +@typing.type_check_only +class GooglePrivacyDlpV2CloudStorageRegex(typing_extensions.TypedDict, total=False): + bucketNameRegex: str + projectIdRegex: str + @typing.type_check_only class GooglePrivacyDlpV2CloudStorageRegexFileSet( typing_extensions.TypedDict, total=False @@ -274,6 +294,13 @@ class GooglePrivacyDlpV2CloudStorageRegexFileSet( excludeRegex: _list[str] includeRegex: _list[str] +@typing.type_check_only +class GooglePrivacyDlpV2CloudStorageResourceReference( + typing_extensions.TypedDict, total=False +): + bucketName: str + projectId: str + @typing.type_check_only class GooglePrivacyDlpV2Color(typing_extensions.TypedDict, total=False): blue: float @@ -508,6 +535,7 @@ class GooglePrivacyDlpV2DataProfileBigQueryRowSchema( typing_extensions.TypedDict, total=False ): columnProfile: GooglePrivacyDlpV2ColumnDataProfile + fileStoreProfile: GooglePrivacyDlpV2FileStoreDataProfile tableProfile: GooglePrivacyDlpV2TableDataProfile @typing.type_check_only @@ -549,12 +577,17 @@ class GooglePrivacyDlpV2DataProfilePubSubMessage( "SCORE_INCREASED", "ERROR_CHANGED", ] + fileStoreProfile: GooglePrivacyDlpV2FileStoreDataProfile profile: GooglePrivacyDlpV2TableDataProfile @typing.type_check_only class GooglePrivacyDlpV2DataRiskLevel(typing_extensions.TypedDict, total=False): score: typing_extensions.Literal[ - "RISK_SCORE_UNSPECIFIED", "RISK_LOW", "RISK_MODERATE", "RISK_HIGH" + "RISK_SCORE_UNSPECIFIED", + "RISK_LOW", + "RISK_UNKNOWN", + "RISK_MODERATE", + "RISK_HIGH", ] @typing.type_check_only @@ -799,6 +832,54 @@ class GooglePrivacyDlpV2DiscoveryCloudSqlGenerationCadence( ] schemaModifiedCadence: GooglePrivacyDlpV2SchemaModifiedCadence +@typing.type_check_only +class GooglePrivacyDlpV2DiscoveryCloudStorageConditions( + typing_extensions.TypedDict, total=False +): + includedBucketAttributes: _list[ + typing_extensions.Literal[ + "CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED", + "ALL_SUPPORTED_BUCKETS", + "AUTOCLASS_DISABLED", + "AUTOCLASS_ENABLED", + ] + ] + includedObjectAttributes: _list[ + typing_extensions.Literal[ + "CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED", + "ALL_SUPPORTED_OBJECTS", + "STANDARD", + "NEARLINE", + "COLDLINE", + "ARCHIVE", + "REGIONAL", + "MULTI_REGIONAL", + "DURABLE_REDUCED_AVAILABILITY", + ] + ] + +@typing.type_check_only +class GooglePrivacyDlpV2DiscoveryCloudStorageFilter( + typing_extensions.TypedDict, total=False +): + cloudStorageResourceReference: GooglePrivacyDlpV2CloudStorageResourceReference + collection: GooglePrivacyDlpV2FileStoreCollection + others: GooglePrivacyDlpV2AllOtherResources + +@typing.type_check_only +class GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence( + typing_extensions.TypedDict, total=False +): + inspectTemplateModifiedCadence: ( + GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence + ) + refreshFrequency: typing_extensions.Literal[ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY", + ] + @typing.type_check_only class GooglePrivacyDlpV2DiscoveryConfig(typing_extensions.TypedDict, total=False): actions: _list[GooglePrivacyDlpV2DataProfileAction] @@ -813,13 +894,41 @@ class GooglePrivacyDlpV2DiscoveryConfig(typing_extensions.TypedDict, total=False targets: _list[GooglePrivacyDlpV2DiscoveryTarget] updateTime: str +@typing.type_check_only +class GooglePrivacyDlpV2DiscoveryFileStoreConditions( + typing_extensions.TypedDict, total=False +): + cloudStorageConditions: GooglePrivacyDlpV2DiscoveryCloudStorageConditions + createdAfter: str + minAge: str + @typing.type_check_only class GooglePrivacyDlpV2DiscoveryGenerationCadence( typing_extensions.TypedDict, total=False ): + inspectTemplateModifiedCadence: ( + GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence + ) + refreshFrequency: typing_extensions.Literal[ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY", + ] schemaModifiedCadence: GooglePrivacyDlpV2DiscoverySchemaModifiedCadence tableModifiedCadence: GooglePrivacyDlpV2DiscoveryTableModifiedCadence +@typing.type_check_only +class GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence( + typing_extensions.TypedDict, total=False +): + frequency: typing_extensions.Literal[ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY", + ] + @typing.type_check_only class GooglePrivacyDlpV2DiscoverySchemaModifiedCadence( typing_extensions.TypedDict, total=False @@ -865,6 +974,7 @@ class GooglePrivacyDlpV2DiscoveryTableModifiedCadence( class GooglePrivacyDlpV2DiscoveryTarget(typing_extensions.TypedDict, total=False): bigQueryTarget: GooglePrivacyDlpV2BigQueryDiscoveryTarget cloudSqlTarget: GooglePrivacyDlpV2CloudSqlDiscoveryTarget + cloudStorageTarget: GooglePrivacyDlpV2CloudStorageDiscoveryTarget secretsTarget: GooglePrivacyDlpV2SecretsDiscoveryTarget @typing.type_check_only @@ -903,6 +1013,11 @@ class GooglePrivacyDlpV2EntityId(typing_extensions.TypedDict, total=False): @typing.type_check_only class GooglePrivacyDlpV2Error(typing_extensions.TypedDict, total=False): details: GoogleRpcStatus + extraInfo: typing_extensions.Literal[ + "ERROR_INFO_UNSPECIFIED", + "IMAGE_SCAN_UNAVAILABLE_IN_REGION", + "FILE_STORE_CLUSTER_UNSUPPORTED", + ] timestamps: _list[str] @typing.type_check_only @@ -947,11 +1062,90 @@ class GooglePrivacyDlpV2FieldTransformation(typing_extensions.TypedDict, total=F infoTypeTransformations: GooglePrivacyDlpV2InfoTypeTransformations primitiveTransformation: GooglePrivacyDlpV2PrimitiveTransformation +@typing.type_check_only +class GooglePrivacyDlpV2FileClusterSummary(typing_extensions.TypedDict, total=False): + dataRiskLevel: GooglePrivacyDlpV2DataRiskLevel + errors: _list[GooglePrivacyDlpV2Error] + fileClusterType: GooglePrivacyDlpV2FileClusterType + fileExtensionsScanned: _list[GooglePrivacyDlpV2FileExtensionInfo] + fileExtensionsSeen: _list[GooglePrivacyDlpV2FileExtensionInfo] + fileStoreInfoTypeSummaries: _list[GooglePrivacyDlpV2FileStoreInfoTypeSummary] + noFilesExist: bool + sensitivityScore: GooglePrivacyDlpV2SensitivityScore + +@typing.type_check_only +class GooglePrivacyDlpV2FileClusterType(typing_extensions.TypedDict, total=False): + cluster: typing_extensions.Literal[ + "CLUSTER_UNSPECIFIED", + "CLUSTER_UNKNOWN", + "CLUSTER_TEXT", + "CLUSTER_STRUCTURED_DATA", + "CLUSTER_SOURCE_CODE", + "CLUSTER_RICH_DOCUMENT", + "CLUSTER_IMAGE", + "CLUSTER_ARCHIVE", + "CLUSTER_MULTIMEDIA", + "CLUSTER_EXECUTABLE", + ] + +@typing.type_check_only +class GooglePrivacyDlpV2FileExtensionInfo(typing_extensions.TypedDict, total=False): + fileExtension: str + @typing.type_check_only class GooglePrivacyDlpV2FileSet(typing_extensions.TypedDict, total=False): regexFileSet: GooglePrivacyDlpV2CloudStorageRegexFileSet url: str +@typing.type_check_only +class GooglePrivacyDlpV2FileStoreCollection(typing_extensions.TypedDict, total=False): + includeRegexes: GooglePrivacyDlpV2FileStoreRegexes + +@typing.type_check_only +class GooglePrivacyDlpV2FileStoreDataProfile(typing_extensions.TypedDict, total=False): + configSnapshot: GooglePrivacyDlpV2DataProfileConfigSnapshot + createTime: str + dataRiskLevel: GooglePrivacyDlpV2DataRiskLevel + dataSourceType: GooglePrivacyDlpV2DataSourceType + dataStorageLocations: _list[str] + fileClusterSummaries: _list[GooglePrivacyDlpV2FileClusterSummary] + fileStoreInfoTypeSummaries: _list[GooglePrivacyDlpV2FileStoreInfoTypeSummary] + fileStoreIsEmpty: bool + fileStoreLocation: str + fileStorePath: str + fullResource: str + lastModifiedTime: str + locationType: str + name: str + profileLastGenerated: str + profileStatus: GooglePrivacyDlpV2ProfileStatus + projectDataProfile: str + projectId: str + resourceAttributes: dict[str, typing.Any] + resourceLabels: dict[str, typing.Any] + resourceVisibility: typing_extensions.Literal[ + "RESOURCE_VISIBILITY_UNSPECIFIED", + "RESOURCE_VISIBILITY_PUBLIC", + "RESOURCE_VISIBILITY_INCONCLUSIVE", + "RESOURCE_VISIBILITY_RESTRICTED", + ] + sensitivityScore: GooglePrivacyDlpV2SensitivityScore + state: typing_extensions.Literal["STATE_UNSPECIFIED", "RUNNING", "DONE"] + +@typing.type_check_only +class GooglePrivacyDlpV2FileStoreInfoTypeSummary( + typing_extensions.TypedDict, total=False +): + infoType: GooglePrivacyDlpV2InfoType + +@typing.type_check_only +class GooglePrivacyDlpV2FileStoreRegex(typing_extensions.TypedDict, total=False): + cloudStorageRegex: GooglePrivacyDlpV2CloudStorageRegex + +@typing.type_check_only +class GooglePrivacyDlpV2FileStoreRegexes(typing_extensions.TypedDict, total=False): + patterns: _list[GooglePrivacyDlpV2FileStoreRegex] + @typing.type_check_only class GooglePrivacyDlpV2Finding(typing_extensions.TypedDict, total=False): createTime: str @@ -1081,7 +1275,10 @@ class GooglePrivacyDlpV2InfoTypeCategory(typing_extensions.TypedDict, total=Fals "LOCATION_UNSPECIFIED", "GLOBAL", "ARGENTINA", + "ARMENIA", "AUSTRALIA", + "AZERBAIJAN", + "BELARUS", "BELGIUM", "BRAZIL", "CANADA", @@ -1445,6 +1642,13 @@ class GooglePrivacyDlpV2ListDlpJobsResponse(typing_extensions.TypedDict, total=F jobs: _list[GooglePrivacyDlpV2DlpJob] nextPageToken: str +@typing.type_check_only +class GooglePrivacyDlpV2ListFileStoreDataProfilesResponse( + typing_extensions.TypedDict, total=False +): + fileStoreDataProfiles: _list[GooglePrivacyDlpV2FileStoreDataProfile] + nextPageToken: str + @typing.type_check_only class GooglePrivacyDlpV2ListInfoTypesResponse(typing_extensions.TypedDict, total=False): infoTypes: _list[GooglePrivacyDlpV2InfoTypeDescription] @@ -1582,11 +1786,13 @@ class GooglePrivacyDlpV2ProfileStatus(typing_extensions.TypedDict, total=False): @typing.type_check_only class GooglePrivacyDlpV2ProjectDataProfile(typing_extensions.TypedDict, total=False): dataRiskLevel: GooglePrivacyDlpV2DataRiskLevel + fileStoreDataProfileCount: str name: str profileLastGenerated: str profileStatus: GooglePrivacyDlpV2ProfileStatus projectId: str sensitivityScore: GooglePrivacyDlpV2SensitivityScore + tableDataProfileCount: str @typing.type_check_only class GooglePrivacyDlpV2Proximity(typing_extensions.TypedDict, total=False): @@ -1612,7 +1818,10 @@ class GooglePrivacyDlpV2PubSubExpressions(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GooglePrivacyDlpV2PubSubNotification(typing_extensions.TypedDict, total=False): detailOfMessage: typing_extensions.Literal[ - "DETAIL_LEVEL_UNSPECIFIED", "TABLE_PROFILE", "RESOURCE_NAME" + "DETAIL_LEVEL_UNSPECIFIED", + "TABLE_PROFILE", + "RESOURCE_NAME", + "FILE_STORE_PROFILE", ] event: typing_extensions.Literal[ "EVENT_TYPE_UNSPECIFIED", @@ -1842,6 +2051,7 @@ class GooglePrivacyDlpV2SensitivityScore(typing_extensions.TypedDict, total=Fals score: typing_extensions.Literal[ "SENSITIVITY_SCORE_UNSPECIFIED", "SENSITIVITY_LOW", + "SENSITIVITY_UNKNOWN", "SENSITIVITY_MODERATE", "SENSITIVITY_HIGH", ] diff --git a/googleapiclient-stubs/_apis/dns/v1/schemas.pyi b/googleapiclient-stubs/_apis/dns/v1/schemas.pyi index 911d7922..7b0971d9 100644 --- a/googleapiclient-stubs/_apis/dns/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/dns/v1/schemas.pyi @@ -17,7 +17,6 @@ class Change(typing_extensions.TypedDict, total=False): @typing.type_check_only class ChangesListResponse(typing_extensions.TypedDict, total=False): changes: _list[Change] - header: ResponseHeader kind: str nextPageToken: str @@ -54,7 +53,6 @@ class DnsKeySpec(typing_extensions.TypedDict, total=False): @typing.type_check_only class DnsKeysListResponse(typing_extensions.TypedDict, total=False): dnsKeys: _list[DnsKey] - header: ResponseHeader kind: str nextPageToken: str @@ -159,7 +157,6 @@ class ManagedZoneForwardingConfigNameServerTarget( @typing.type_check_only class ManagedZoneOperationsListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str nextPageToken: str operations: _list[Operation] @@ -214,7 +211,6 @@ class ManagedZoneServiceDirectoryConfigNamespace( @typing.type_check_only class ManagedZonesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str managedZones: _list[ManagedZone] nextPageToken: str @@ -242,19 +238,16 @@ class OperationManagedZoneContext(typing_extensions.TypedDict, total=False): @typing.type_check_only class PoliciesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str nextPageToken: str policies: _list[Policy] @typing.type_check_only class PoliciesPatchResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader policy: Policy @typing.type_check_only class PoliciesUpdateResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader policy: Policy @typing.type_check_only @@ -300,6 +293,7 @@ class Quota(typing_extensions.TypedDict, total=False): gkeClustersPerManagedZone: int gkeClustersPerPolicy: int gkeClustersPerResponsePolicy: int + internetHealthChecksPerManagedZone: int itemsPerRoutingPolicy: int kind: str managedZones: int @@ -325,6 +319,7 @@ class Quota(typing_extensions.TypedDict, total=False): @typing.type_check_only class RRSetRoutingPolicy(typing_extensions.TypedDict, total=False): geo: RRSetRoutingPolicyGeoPolicy + healthCheck: str kind: str primaryBackup: RRSetRoutingPolicyPrimaryBackupPolicy wrr: RRSetRoutingPolicyWrrPolicy @@ -347,6 +342,7 @@ class RRSetRoutingPolicyGeoPolicyGeoPolicyItem( @typing.type_check_only class RRSetRoutingPolicyHealthCheckTargets(typing_extensions.TypedDict, total=False): + externalEndpoints: _list[str] internalLoadBalancers: _list[RRSetRoutingPolicyLoadBalancerTarget] @typing.type_check_only @@ -399,29 +395,21 @@ class ResourceRecordSetsDeleteResponse(typing_extensions.TypedDict, total=False) @typing.type_check_only class ResourceRecordSetsListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str nextPageToken: str rrsets: _list[ResourceRecordSet] -@typing.type_check_only -class ResponseHeader(typing_extensions.TypedDict, total=False): - operationId: str - @typing.type_check_only class ResponsePoliciesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader nextPageToken: str responsePolicies: _list[ResponsePolicy] @typing.type_check_only class ResponsePoliciesPatchResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicy: ResponsePolicy @typing.type_check_only class ResponsePoliciesUpdateResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicy: ResponsePolicy @typing.type_check_only @@ -458,16 +446,13 @@ class ResponsePolicyRuleLocalData(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResponsePolicyRulesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader nextPageToken: str responsePolicyRules: _list[ResponsePolicyRule] @typing.type_check_only class ResponsePolicyRulesPatchResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicyRule: ResponsePolicyRule @typing.type_check_only class ResponsePolicyRulesUpdateResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicyRule: ResponsePolicyRule diff --git a/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi index 5200e3ad..c98f5a95 100644 --- a/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/dns/v1beta2/schemas.pyi @@ -17,7 +17,6 @@ class Change(typing_extensions.TypedDict, total=False): @typing.type_check_only class ChangesListResponse(typing_extensions.TypedDict, total=False): changes: _list[Change] - header: ResponseHeader kind: str nextPageToken: str @@ -54,7 +53,6 @@ class DnsKeySpec(typing_extensions.TypedDict, total=False): @typing.type_check_only class DnsKeysListResponse(typing_extensions.TypedDict, total=False): dnsKeys: _list[DnsKey] - header: ResponseHeader kind: str nextPageToken: str @@ -159,7 +157,6 @@ class ManagedZoneForwardingConfigNameServerTarget( @typing.type_check_only class ManagedZoneOperationsListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str nextPageToken: str operations: _list[Operation] @@ -214,7 +211,6 @@ class ManagedZoneServiceDirectoryConfigNamespace( @typing.type_check_only class ManagedZonesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str managedZones: _list[ManagedZone] nextPageToken: str @@ -242,19 +238,16 @@ class OperationManagedZoneContext(typing_extensions.TypedDict, total=False): @typing.type_check_only class PoliciesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str nextPageToken: str policies: _list[Policy] @typing.type_check_only class PoliciesPatchResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader policy: Policy @typing.type_check_only class PoliciesUpdateResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader policy: Policy @typing.type_check_only @@ -300,6 +293,7 @@ class Quota(typing_extensions.TypedDict, total=False): gkeClustersPerManagedZone: int gkeClustersPerPolicy: int gkeClustersPerResponsePolicy: int + internetHealthChecksPerManagedZone: int itemsPerRoutingPolicy: int kind: str managedZones: int @@ -326,6 +320,7 @@ class Quota(typing_extensions.TypedDict, total=False): class RRSetRoutingPolicy(typing_extensions.TypedDict, total=False): geo: RRSetRoutingPolicyGeoPolicy geoPolicy: RRSetRoutingPolicyGeoPolicy + healthCheck: str kind: str primaryBackup: RRSetRoutingPolicyPrimaryBackupPolicy wrr: RRSetRoutingPolicyWrrPolicy @@ -349,6 +344,7 @@ class RRSetRoutingPolicyGeoPolicyGeoPolicyItem( @typing.type_check_only class RRSetRoutingPolicyHealthCheckTargets(typing_extensions.TypedDict, total=False): + externalEndpoints: _list[str] internalLoadBalancers: _list[RRSetRoutingPolicyLoadBalancerTarget] @typing.type_check_only @@ -398,29 +394,21 @@ class ResourceRecordSet(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResourceRecordSetsListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader kind: str nextPageToken: str rrsets: _list[ResourceRecordSet] -@typing.type_check_only -class ResponseHeader(typing_extensions.TypedDict, total=False): - operationId: str - @typing.type_check_only class ResponsePoliciesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader nextPageToken: str responsePolicies: _list[ResponsePolicy] @typing.type_check_only class ResponsePoliciesPatchResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicy: ResponsePolicy @typing.type_check_only class ResponsePoliciesUpdateResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicy: ResponsePolicy @typing.type_check_only @@ -457,16 +445,13 @@ class ResponsePolicyRuleLocalData(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResponsePolicyRulesListResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader nextPageToken: str responsePolicyRules: _list[ResponsePolicyRule] @typing.type_check_only class ResponsePolicyRulesPatchResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicyRule: ResponsePolicyRule @typing.type_check_only class ResponsePolicyRulesUpdateResponse(typing_extensions.TypedDict, total=False): - header: ResponseHeader responsePolicyRule: ResponsePolicyRule diff --git a/googleapiclient-stubs/_apis/docs/v1/resources.pyi b/googleapiclient-stubs/_apis/docs/v1/resources.pyi index d36f84c1..dda84100 100644 --- a/googleapiclient-stubs/_apis/docs/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/docs/v1/resources.pyi @@ -29,6 +29,7 @@ class DocsResource(googleapiclient.discovery.Resource): self, *, documentId: str, + includeTabsContent: bool = ..., suggestionsViewMode: typing_extensions.Literal[ "DEFAULT_FOR_CURRENT_ACCESS", "SUGGESTIONS_INLINE", diff --git a/googleapiclient-stubs/_apis/docs/v1/schemas.pyi b/googleapiclient-stubs/_apis/docs/v1/schemas.pyi index 67705dae..814202bd 100644 --- a/googleapiclient-stubs/_apis/docs/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/docs/v1/schemas.pyi @@ -35,6 +35,11 @@ class BatchUpdateDocumentResponse(typing_extensions.TypedDict, total=False): class Body(typing_extensions.TypedDict, total=False): content: _list[StructuralElement] +@typing.type_check_only +class BookmarkLink(typing_extensions.TypedDict, total=False): + id: str + tabId: str + @typing.type_check_only class Bullet(typing_extensions.TypedDict, total=False): listId: str @@ -139,15 +144,18 @@ class DeleteContentRangeRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class DeleteFooterRequest(typing_extensions.TypedDict, total=False): footerId: str + tabId: str @typing.type_check_only class DeleteHeaderRequest(typing_extensions.TypedDict, total=False): headerId: str + tabId: str @typing.type_check_only class DeleteNamedRangeRequest(typing_extensions.TypedDict, total=False): name: str namedRangeId: str + tabsCriteria: TabsCriteria @typing.type_check_only class DeleteParagraphBulletsRequest(typing_extensions.TypedDict, total=False): @@ -156,6 +164,7 @@ class DeleteParagraphBulletsRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class DeletePositionedObjectRequest(typing_extensions.TypedDict, total=False): objectId: str + tabId: str @typing.type_check_only class DeleteTableColumnRequest(typing_extensions.TypedDict, total=False): @@ -192,6 +201,7 @@ class Document(typing_extensions.TypedDict, total=False): "PREVIEW_SUGGESTIONS_ACCEPTED", "PREVIEW_WITHOUT_SUGGESTIONS", ] + tabs: _list[Tab] title: str @typing.type_check_only @@ -238,6 +248,21 @@ class DocumentStyleSuggestionState(typing_extensions.TypedDict, total=False): useEvenPageHeaderFooterSuggested: bool useFirstPageHeaderFooterSuggested: bool +@typing.type_check_only +class DocumentTab(typing_extensions.TypedDict, total=False): + body: Body + documentStyle: DocumentStyle + footers: dict[str, typing.Any] + footnotes: dict[str, typing.Any] + headers: dict[str, typing.Any] + inlineObjects: dict[str, typing.Any] + lists: dict[str, typing.Any] + namedRanges: dict[str, typing.Any] + namedStyles: NamedStyles + positionedObjects: dict[str, typing.Any] + suggestedDocumentStyleChanges: dict[str, typing.Any] + suggestedNamedStylesChanges: dict[str, typing.Any] + @typing.type_check_only class EmbeddedDrawingProperties(typing_extensions.TypedDict, total=False): ... @@ -293,6 +318,7 @@ class EmbeddedObjectSuggestionState(typing_extensions.TypedDict, total=False): @typing.type_check_only class EndOfSegmentLocation(typing_extensions.TypedDict, total=False): segmentId: str + tabId: str @typing.type_check_only class Equation(typing_extensions.TypedDict, total=False): @@ -323,6 +349,11 @@ class Header(typing_extensions.TypedDict, total=False): content: _list[StructuralElement] headerId: str +@typing.type_check_only +class HeadingLink(typing_extensions.TypedDict, total=False): + id: str + tabId: str + @typing.type_check_only class HorizontalRule(typing_extensions.TypedDict, total=False): suggestedDeletionIds: _list[str] @@ -427,8 +458,11 @@ class InsertTextRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class Link(typing_extensions.TypedDict, total=False): + bookmark: BookmarkLink bookmarkId: str + heading: HeadingLink headingId: str + tabId: str url: str @typing.type_check_only @@ -458,6 +492,7 @@ class ListPropertiesSuggestionState(typing_extensions.TypedDict, total=False): class Location(typing_extensions.TypedDict, total=False): index: int segmentId: str + tabId: str @typing.type_check_only class MergeTableCellsRequest(typing_extensions.TypedDict, total=False): @@ -730,11 +765,13 @@ class Range(typing_extensions.TypedDict, total=False): endIndex: int segmentId: str startIndex: int + tabId: str @typing.type_check_only class ReplaceAllTextRequest(typing_extensions.TypedDict, total=False): containsText: SubstringMatchCriteria replaceText: str + tabsCriteria: TabsCriteria @typing.type_check_only class ReplaceAllTextResponse(typing_extensions.TypedDict, total=False): @@ -746,12 +783,14 @@ class ReplaceImageRequest(typing_extensions.TypedDict, total=False): imageReplaceMethod: typing_extensions.Literal[ "IMAGE_REPLACE_METHOD_UNSPECIFIED", "CENTER_CROP" ] + tabId: str uri: str @typing.type_check_only class ReplaceNamedRangeContentRequest(typing_extensions.TypedDict, total=False): namedRangeId: str namedRangeName: str + tabsCriteria: TabsCriteria text: str @typing.type_check_only @@ -952,6 +991,20 @@ class SuggestedTextStyle(typing_extensions.TypedDict, total=False): textStyle: TextStyle textStyleSuggestionState: TextStyleSuggestionState +@typing.type_check_only +class Tab(typing_extensions.TypedDict, total=False): + childTabs: _list[Tab] + documentTab: DocumentTab + tabProperties: TabProperties + +@typing.type_check_only +class TabProperties(typing_extensions.TypedDict, total=False): + index: int + nestingLevel: int + parentTabId: str + tabId: str + title: str + @typing.type_check_only class TabStop(typing_extensions.TypedDict, total=False): alignment: typing_extensions.Literal[ @@ -1071,6 +1124,10 @@ class TableRowStyleSuggestionState(typing_extensions.TypedDict, total=False): class TableStyle(typing_extensions.TypedDict, total=False): tableColumnProperties: _list[TableColumnProperties] +@typing.type_check_only +class TabsCriteria(typing_extensions.TypedDict, total=False): + tabIds: _list[str] + @typing.type_check_only class TextRun(typing_extensions.TypedDict, total=False): content: str @@ -1117,6 +1174,7 @@ class UnmergeTableCellsRequest(typing_extensions.TypedDict, total=False): class UpdateDocumentStyleRequest(typing_extensions.TypedDict, total=False): documentStyle: DocumentStyle fields: str + tabId: str @typing.type_check_only class UpdateParagraphStyleRequest(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/documentai/v1/schemas.pyi b/googleapiclient-stubs/_apis/documentai/v1/schemas.pyi index 0ea64eb3..90538b6b 100644 --- a/googleapiclient-stubs/_apis/documentai/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/documentai/v1/schemas.pyi @@ -562,7 +562,9 @@ class GoogleCloudDocumentaiV1DisableProcessorResponse( @typing.type_check_only class GoogleCloudDocumentaiV1Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1DocumentEntityRelation] error: GoogleRpcStatus @@ -575,6 +577,130 @@ class GoogleCloudDocumentaiV1Document(typing_extensions.TypedDict, total=False): textStyles: _list[GoogleCloudDocumentaiV1DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + ) + pageSpan: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + ) + tableBlock: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + ) + textBlock: ( + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + ) + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1DocumentEntity(typing_extensions.TypedDict, total=False): confidence: float @@ -1185,6 +1311,7 @@ class GoogleCloudDocumentaiV1ProcessOptions(typing_extensions.TypedDict, total=F fromEnd: int fromStart: int individualPageSelector: GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector + layoutConfig: GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig ocrConfig: GoogleCloudDocumentaiV1OcrConfig schemaOverride: GoogleCloudDocumentaiV1DocumentSchema @@ -1194,6 +1321,19 @@ class GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector( ): pages: _list[int] +@typing.type_check_only +class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig( + typing_extensions.TypedDict, total=False +): + chunkingConfig: GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig + +@typing.type_check_only +class GoogleCloudDocumentaiV1ProcessOptionsLayoutConfigChunkingConfig( + typing_extensions.TypedDict, total=False +): + chunkSize: int + includeAncestorHeadings: bool + @typing.type_check_only class GoogleCloudDocumentaiV1ProcessRequest(typing_extensions.TypedDict, total=False): fieldMask: str @@ -1218,6 +1358,8 @@ class GoogleCloudDocumentaiV1Processor(typing_extensions.TypedDict, total=False) name: str processEndpoint: str processorVersionAliases: _list[GoogleCloudDocumentaiV1ProcessorVersionAlias] + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "ENABLED", @@ -1261,6 +1403,7 @@ class GoogleCloudDocumentaiV1ProcessorVersion(typing_extensions.TypedDict, total deprecationInfo: GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo displayName: str documentSchema: GoogleCloudDocumentaiV1DocumentSchema + genAiModelInfo: GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo googleManaged: bool kmsKeyName: str kmsKeyVersionName: str @@ -1269,6 +1412,8 @@ class GoogleCloudDocumentaiV1ProcessorVersion(typing_extensions.TypedDict, total "MODEL_TYPE_UNSPECIFIED", "MODEL_TYPE_GENERATIVE", "MODEL_TYPE_CUSTOM" ] name: str + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "DEPLOYED", @@ -1295,6 +1440,33 @@ class GoogleCloudDocumentaiV1ProcessorVersionDeprecationInfo( deprecationTime: str replacementProcessorVersion: str +@typing.type_check_only +class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfo( + typing_extensions.TypedDict, total=False +): + customGenAiModelInfo: ( + GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo + ) + foundationGenAiModelInfo: ( + GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo + ) + +@typing.type_check_only +class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoCustomGenAiModelInfo( + typing_extensions.TypedDict, total=False +): + baseProcessorVersionId: str + customModelType: typing_extensions.Literal[ + "CUSTOM_MODEL_TYPE_UNSPECIFIED", "VERSIONED_FOUNDATION", "FINE_TUNED" + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo( + typing_extensions.TypedDict, total=False +): + finetuningAllowed: bool + minTrainLabeledDocuments: int + @typing.type_check_only class GoogleCloudDocumentaiV1RawDocument(typing_extensions.TypedDict, total=False): content: str @@ -1446,7 +1618,9 @@ class GoogleCloudDocumentaiV1beta1BoundingPoly( @typing.type_check_only class GoogleCloudDocumentaiV1beta1Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1beta1DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1beta1DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1beta1DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1beta1DocumentEntityRelation] error: GoogleRpcStatus @@ -1459,6 +1633,122 @@ class GoogleCloudDocumentaiV1beta1Document(typing_extensions.TypedDict, total=Fa textStyles: _list[GoogleCloudDocumentaiV1beta1DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + pageSpan: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + tableBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + textBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1beta1DocumentEntity( typing_extensions.TypedDict, total=False @@ -1901,7 +2191,9 @@ class GoogleCloudDocumentaiV1beta2BoundingPoly( @typing.type_check_only class GoogleCloudDocumentaiV1beta2Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1beta2DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1beta2DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1beta2DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1beta2DocumentEntityRelation] error: GoogleRpcStatus @@ -1915,6 +2207,122 @@ class GoogleCloudDocumentaiV1beta2Document(typing_extensions.TypedDict, total=Fa textStyles: _list[GoogleCloudDocumentaiV1beta2DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + pageSpan: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + tableBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + textBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1beta2DocumentEntity( typing_extensions.TypedDict, total=False @@ -2420,6 +2828,8 @@ class GoogleCloudDocumentaiV1beta3Dataset(typing_extensions.TypedDict, total=Fal documentWarehouseConfig: GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig gcsManagedConfig: GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig name: str + satisfiesPzi: bool + satisfiesPzs: bool spannerIndexingConfig: GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "UNINITIALIZED", "INITIALIZING", "INITIALIZED" diff --git a/googleapiclient-stubs/_apis/documentai/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/documentai/v1beta2/schemas.pyi index 95002c37..dc63b375 100644 --- a/googleapiclient-stubs/_apis/documentai/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/documentai/v1beta2/schemas.pyi @@ -640,7 +640,9 @@ class GoogleCloudDocumentaiV1beta1BoundingPoly( @typing.type_check_only class GoogleCloudDocumentaiV1beta1Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1beta1DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1beta1DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1beta1DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1beta1DocumentEntityRelation] error: GoogleRpcStatus @@ -653,6 +655,122 @@ class GoogleCloudDocumentaiV1beta1Document(typing_extensions.TypedDict, total=Fa textStyles: _list[GoogleCloudDocumentaiV1beta1DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + pageSpan: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + tableBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + textBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1beta1DocumentEntity( typing_extensions.TypedDict, total=False @@ -1107,7 +1225,9 @@ class GoogleCloudDocumentaiV1beta2BoundingPoly( @typing.type_check_only class GoogleCloudDocumentaiV1beta2Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1beta2DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1beta2DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1beta2DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1beta2DocumentEntityRelation] error: GoogleRpcStatus @@ -1121,6 +1241,122 @@ class GoogleCloudDocumentaiV1beta2Document(typing_extensions.TypedDict, total=Fa textStyles: _list[GoogleCloudDocumentaiV1beta2DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + pageSpan: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + tableBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + textBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1beta2DocumentEntity( typing_extensions.TypedDict, total=False @@ -1682,6 +1918,8 @@ class GoogleCloudDocumentaiV1beta3Dataset(typing_extensions.TypedDict, total=Fal documentWarehouseConfig: GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig gcsManagedConfig: GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig name: str + satisfiesPzi: bool + satisfiesPzs: bool spannerIndexingConfig: GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "UNINITIALIZED", "INITIALIZING", "INITIALIZED" diff --git a/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi b/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi index 5e28815c..283c59cc 100644 --- a/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi +++ b/googleapiclient-stubs/_apis/documentai/v1beta3/schemas.pyi @@ -640,7 +640,9 @@ class GoogleCloudDocumentaiV1beta1BoundingPoly( @typing.type_check_only class GoogleCloudDocumentaiV1beta1Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1beta1DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1beta1DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1beta1DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1beta1DocumentEntityRelation] error: GoogleRpcStatus @@ -653,6 +655,122 @@ class GoogleCloudDocumentaiV1beta1Document(typing_extensions.TypedDict, total=Fa textStyles: _list[GoogleCloudDocumentaiV1beta1DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + pageSpan: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + tableBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + textBlock: GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1beta1DocumentEntity( typing_extensions.TypedDict, total=False @@ -1095,7 +1213,9 @@ class GoogleCloudDocumentaiV1beta2BoundingPoly( @typing.type_check_only class GoogleCloudDocumentaiV1beta2Document(typing_extensions.TypedDict, total=False): + chunkedDocument: GoogleCloudDocumentaiV1beta2DocumentChunkedDocument content: str + documentLayout: GoogleCloudDocumentaiV1beta2DocumentDocumentLayout entities: _list[GoogleCloudDocumentaiV1beta2DocumentEntity] entityRelations: _list[GoogleCloudDocumentaiV1beta2DocumentEntityRelation] error: GoogleRpcStatus @@ -1109,6 +1229,122 @@ class GoogleCloudDocumentaiV1beta2Document(typing_extensions.TypedDict, total=Fa textStyles: _list[GoogleCloudDocumentaiV1beta2DocumentStyle] uri: str +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocument( + typing_extensions.TypedDict, total=False +): + chunks: _list[GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk( + typing_extensions.TypedDict, total=False +): + chunkId: str + content: str + pageFooters: _list[ + GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter + ] + pageHeaders: _list[ + GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader + ] + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + sourceBlockIds: _list[str] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader( + typing_extensions.TypedDict, total=False +): + pageSpan: GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan + text: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayout( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock( + typing_extensions.TypedDict, total=False +): + blockId: str + listBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock + pageSpan: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan + tableBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock + textBlock: GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock( + typing_extensions.TypedDict, total=False +): + listEntries: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry + ] + type: str + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan( + typing_extensions.TypedDict, total=False +): + pageEnd: int + pageStart: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock( + typing_extensions.TypedDict, total=False +): + bodyRows: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + caption: str + headerRows: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + colSpan: int + rowSpan: int + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow( + typing_extensions.TypedDict, total=False +): + cells: _list[ + GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock( + typing_extensions.TypedDict, total=False +): + blocks: _list[GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock] + text: str + type: str + @typing.type_check_only class GoogleCloudDocumentaiV1beta2DocumentEntity( typing_extensions.TypedDict, total=False @@ -1680,6 +1916,8 @@ class GoogleCloudDocumentaiV1beta3Dataset(typing_extensions.TypedDict, total=Fal documentWarehouseConfig: GoogleCloudDocumentaiV1beta3DatasetDocumentWarehouseConfig gcsManagedConfig: GoogleCloudDocumentaiV1beta3DatasetGCSManagedConfig name: str + satisfiesPzi: bool + satisfiesPzs: bool spannerIndexingConfig: GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "UNINITIALIZED", "INITIALIZING", "INITIALIZED" @@ -2747,6 +2985,8 @@ class GoogleCloudDocumentaiV1beta3Processor(typing_extensions.TypedDict, total=F name: str processEndpoint: str processorVersionAliases: _list[GoogleCloudDocumentaiV1beta3ProcessorVersionAlias] + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "ENABLED", @@ -2794,6 +3034,7 @@ class GoogleCloudDocumentaiV1beta3ProcessorVersion( deprecationInfo: GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo displayName: str documentSchema: GoogleCloudDocumentaiV1beta3DocumentSchema + genAiModelInfo: GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo googleManaged: bool kmsKeyName: str kmsKeyVersionName: str @@ -2802,6 +3043,8 @@ class GoogleCloudDocumentaiV1beta3ProcessorVersion( "MODEL_TYPE_UNSPECIFIED", "MODEL_TYPE_GENERATIVE", "MODEL_TYPE_CUSTOM" ] name: str + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "DEPLOYED", @@ -2828,6 +3071,31 @@ class GoogleCloudDocumentaiV1beta3ProcessorVersionDeprecationInfo( deprecationTime: str replacementProcessorVersion: str +@typing.type_check_only +class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfo( + typing_extensions.TypedDict, total=False +): + customGenAiModelInfo: ( + GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo + ) + foundationGenAiModelInfo: GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoCustomGenAiModelInfo( + typing_extensions.TypedDict, total=False +): + baseProcessorVersionId: str + customModelType: typing_extensions.Literal[ + "CUSTOM_MODEL_TYPE_UNSPECIFIED", "VERSIONED_FOUNDATION", "FINE_TUNED" + ] + +@typing.type_check_only +class GoogleCloudDocumentaiV1beta3ProcessorVersionGenAiModelInfoFoundationGenAiModelInfo( + typing_extensions.TypedDict, total=False +): + finetuningAllowed: bool + minTrainLabeledDocuments: int + @typing.type_check_only class GoogleCloudDocumentaiV1beta3PropertyMetadata( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/domains/v1/resources.pyi b/googleapiclient-stubs/_apis/domains/v1/resources.pyi index 3a70af3e..330f5a3d 100644 --- a/googleapiclient-stubs/_apis/domains/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/domains/v1/resources.pyi @@ -87,6 +87,13 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): body: ImportDomainRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def initiatePushTransfer( + self, + *, + registration: str, + body: InitiatePushTransferRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def list( self, *, @@ -116,6 +123,13 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): body: RegisterDomainRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def renewDomain( + self, + *, + registration: str, + body: RenewDomainRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def resetAuthorizationCode( self, *, @@ -126,6 +140,22 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): def retrieveAuthorizationCode( self, *, registration: str, **kwargs: typing.Any ) -> AuthorizationCodeHttpRequest: ... + def retrieveGoogleDomainsDnsRecords( + self, + *, + registration: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> RetrieveGoogleDomainsDnsRecordsResponseHttpRequest: ... + def retrieveGoogleDomainsDnsRecords_next( + self, + previous_request: RetrieveGoogleDomainsDnsRecordsResponseHttpRequest, + previous_response: RetrieveGoogleDomainsDnsRecordsResponse, + ) -> RetrieveGoogleDomainsDnsRecordsResponseHttpRequest | None: ... + def retrieveGoogleDomainsForwardingConfig( + self, *, registration: str, **kwargs: typing.Any + ) -> RetrieveGoogleDomainsForwardingConfigResponseHttpRequest: ... def retrieveImportableDomains( self, *, @@ -270,6 +300,26 @@ class RegistrationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Registration: ... +@typing.type_check_only +class RetrieveGoogleDomainsDnsRecordsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RetrieveGoogleDomainsDnsRecordsResponse: ... + +@typing.type_check_only +class RetrieveGoogleDomainsForwardingConfigResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RetrieveGoogleDomainsForwardingConfigResponse: ... + @typing.type_check_only class RetrieveImportableDomainsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/domains/v1/schemas.pyi b/googleapiclient-stubs/_apis/domains/v1/schemas.pyi index 17d46b7c..306f91d5 100644 --- a/googleapiclient-stubs/_apis/domains/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/domains/v1/schemas.pyi @@ -77,6 +77,7 @@ class DnsSettings(typing_extensions.TypedDict, total=False): customDns: CustomDns glueRecords: _list[GlueRecord] googleDomainsDns: GoogleDomainsDns + googleDomainsRedirectsDataAvailable: bool @typing.type_check_only class Domain(typing_extensions.TypedDict, total=False): @@ -91,6 +92,17 @@ class Domain(typing_extensions.TypedDict, total=False): ] yearlyPrice: Money +@typing.type_check_only +class DomainForwarding(typing_extensions.TypedDict, total=False): + pathForwarding: bool + pemCertificate: str + redirectType: typing_extensions.Literal[ + "REDIRECT_TYPE_UNSPECIFIED", "TEMPORARY", "PERMANENT" + ] + sslEnabled: bool + subdomain: str + targetUri: str + @typing.type_check_only class DsRecord(typing_extensions.TypedDict, total=False): algorithm: typing_extensions.Literal[ @@ -119,6 +131,11 @@ class DsRecord(typing_extensions.TypedDict, total=False): ] keyTag: int +@typing.type_check_only +class EmailForwarding(typing_extensions.TypedDict, total=False): + alias: str + targetEmailAddress: str + @typing.type_check_only class ExportRegistrationRequest(typing_extensions.TypedDict, total=False): ... @@ -129,6 +146,18 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class GeoPolicy(typing_extensions.TypedDict, total=False): + enableFencing: bool + item: _list[GeoPolicyItem] + +@typing.type_check_only +class GeoPolicyItem(typing_extensions.TypedDict, total=False): + healthCheckedTargets: HealthCheckTargets + location: str + rrdata: _list[str] + signatureRrdata: _list[str] + @typing.type_check_only class GlueRecord(typing_extensions.TypedDict, total=False): hostName: str @@ -143,11 +172,20 @@ class GoogleDomainsDns(typing_extensions.TypedDict, total=False): ] nameServers: _list[str] +@typing.type_check_only +class HealthCheckTargets(typing_extensions.TypedDict, total=False): + externalEndpoints: _list[str] + internalLoadBalancer: _list[LoadBalancerTarget] + @typing.type_check_only class ImportDomainRequest(typing_extensions.TypedDict, total=False): domainName: str labels: dict[str, typing.Any] +@typing.type_check_only +class InitiatePushTransferRequest(typing_extensions.TypedDict, total=False): + tag: str + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] @@ -163,6 +201,18 @@ class ListRegistrationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str registrations: _list[Registration] +@typing.type_check_only +class LoadBalancerTarget(typing_extensions.TypedDict, total=False): + ipAddress: str + ipProtocol: typing_extensions.Literal["UNDEFINED", "TCP", "UDP"] + loadBalancerType: typing_extensions.Literal[ + "NONE", "GLOBAL_L7ILB", "REGIONAL_L4ILB", "REGIONAL_L7ILB" + ] + networkUrl: str + port: str + project: str + region: str + @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): displayName: str @@ -173,6 +223,9 @@ class Location(typing_extensions.TypedDict, total=False): @typing.type_check_only class ManagementSettings(typing_extensions.TypedDict, total=False): + effectiveTransferLockState: typing_extensions.Literal[ + "TRANSFER_LOCK_STATE_UNSPECIFIED", "UNLOCKED", "LOCKED" + ] preferredRenewalMethod: typing_extensions.Literal[ "RENEWAL_METHOD_UNSPECIFIED", "AUTOMATIC_RENEWAL", @@ -233,6 +286,21 @@ class PostalAddress(typing_extensions.TypedDict, total=False): sortingCode: str sublocality: str +@typing.type_check_only +class PrimaryBackupPolicy(typing_extensions.TypedDict, total=False): + backupGeoTargets: GeoPolicy + primaryTargets: HealthCheckTargets + trickleTraffic: float + +@typing.type_check_only +class RRSetRoutingPolicy(typing_extensions.TypedDict, total=False): + geo: GeoPolicy + geoPolicy: GeoPolicy + healthCheck: str + primaryBackup: PrimaryBackupPolicy + wrr: WrrPolicy + wrrPolicy: WrrPolicy + @typing.type_check_only class RegisterDomainRequest(typing_extensions.TypedDict, total=False): contactNotices: _list[ @@ -272,6 +340,13 @@ class Registration(typing_extensions.TypedDict, total=False): createTime: str dnsSettings: DnsSettings domainName: str + domainProperties: _list[ + typing_extensions.Literal[ + "DOMAIN_PROPERTY_UNSPECIFIED", + "TRANSFER_LOCK_UNSUPPORTED_BY_REGISTRY", + "REQUIRE_PUSH_TRANSFER", + ] + ] expireTime: str issues: _list[ typing_extensions.Literal[ @@ -279,6 +354,7 @@ class Registration(typing_extensions.TypedDict, total=False): "CONTACT_SUPPORT", "UNVERIFIED_EMAIL", "PROBLEM_WITH_BILLING", + "DNS_NOT_ACTIVATED", ] ] labels: dict[str, typing.Any] @@ -325,9 +401,35 @@ class Registration(typing_extensions.TypedDict, total=False): "TRANSFER_ALREADY_PENDING", ] +@typing.type_check_only +class RenewDomainRequest(typing_extensions.TypedDict, total=False): + validateOnly: bool + yearlyPrice: Money + @typing.type_check_only class ResetAuthorizationCodeRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class ResourceRecordSet(typing_extensions.TypedDict, total=False): + name: str + routingPolicy: RRSetRoutingPolicy + rrdata: _list[str] + signatureRrdata: _list[str] + ttl: int + type: str + +@typing.type_check_only +class RetrieveGoogleDomainsDnsRecordsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + rrset: _list[ResourceRecordSet] + +@typing.type_check_only +class RetrieveGoogleDomainsForwardingConfigResponse( + typing_extensions.TypedDict, total=False +): + domainForwardings: _list[DomainForwarding] + emailForwardings: _list[EmailForwarding] + @typing.type_check_only class RetrieveImportableDomainsResponse(typing_extensions.TypedDict, total=False): domains: _list[Domain] @@ -394,3 +496,14 @@ class TransferParameters(typing_extensions.TypedDict, total=False): "TRANSFER_LOCK_STATE_UNSPECIFIED", "UNLOCKED", "LOCKED" ] yearlyPrice: Money + +@typing.type_check_only +class WrrPolicy(typing_extensions.TypedDict, total=False): + item: _list[WrrPolicyItem] + +@typing.type_check_only +class WrrPolicyItem(typing_extensions.TypedDict, total=False): + healthCheckedTargets: HealthCheckTargets + rrdata: _list[str] + signatureRrdata: _list[str] + weight: float diff --git a/googleapiclient-stubs/_apis/domains/v1alpha2/resources.pyi b/googleapiclient-stubs/_apis/domains/v1alpha2/resources.pyi index 3a70af3e..330f5a3d 100644 --- a/googleapiclient-stubs/_apis/domains/v1alpha2/resources.pyi +++ b/googleapiclient-stubs/_apis/domains/v1alpha2/resources.pyi @@ -87,6 +87,13 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): body: ImportDomainRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def initiatePushTransfer( + self, + *, + registration: str, + body: InitiatePushTransferRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def list( self, *, @@ -116,6 +123,13 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): body: RegisterDomainRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def renewDomain( + self, + *, + registration: str, + body: RenewDomainRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def resetAuthorizationCode( self, *, @@ -126,6 +140,22 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): def retrieveAuthorizationCode( self, *, registration: str, **kwargs: typing.Any ) -> AuthorizationCodeHttpRequest: ... + def retrieveGoogleDomainsDnsRecords( + self, + *, + registration: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> RetrieveGoogleDomainsDnsRecordsResponseHttpRequest: ... + def retrieveGoogleDomainsDnsRecords_next( + self, + previous_request: RetrieveGoogleDomainsDnsRecordsResponseHttpRequest, + previous_response: RetrieveGoogleDomainsDnsRecordsResponse, + ) -> RetrieveGoogleDomainsDnsRecordsResponseHttpRequest | None: ... + def retrieveGoogleDomainsForwardingConfig( + self, *, registration: str, **kwargs: typing.Any + ) -> RetrieveGoogleDomainsForwardingConfigResponseHttpRequest: ... def retrieveImportableDomains( self, *, @@ -270,6 +300,26 @@ class RegistrationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Registration: ... +@typing.type_check_only +class RetrieveGoogleDomainsDnsRecordsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RetrieveGoogleDomainsDnsRecordsResponse: ... + +@typing.type_check_only +class RetrieveGoogleDomainsForwardingConfigResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RetrieveGoogleDomainsForwardingConfigResponse: ... + @typing.type_check_only class RetrieveImportableDomainsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/domains/v1alpha2/schemas.pyi b/googleapiclient-stubs/_apis/domains/v1alpha2/schemas.pyi index dc731e65..8ab5e925 100644 --- a/googleapiclient-stubs/_apis/domains/v1alpha2/schemas.pyi +++ b/googleapiclient-stubs/_apis/domains/v1alpha2/schemas.pyi @@ -77,6 +77,7 @@ class DnsSettings(typing_extensions.TypedDict, total=False): customDns: CustomDns glueRecords: _list[GlueRecord] googleDomainsDns: GoogleDomainsDns + googleDomainsRedirectsDataAvailable: bool @typing.type_check_only class Domain(typing_extensions.TypedDict, total=False): @@ -91,6 +92,17 @@ class Domain(typing_extensions.TypedDict, total=False): ] yearlyPrice: Money +@typing.type_check_only +class DomainForwarding(typing_extensions.TypedDict, total=False): + pathForwarding: bool + pemCertificate: str + redirectType: typing_extensions.Literal[ + "REDIRECT_TYPE_UNSPECIFIED", "TEMPORARY", "PERMANENT" + ] + sslEnabled: bool + subdomain: str + targetUri: str + @typing.type_check_only class DsRecord(typing_extensions.TypedDict, total=False): algorithm: typing_extensions.Literal[ @@ -119,6 +131,11 @@ class DsRecord(typing_extensions.TypedDict, total=False): ] keyTag: int +@typing.type_check_only +class EmailForwarding(typing_extensions.TypedDict, total=False): + alias: str + targetEmailAddress: str + @typing.type_check_only class ExportRegistrationRequest(typing_extensions.TypedDict, total=False): ... @@ -129,6 +146,18 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class GeoPolicy(typing_extensions.TypedDict, total=False): + enableFencing: bool + item: _list[GeoPolicyItem] + +@typing.type_check_only +class GeoPolicyItem(typing_extensions.TypedDict, total=False): + healthCheckedTargets: HealthCheckTargets + location: str + rrdata: _list[str] + signatureRrdata: _list[str] + @typing.type_check_only class GlueRecord(typing_extensions.TypedDict, total=False): hostName: str @@ -143,11 +172,20 @@ class GoogleDomainsDns(typing_extensions.TypedDict, total=False): ] nameServers: _list[str] +@typing.type_check_only +class HealthCheckTargets(typing_extensions.TypedDict, total=False): + externalEndpoints: _list[str] + internalLoadBalancer: _list[LoadBalancerTarget] + @typing.type_check_only class ImportDomainRequest(typing_extensions.TypedDict, total=False): domainName: str labels: dict[str, typing.Any] +@typing.type_check_only +class InitiatePushTransferRequest(typing_extensions.TypedDict, total=False): + tag: str + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] @@ -163,6 +201,18 @@ class ListRegistrationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str registrations: _list[Registration] +@typing.type_check_only +class LoadBalancerTarget(typing_extensions.TypedDict, total=False): + ipAddress: str + ipProtocol: typing_extensions.Literal["UNDEFINED", "TCP", "UDP"] + loadBalancerType: typing_extensions.Literal[ + "NONE", "GLOBAL_L7ILB", "REGIONAL_L4ILB", "REGIONAL_L7ILB" + ] + networkUrl: str + port: str + project: str + region: str + @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): displayName: str @@ -173,6 +223,9 @@ class Location(typing_extensions.TypedDict, total=False): @typing.type_check_only class ManagementSettings(typing_extensions.TypedDict, total=False): + effectiveTransferLockState: typing_extensions.Literal[ + "TRANSFER_LOCK_STATE_UNSPECIFIED", "UNLOCKED", "LOCKED" + ] preferredRenewalMethod: typing_extensions.Literal[ "RENEWAL_METHOD_UNSPECIFIED", "AUTOMATIC_RENEWAL", @@ -233,6 +286,21 @@ class PostalAddress(typing_extensions.TypedDict, total=False): sortingCode: str sublocality: str +@typing.type_check_only +class PrimaryBackupPolicy(typing_extensions.TypedDict, total=False): + backupGeoTargets: GeoPolicy + primaryTargets: HealthCheckTargets + trickleTraffic: float + +@typing.type_check_only +class RRSetRoutingPolicy(typing_extensions.TypedDict, total=False): + geo: GeoPolicy + geoPolicy: GeoPolicy + healthCheck: str + primaryBackup: PrimaryBackupPolicy + wrr: WrrPolicy + wrrPolicy: WrrPolicy + @typing.type_check_only class RegisterDomainRequest(typing_extensions.TypedDict, total=False): contactNotices: _list[ @@ -272,6 +340,13 @@ class Registration(typing_extensions.TypedDict, total=False): createTime: str dnsSettings: DnsSettings domainName: str + domainProperties: _list[ + typing_extensions.Literal[ + "DOMAIN_PROPERTY_UNSPECIFIED", + "TRANSFER_LOCK_UNSUPPORTED_BY_REGISTRY", + "REQUIRE_PUSH_TRANSFER", + ] + ] expireTime: str issues: _list[ typing_extensions.Literal[ @@ -279,6 +354,7 @@ class Registration(typing_extensions.TypedDict, total=False): "CONTACT_SUPPORT", "UNVERIFIED_EMAIL", "PROBLEM_WITH_BILLING", + "DNS_NOT_ACTIVATED", ] ] labels: dict[str, typing.Any] @@ -328,9 +404,35 @@ class Registration(typing_extensions.TypedDict, total=False): "TRANSFER_ALREADY_PENDING", ] +@typing.type_check_only +class RenewDomainRequest(typing_extensions.TypedDict, total=False): + validateOnly: bool + yearlyPrice: Money + @typing.type_check_only class ResetAuthorizationCodeRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class ResourceRecordSet(typing_extensions.TypedDict, total=False): + name: str + routingPolicy: RRSetRoutingPolicy + rrdata: _list[str] + signatureRrdata: _list[str] + ttl: int + type: str + +@typing.type_check_only +class RetrieveGoogleDomainsDnsRecordsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + rrset: _list[ResourceRecordSet] + +@typing.type_check_only +class RetrieveGoogleDomainsForwardingConfigResponse( + typing_extensions.TypedDict, total=False +): + domainForwardings: _list[DomainForwarding] + emailForwardings: _list[EmailForwarding] + @typing.type_check_only class RetrieveImportableDomainsResponse(typing_extensions.TypedDict, total=False): domains: _list[Domain] @@ -397,3 +499,14 @@ class TransferParameters(typing_extensions.TypedDict, total=False): "TRANSFER_LOCK_STATE_UNSPECIFIED", "UNLOCKED", "LOCKED" ] yearlyPrice: Money + +@typing.type_check_only +class WrrPolicy(typing_extensions.TypedDict, total=False): + item: _list[WrrPolicyItem] + +@typing.type_check_only +class WrrPolicyItem(typing_extensions.TypedDict, total=False): + healthCheckedTargets: HealthCheckTargets + rrdata: _list[str] + signatureRrdata: _list[str] + weight: float diff --git a/googleapiclient-stubs/_apis/domains/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/domains/v1beta1/resources.pyi index 3a70af3e..330f5a3d 100644 --- a/googleapiclient-stubs/_apis/domains/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/domains/v1beta1/resources.pyi @@ -87,6 +87,13 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): body: ImportDomainRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def initiatePushTransfer( + self, + *, + registration: str, + body: InitiatePushTransferRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def list( self, *, @@ -116,6 +123,13 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): body: RegisterDomainRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def renewDomain( + self, + *, + registration: str, + body: RenewDomainRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def resetAuthorizationCode( self, *, @@ -126,6 +140,22 @@ class CloudDomainsResource(googleapiclient.discovery.Resource): def retrieveAuthorizationCode( self, *, registration: str, **kwargs: typing.Any ) -> AuthorizationCodeHttpRequest: ... + def retrieveGoogleDomainsDnsRecords( + self, + *, + registration: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> RetrieveGoogleDomainsDnsRecordsResponseHttpRequest: ... + def retrieveGoogleDomainsDnsRecords_next( + self, + previous_request: RetrieveGoogleDomainsDnsRecordsResponseHttpRequest, + previous_response: RetrieveGoogleDomainsDnsRecordsResponse, + ) -> RetrieveGoogleDomainsDnsRecordsResponseHttpRequest | None: ... + def retrieveGoogleDomainsForwardingConfig( + self, *, registration: str, **kwargs: typing.Any + ) -> RetrieveGoogleDomainsForwardingConfigResponseHttpRequest: ... def retrieveImportableDomains( self, *, @@ -270,6 +300,26 @@ class RegistrationHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Registration: ... +@typing.type_check_only +class RetrieveGoogleDomainsDnsRecordsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RetrieveGoogleDomainsDnsRecordsResponse: ... + +@typing.type_check_only +class RetrieveGoogleDomainsForwardingConfigResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RetrieveGoogleDomainsForwardingConfigResponse: ... + @typing.type_check_only class RetrieveImportableDomainsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/domains/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/domains/v1beta1/schemas.pyi index 17d46b7c..306f91d5 100644 --- a/googleapiclient-stubs/_apis/domains/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/domains/v1beta1/schemas.pyi @@ -77,6 +77,7 @@ class DnsSettings(typing_extensions.TypedDict, total=False): customDns: CustomDns glueRecords: _list[GlueRecord] googleDomainsDns: GoogleDomainsDns + googleDomainsRedirectsDataAvailable: bool @typing.type_check_only class Domain(typing_extensions.TypedDict, total=False): @@ -91,6 +92,17 @@ class Domain(typing_extensions.TypedDict, total=False): ] yearlyPrice: Money +@typing.type_check_only +class DomainForwarding(typing_extensions.TypedDict, total=False): + pathForwarding: bool + pemCertificate: str + redirectType: typing_extensions.Literal[ + "REDIRECT_TYPE_UNSPECIFIED", "TEMPORARY", "PERMANENT" + ] + sslEnabled: bool + subdomain: str + targetUri: str + @typing.type_check_only class DsRecord(typing_extensions.TypedDict, total=False): algorithm: typing_extensions.Literal[ @@ -119,6 +131,11 @@ class DsRecord(typing_extensions.TypedDict, total=False): ] keyTag: int +@typing.type_check_only +class EmailForwarding(typing_extensions.TypedDict, total=False): + alias: str + targetEmailAddress: str + @typing.type_check_only class ExportRegistrationRequest(typing_extensions.TypedDict, total=False): ... @@ -129,6 +146,18 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class GeoPolicy(typing_extensions.TypedDict, total=False): + enableFencing: bool + item: _list[GeoPolicyItem] + +@typing.type_check_only +class GeoPolicyItem(typing_extensions.TypedDict, total=False): + healthCheckedTargets: HealthCheckTargets + location: str + rrdata: _list[str] + signatureRrdata: _list[str] + @typing.type_check_only class GlueRecord(typing_extensions.TypedDict, total=False): hostName: str @@ -143,11 +172,20 @@ class GoogleDomainsDns(typing_extensions.TypedDict, total=False): ] nameServers: _list[str] +@typing.type_check_only +class HealthCheckTargets(typing_extensions.TypedDict, total=False): + externalEndpoints: _list[str] + internalLoadBalancer: _list[LoadBalancerTarget] + @typing.type_check_only class ImportDomainRequest(typing_extensions.TypedDict, total=False): domainName: str labels: dict[str, typing.Any] +@typing.type_check_only +class InitiatePushTransferRequest(typing_extensions.TypedDict, total=False): + tag: str + @typing.type_check_only class ListLocationsResponse(typing_extensions.TypedDict, total=False): locations: _list[Location] @@ -163,6 +201,18 @@ class ListRegistrationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str registrations: _list[Registration] +@typing.type_check_only +class LoadBalancerTarget(typing_extensions.TypedDict, total=False): + ipAddress: str + ipProtocol: typing_extensions.Literal["UNDEFINED", "TCP", "UDP"] + loadBalancerType: typing_extensions.Literal[ + "NONE", "GLOBAL_L7ILB", "REGIONAL_L4ILB", "REGIONAL_L7ILB" + ] + networkUrl: str + port: str + project: str + region: str + @typing.type_check_only class Location(typing_extensions.TypedDict, total=False): displayName: str @@ -173,6 +223,9 @@ class Location(typing_extensions.TypedDict, total=False): @typing.type_check_only class ManagementSettings(typing_extensions.TypedDict, total=False): + effectiveTransferLockState: typing_extensions.Literal[ + "TRANSFER_LOCK_STATE_UNSPECIFIED", "UNLOCKED", "LOCKED" + ] preferredRenewalMethod: typing_extensions.Literal[ "RENEWAL_METHOD_UNSPECIFIED", "AUTOMATIC_RENEWAL", @@ -233,6 +286,21 @@ class PostalAddress(typing_extensions.TypedDict, total=False): sortingCode: str sublocality: str +@typing.type_check_only +class PrimaryBackupPolicy(typing_extensions.TypedDict, total=False): + backupGeoTargets: GeoPolicy + primaryTargets: HealthCheckTargets + trickleTraffic: float + +@typing.type_check_only +class RRSetRoutingPolicy(typing_extensions.TypedDict, total=False): + geo: GeoPolicy + geoPolicy: GeoPolicy + healthCheck: str + primaryBackup: PrimaryBackupPolicy + wrr: WrrPolicy + wrrPolicy: WrrPolicy + @typing.type_check_only class RegisterDomainRequest(typing_extensions.TypedDict, total=False): contactNotices: _list[ @@ -272,6 +340,13 @@ class Registration(typing_extensions.TypedDict, total=False): createTime: str dnsSettings: DnsSettings domainName: str + domainProperties: _list[ + typing_extensions.Literal[ + "DOMAIN_PROPERTY_UNSPECIFIED", + "TRANSFER_LOCK_UNSUPPORTED_BY_REGISTRY", + "REQUIRE_PUSH_TRANSFER", + ] + ] expireTime: str issues: _list[ typing_extensions.Literal[ @@ -279,6 +354,7 @@ class Registration(typing_extensions.TypedDict, total=False): "CONTACT_SUPPORT", "UNVERIFIED_EMAIL", "PROBLEM_WITH_BILLING", + "DNS_NOT_ACTIVATED", ] ] labels: dict[str, typing.Any] @@ -325,9 +401,35 @@ class Registration(typing_extensions.TypedDict, total=False): "TRANSFER_ALREADY_PENDING", ] +@typing.type_check_only +class RenewDomainRequest(typing_extensions.TypedDict, total=False): + validateOnly: bool + yearlyPrice: Money + @typing.type_check_only class ResetAuthorizationCodeRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class ResourceRecordSet(typing_extensions.TypedDict, total=False): + name: str + routingPolicy: RRSetRoutingPolicy + rrdata: _list[str] + signatureRrdata: _list[str] + ttl: int + type: str + +@typing.type_check_only +class RetrieveGoogleDomainsDnsRecordsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + rrset: _list[ResourceRecordSet] + +@typing.type_check_only +class RetrieveGoogleDomainsForwardingConfigResponse( + typing_extensions.TypedDict, total=False +): + domainForwardings: _list[DomainForwarding] + emailForwardings: _list[EmailForwarding] + @typing.type_check_only class RetrieveImportableDomainsResponse(typing_extensions.TypedDict, total=False): domains: _list[Domain] @@ -394,3 +496,14 @@ class TransferParameters(typing_extensions.TypedDict, total=False): "TRANSFER_LOCK_STATE_UNSPECIFIED", "UNLOCKED", "LOCKED" ] yearlyPrice: Money + +@typing.type_check_only +class WrrPolicy(typing_extensions.TypedDict, total=False): + item: _list[WrrPolicyItem] + +@typing.type_check_only +class WrrPolicyItem(typing_extensions.TypedDict, total=False): + healthCheckedTargets: HealthCheckTargets + rrdata: _list[str] + signatureRrdata: _list[str] + weight: float diff --git a/googleapiclient-stubs/_apis/doubleclickbidmanager/v2/schemas.pyi b/googleapiclient-stubs/_apis/doubleclickbidmanager/v2/schemas.pyi index 565fd537..1192023e 100644 --- a/googleapiclient-stubs/_apis/doubleclickbidmanager/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/doubleclickbidmanager/v2/schemas.pyi @@ -72,6 +72,8 @@ class Parameters(typing_extensions.TypedDict, total=False): "YOUTUBE_PROGRAMMATIC_GUARANTEED", "REACH", "UNIQUE_REACH_AUDIENCE", + "FULL_PATH", + "PATH_ATTRIBUTION", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/fcmdata/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/fcmdata/v1beta1/schemas.pyi index d81437ee..8c1f62bf 100644 --- a/googleapiclient-stubs/_apis/fcmdata/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/fcmdata/v1beta1/schemas.pyi @@ -51,10 +51,12 @@ class GoogleFirebaseFcmDataV1beta1MessageInsightPercents( class GoogleFirebaseFcmDataV1beta1MessageOutcomePercents( typing_extensions.TypedDict, total=False ): + collapsed: float delivered: float droppedAppForceStopped: float droppedDeviceInactive: float droppedTooManyPendingMessages: float + droppedTtlExpired: float pending: float @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/file/v1/resources.pyi b/googleapiclient-stubs/_apis/file/v1/resources.pyi index c47de435..e38e3ab5 100644 --- a/googleapiclient-stubs/_apis/file/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/file/v1/resources.pyi @@ -136,6 +136,13 @@ class CloudFilestoreResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def promoteReplica( + self, + *, + name: str, + body: PromoteReplicaRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def restore( self, *, diff --git a/googleapiclient-stubs/_apis/file/v1/schemas.pyi b/googleapiclient-stubs/_apis/file/v1/schemas.pyi index 413cec93..e70b32ab 100644 --- a/googleapiclient-stubs/_apis/file/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/file/v1/schemas.pyi @@ -32,6 +32,7 @@ class Backup(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "CREATING", "FINALIZING", "READY", "DELETING", "INVALID" ] storageBytes: str + tags: dict[str, typing.Any] @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -171,6 +172,7 @@ class Instance(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str networks: _list[NetworkConfig] + replication: Replication satisfiesPzi: bool satisfiesPzs: bool state: typing_extensions.Literal[ @@ -185,11 +187,13 @@ class Instance(typing_extensions.TypedDict, total=False): "SUSPENDING", "RESUMING", "REVERTING", + "PROMOTING", ] statusMessage: str suspensionReasons: _list[ typing_extensions.Literal["SUSPENSION_REASON_UNSPECIFIED", "KMS_KEY_ISSUE"] ] + tags: dict[str, typing.Any] tier: typing_extensions.Literal[ "TIER_UNSPECIFIED", "STANDARD", @@ -292,6 +296,27 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PromoteReplicaRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ReplicaConfig(typing_extensions.TypedDict, total=False): + lastActiveSyncTime: str + peerInstance: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "READY", "REMOVING", "FAILED" + ] + stateReasons: _list[ + typing_extensions.Literal[ + "STATE_REASON_UNSPECIFIED", "PEER_INSTANCE_UNREACHABLE" + ] + ] + +@typing.type_check_only +class Replication(typing_extensions.TypedDict, total=False): + replicas: _list[ReplicaConfig] + role: typing_extensions.Literal["ROLE_UNSPECIFIED", "ACTIVE", "STANDBY"] + @typing.type_check_only class RestoreInstanceRequest(typing_extensions.TypedDict, total=False): fileShare: str @@ -326,6 +351,7 @@ class Snapshot(typing_extensions.TypedDict, total=False): state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", "READY", "DELETING" ] + tags: dict[str, typing.Any] @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi index e5935ced..401d4238 100644 --- a/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/file/v1beta1/schemas.pyi @@ -10,6 +10,9 @@ class Backup(typing_extensions.TypedDict, total=False): createTime: str description: str downloadBytes: str + fileSystemProtocol: typing_extensions.Literal[ + "FILE_PROTOCOL_UNSPECIFIED", "NFS_V3", "NFS_V4_1" + ] kmsKeyName: str labels: dict[str, typing.Any] name: str @@ -32,6 +35,7 @@ class Backup(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "CREATING", "FINALIZING", "READY", "DELETING", "INVALID" ] storageBytes: str + tags: dict[str, typing.Any] @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -184,6 +188,7 @@ class Instance(typing_extensions.TypedDict, total=False): protocol: typing_extensions.Literal[ "FILE_PROTOCOL_UNSPECIFIED", "NFS_V3", "NFS_V4_1" ] + replication: Replication satisfiesPzi: bool satisfiesPzs: bool state: typing_extensions.Literal[ @@ -204,6 +209,7 @@ class Instance(typing_extensions.TypedDict, total=False): suspensionReasons: _list[ typing_extensions.Literal["SUSPENSION_REASON_UNSPECIFIED", "KMS_KEY_ISSUE"] ] + tags: dict[str, typing.Any] tier: typing_extensions.Literal[ "TIER_UNSPECIFIED", "STANDARD", @@ -325,6 +331,24 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): @typing.type_check_only class PromoteReplicaRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class ReplicaConfig(typing_extensions.TypedDict, total=False): + lastActiveSyncTime: str + peerInstance: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "CREATING", "READY", "REMOVING", "FAILED" + ] + stateReasons: _list[ + typing_extensions.Literal[ + "STATE_REASON_UNSPECIFIED", "PEER_INSTANCE_UNREACHABLE" + ] + ] + +@typing.type_check_only +class Replication(typing_extensions.TypedDict, total=False): + replicas: _list[ReplicaConfig] + role: typing_extensions.Literal["ROLE_UNSPECIFIED", "ACTIVE", "STANDBY"] + @typing.type_check_only class RestoreInstanceRequest(typing_extensions.TypedDict, total=False): fileShare: str @@ -374,6 +398,7 @@ class Snapshot(typing_extensions.TypedDict, total=False): state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", "READY", "DELETING" ] + tags: dict[str, typing.Any] @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/firebaseappcheck/v1/resources.pyi b/googleapiclient-stubs/_apis/firebaseappcheck/v1/resources.pyi index 80d6130a..6df3db52 100644 --- a/googleapiclient-stubs/_apis/firebaseappcheck/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/firebaseappcheck/v1/resources.pyi @@ -19,6 +19,39 @@ class FirebaseappcheckResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleFirebaseAppcheckV1PublicJwkSetHttpRequest: ... + @typing.type_check_only + class OauthClientsResource(googleapiclient.discovery.Resource): + def exchangeAppAttestAssertion( + self, + *, + app: str, + body: GoogleFirebaseAppcheckV1ExchangeAppAttestAssertionRequest = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppcheckV1AppCheckTokenHttpRequest: ... + def exchangeAppAttestAttestation( + self, + *, + app: str, + body: GoogleFirebaseAppcheckV1ExchangeAppAttestAttestationRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleFirebaseAppcheckV1ExchangeAppAttestAttestationResponseHttpRequest + ): ... + def exchangeDebugToken( + self, + *, + app: str, + body: GoogleFirebaseAppcheckV1ExchangeDebugTokenRequest = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppcheckV1AppCheckTokenHttpRequest: ... + def generateAppAttestChallenge( + self, + *, + app: str, + body: GoogleFirebaseAppcheckV1GenerateAppAttestChallengeRequest = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppcheckV1GenerateAppAttestChallengeResponseHttpRequest: ... + @typing.type_check_only class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -285,6 +318,56 @@ class FirebaseappcheckResource(googleapiclient.discovery.Resource): @typing.type_check_only class ServicesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ResourcePoliciesResource(googleapiclient.discovery.Resource): + def batchUpdate( + self, + *, + parent: str, + body: GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponseHttpRequest: ... + def create( + self, + *, + parent: str, + body: GoogleFirebaseAppcheckV1ResourcePolicy = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppcheckV1ResourcePolicyHttpRequest: ... + def delete( + self, *, name: str, etag: str = ..., **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleFirebaseAppcheckV1ResourcePolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleFirebaseAppcheckV1ListResourcePoliciesResponseHttpRequest + ): ... + def list_next( + self, + previous_request: GoogleFirebaseAppcheckV1ListResourcePoliciesResponseHttpRequest, + previous_response: GoogleFirebaseAppcheckV1ListResourcePoliciesResponse, + ) -> ( + GoogleFirebaseAppcheckV1ListResourcePoliciesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleFirebaseAppcheckV1ResourcePolicy = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleFirebaseAppcheckV1ResourcePolicyHttpRequest: ... + def batchUpdate( self, *, @@ -316,6 +399,7 @@ class FirebaseappcheckResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> GoogleFirebaseAppcheckV1ServiceHttpRequest: ... + def resourcePolicies(self) -> ResourcePoliciesResource: ... def apps(self) -> AppsResource: ... def services(self) -> ServicesResource: ... @@ -333,6 +417,7 @@ class FirebaseappcheckResource(googleapiclient.discovery.Resource): | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... def jwks(self) -> JwksResource: ... + def oauthClients(self) -> OauthClientsResource: ... def projects(self) -> ProjectsResource: ... @typing.type_check_only @@ -415,6 +500,16 @@ class GoogleFirebaseAppcheckV1BatchGetSafetyNetConfigsResponseHttpRequest( num_retries: int = 0, ) -> GoogleFirebaseAppcheckV1BatchGetSafetyNetConfigsResponse: ... +@typing.type_check_only +class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse: ... + @typing.type_check_only class GoogleFirebaseAppcheckV1BatchUpdateServicesResponseHttpRequest( googleapiclient.http.HttpRequest @@ -483,6 +578,16 @@ class GoogleFirebaseAppcheckV1ListDebugTokensResponseHttpRequest( num_retries: int = 0, ) -> GoogleFirebaseAppcheckV1ListDebugTokensResponse: ... +@typing.type_check_only +class GoogleFirebaseAppcheckV1ListResourcePoliciesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleFirebaseAppcheckV1ListResourcePoliciesResponse: ... + @typing.type_check_only class GoogleFirebaseAppcheckV1ListServicesResponseHttpRequest( googleapiclient.http.HttpRequest @@ -531,6 +636,16 @@ class GoogleFirebaseAppcheckV1RecaptchaV3ConfigHttpRequest( num_retries: int = 0, ) -> GoogleFirebaseAppcheckV1RecaptchaV3Config: ... +@typing.type_check_only +class GoogleFirebaseAppcheckV1ResourcePolicyHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleFirebaseAppcheckV1ResourcePolicy: ... + @typing.type_check_only class GoogleFirebaseAppcheckV1SafetyNetConfigHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/firebaseappcheck/v1/schemas.pyi b/googleapiclient-stubs/_apis/firebaseappcheck/v1/schemas.pyi index d974acff..82683ddb 100644 --- a/googleapiclient-stubs/_apis/firebaseappcheck/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/firebaseappcheck/v1/schemas.pyi @@ -50,6 +50,19 @@ class GoogleFirebaseAppcheckV1BatchGetSafetyNetConfigsResponse( ): configs: _list[GoogleFirebaseAppcheckV1SafetyNetConfig] +@typing.type_check_only +class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest( + typing_extensions.TypedDict, total=False +): + requests: _list[GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest] + updateMask: str + +@typing.type_check_only +class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse( + typing_extensions.TypedDict, total=False +): + resourcePolicies: _list[GoogleFirebaseAppcheckV1ResourcePolicy] + @typing.type_check_only class GoogleFirebaseAppcheckV1BatchUpdateServicesRequest( typing_extensions.TypedDict, total=False @@ -184,6 +197,13 @@ class GoogleFirebaseAppcheckV1ListDebugTokensResponse( debugTokens: _list[GoogleFirebaseAppcheckV1DebugToken] nextPageToken: str +@typing.type_check_only +class GoogleFirebaseAppcheckV1ListResourcePoliciesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + resourcePolicies: _list[GoogleFirebaseAppcheckV1ResourcePolicy] + @typing.type_check_only class GoogleFirebaseAppcheckV1ListServicesResponse( typing_extensions.TypedDict, total=False @@ -228,6 +248,14 @@ class GoogleFirebaseAppcheckV1RecaptchaV3Config( siteSecretSet: bool tokenTtl: str +@typing.type_check_only +class GoogleFirebaseAppcheckV1ResourcePolicy(typing_extensions.TypedDict, total=False): + enforcementMode: typing_extensions.Literal["OFF", "UNENFORCED", "ENFORCED"] + etag: str + name: str + targetResource: str + updateTime: str + @typing.type_check_only class GoogleFirebaseAppcheckV1SafetyNetConfig(typing_extensions.TypedDict, total=False): name: str @@ -238,6 +266,13 @@ class GoogleFirebaseAppcheckV1Service(typing_extensions.TypedDict, total=False): enforcementMode: typing_extensions.Literal["OFF", "UNENFORCED", "ENFORCED"] name: str +@typing.type_check_only +class GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest( + typing_extensions.TypedDict, total=False +): + resourcePolicy: GoogleFirebaseAppcheckV1ResourcePolicy + updateMask: str + @typing.type_check_only class GoogleFirebaseAppcheckV1UpdateServiceRequest( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi index 30efb5c8..a586ff1e 100644 --- a/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/firebaseappdistribution/v1alpha/schemas.pyi @@ -4,6 +4,11 @@ import typing_extensions _list = list +@typing.type_check_only +class AndroidxCrawlerOutputPoint(typing_extensions.TypedDict, total=False): + xCoordinate: int + yCoordinate: int + @typing.type_check_only class GoogleFirebaseAppdistroV1Release(typing_extensions.TypedDict, total=False): binaryDownloadUri: str @@ -44,6 +49,29 @@ class GoogleFirebaseAppdistroV1alphaAabCertificate( certificateHashSha1: str certificateHashSha256: str +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaAiInstructions( + typing_extensions.TypedDict, total=False +): + appDescription: str + steps: _list[GoogleFirebaseAppdistroV1alphaAiStep] + +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaAiStep(typing_extensions.TypedDict, total=False): + assertion: str + goal: str + +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaAiStepResult( + typing_extensions.TypedDict, total=False +): + assertionDetails: GoogleFirebaseAppdistroV1alphaAssertionDetails + goalDetails: GoogleFirebaseAppdistroV1alphaGoalDetails + state: typing_extensions.Literal[ + "STEP_STATE_UNSPECIFIED", "IN_PROGRESS", "PASSED", "FAILED" + ] + step: GoogleFirebaseAppdistroV1alphaAiStep + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaApp(typing_extensions.TypedDict, total=False): aabCertificate: GoogleFirebaseAppdistroV1alphaAabCertificate @@ -67,6 +95,14 @@ class GoogleFirebaseAppdistroV1alphaAppCrash(typing_extensions.TypedDict, total= message: str stackTrace: str +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaAssertionDetails( + typing_extensions.TypedDict, total=False +): + explanation: str + result: bool + screenshot: GoogleFirebaseAppdistroV1alphaScreenshot + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaCreateReleaseNotesRequest( typing_extensions.TypedDict, total=False @@ -78,10 +114,18 @@ class GoogleFirebaseAppdistroV1alphaCreateReleaseNotesResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaDeviceAction( + typing_extensions.TypedDict, total=False +): + description: str + deviceInteractions: _list[GoogleFirebaseAppdistroV1alphaDeviceInteraction] + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaDeviceExecution( typing_extensions.TypedDict, total=False ): + aiStepResults: _list[GoogleFirebaseAppdistroV1alphaAiStepResult] appCrash: GoogleFirebaseAppdistroV1alphaAppCrash crawlGraphUri: str device: GoogleFirebaseAppdistroV1alphaTestDevice @@ -91,6 +135,7 @@ class GoogleFirebaseAppdistroV1alphaDeviceExecution( "NOT_INSTALLED", "UNABLE_TO_CRAWL", "DEVICE_OUT_OF_MEMORY", + "FAILED_AI_STEP", ] inconclusiveReason: typing_extensions.Literal[ "INCONCLUSIVE_REASON_UNSPECIFIED", @@ -112,6 +157,29 @@ class GoogleFirebaseAppdistroV1alphaDeviceExecution( ] videoUri: str +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaDeviceInteraction( + typing_extensions.TypedDict, total=False +): + screenshot: GoogleFirebaseAppdistroV1alphaScreenshot + swipe: GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe + tap: AndroidxCrawlerOutputPoint + textInput: str + wait: GoogleFirebaseAppdistroV1alphaDeviceInteractionWait + +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaDeviceInteractionSwipe( + typing_extensions.TypedDict, total=False +): + end: AndroidxCrawlerOutputPoint + start: AndroidxCrawlerOutputPoint + +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaDeviceInteractionWait( + typing_extensions.TypedDict, total=False +): + duration: str + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaEnableAccessOnReleaseRequest( typing_extensions.TypedDict, total=False @@ -172,6 +240,20 @@ class GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse( "STATUS_UNSPECIFIED", "IN_PROGRESS", "ALREADY_UPLOADED", "SUCCESS", "ERROR" ] +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaGoalAction( + typing_extensions.TypedDict, total=False +): + deviceAction: GoogleFirebaseAppdistroV1alphaDeviceAction + explanation: str + terminalAction: GoogleFirebaseAppdistroV1alphaTerminalAction + +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaGoalDetails( + typing_extensions.TypedDict, total=False +): + goalActions: _list[GoogleFirebaseAppdistroV1alphaGoalAction] + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaJwt(typing_extensions.TypedDict, total=False): token: str @@ -228,6 +310,7 @@ class GoogleFirebaseAppdistroV1alphaReleaseNotes( class GoogleFirebaseAppdistroV1alphaReleaseTest( typing_extensions.TypedDict, total=False ): + aiInstructions: GoogleFirebaseAppdistroV1alphaAiInstructions createTime: str deviceExecutions: _list[GoogleFirebaseAppdistroV1alphaDeviceExecution] loginCredential: GoogleFirebaseAppdistroV1alphaLoginCredential @@ -237,6 +320,7 @@ class GoogleFirebaseAppdistroV1alphaReleaseTest( class GoogleFirebaseAppdistroV1alphaRoboCrawler( typing_extensions.TypedDict, total=False ): + aiInstructions: GoogleFirebaseAppdistroV1alphaAiInstructions loginCredential: GoogleFirebaseAppdistroV1alphaLoginCredential @typing.type_check_only @@ -246,6 +330,23 @@ class GoogleFirebaseAppdistroV1alphaRoboStats(typing_extensions.TypedDict, total distinctVisitedScreens: int mainActivityCrawlTimedOut: bool +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaScreenshot( + typing_extensions.TypedDict, total=False +): + height: int + uri: str + width: int + +@typing.type_check_only +class GoogleFirebaseAppdistroV1alphaTerminalAction( + typing_extensions.TypedDict, total=False +): + reason: typing_extensions.Literal[ + "REASON_UNSPECIFIED", "GOAL_IMPOSSIBLE", "GOAL_COMPLETE" + ] + screenshot: GoogleFirebaseAppdistroV1alphaScreenshot + @typing.type_check_only class GoogleFirebaseAppdistroV1alphaTestConfig( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/firebaseml/v2beta/resources.pyi b/googleapiclient-stubs/_apis/firebaseml/v2beta/resources.pyi index 12636d4e..f15cad92 100644 --- a/googleapiclient-stubs/_apis/firebaseml/v2beta/resources.pyi +++ b/googleapiclient-stubs/_apis/firebaseml/v2beta/resources.pyi @@ -25,23 +25,27 @@ class FirebaseMLResource(googleapiclient.discovery.Resource): self, *, endpoint: str, - body: CountTokensRequest = ..., + body: GoogleCloudAiplatformV1beta1CountTokensRequest = ..., **kwargs: typing.Any, - ) -> CountTokensResponseHttpRequest: ... + ) -> GoogleCloudAiplatformV1beta1CountTokensResponseHttpRequest: ... def generateContent( self, *, model: str, - body: GenerateContentRequest = ..., + body: GoogleCloudAiplatformV1beta1GenerateContentRequest = ..., **kwargs: typing.Any, - ) -> GenerateContentResponseHttpRequest: ... + ) -> ( + GoogleCloudAiplatformV1beta1GenerateContentResponseHttpRequest + ): ... def streamGenerateContent( self, *, model: str, - body: GenerateContentRequest = ..., + body: GoogleCloudAiplatformV1beta1GenerateContentRequest = ..., **kwargs: typing.Any, - ) -> GenerateContentResponseHttpRequest: ... + ) -> ( + GoogleCloudAiplatformV1beta1GenerateContentResponseHttpRequest + ): ... def models(self) -> ModelsResource: ... @@ -64,17 +68,21 @@ class FirebaseMLResource(googleapiclient.discovery.Resource): def projects(self) -> ProjectsResource: ... @typing.type_check_only -class CountTokensResponseHttpRequest(googleapiclient.http.HttpRequest): +class GoogleCloudAiplatformV1beta1CountTokensResponseHttpRequest( + googleapiclient.http.HttpRequest +): def execute( self, http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, - ) -> CountTokensResponse: ... + ) -> GoogleCloudAiplatformV1beta1CountTokensResponse: ... @typing.type_check_only -class GenerateContentResponseHttpRequest(googleapiclient.http.HttpRequest): +class GoogleCloudAiplatformV1beta1GenerateContentResponseHttpRequest( + googleapiclient.http.HttpRequest +): def execute( self, http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, - ) -> GenerateContentResponse: ... + ) -> GoogleCloudAiplatformV1beta1GenerateContentResponse: ... diff --git a/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi index 8e248220..d6164c88 100644 --- a/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/firebaseml/v2beta/schemas.pyi @@ -5,14 +5,21 @@ import typing_extensions _list = list @typing.type_check_only -class Blob(typing_extensions.TypedDict, total=False): +class Date(typing_extensions.TypedDict, total=False): + day: int + month: int + year: int + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1Blob(typing_extensions.TypedDict, total=False): data: str mimeType: str @typing.type_check_only -class Candidate(typing_extensions.TypedDict, total=False): - citationMetadata: CitationMetadata - content: Content +class GoogleCloudAiplatformV1beta1Candidate(typing_extensions.TypedDict, total=False): + avgLogprobs: float + citationMetadata: GoogleCloudAiplatformV1beta1CitationMetadata + content: GoogleCloudAiplatformV1beta1Content finishMessage: str finishReason: typing_extensions.Literal[ "FINISH_REASON_UNSPECIFIED", @@ -24,13 +31,14 @@ class Candidate(typing_extensions.TypedDict, total=False): "BLOCKLIST", "PROHIBITED_CONTENT", "SPII", + "MALFORMED_FUNCTION_CALL", ] - groundingMetadata: GroundingMetadata + groundingMetadata: GoogleCloudAiplatformV1beta1GroundingMetadata index: int - safetyRatings: _list[SafetyRating] + safetyRatings: _list[GoogleCloudAiplatformV1beta1SafetyRating] @typing.type_check_only -class Citation(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1Citation(typing_extensions.TypedDict, total=False): endIndex: int license: str publicationDate: Date @@ -39,137 +47,213 @@ class Citation(typing_extensions.TypedDict, total=False): uri: str @typing.type_check_only -class CitationMetadata(typing_extensions.TypedDict, total=False): - citations: _list[Citation] +class GoogleCloudAiplatformV1beta1CitationMetadata( + typing_extensions.TypedDict, total=False +): + citations: _list[GoogleCloudAiplatformV1beta1Citation] @typing.type_check_only -class Content(typing_extensions.TypedDict, total=False): - parts: _list[Part] +class GoogleCloudAiplatformV1beta1Content(typing_extensions.TypedDict, total=False): + parts: _list[GoogleCloudAiplatformV1beta1Part] role: str @typing.type_check_only -class CountTokensRequest(typing_extensions.TypedDict, total=False): - contents: _list[Content] +class GoogleCloudAiplatformV1beta1CountTokensRequest( + typing_extensions.TypedDict, total=False +): + contents: _list[GoogleCloudAiplatformV1beta1Content] instances: _list[typing.Any] model: str + systemInstruction: GoogleCloudAiplatformV1beta1Content + tools: _list[GoogleCloudAiplatformV1beta1Tool] @typing.type_check_only -class CountTokensResponse(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1CountTokensResponse( + typing_extensions.TypedDict, total=False +): totalBillableCharacters: int totalTokens: int @typing.type_check_only -class Date(typing_extensions.TypedDict, total=False): - day: int - month: int - year: int - -@typing.type_check_only -class FileData(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1FileData(typing_extensions.TypedDict, total=False): fileUri: str mimeType: str @typing.type_check_only -class FunctionCall(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1FunctionCall( + typing_extensions.TypedDict, total=False +): args: dict[str, typing.Any] name: str @typing.type_check_only -class FunctionCallingConfig(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1FunctionCallingConfig( + typing_extensions.TypedDict, total=False +): allowedFunctionNames: _list[str] mode: typing_extensions.Literal["MODE_UNSPECIFIED", "AUTO", "ANY", "NONE"] @typing.type_check_only -class FunctionDeclaration(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1FunctionDeclaration( + typing_extensions.TypedDict, total=False +): description: str name: str - parameters: Schema - response: Schema + parameters: GoogleCloudAiplatformV1beta1Schema + response: GoogleCloudAiplatformV1beta1Schema @typing.type_check_only -class FunctionResponse(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1FunctionResponse( + typing_extensions.TypedDict, total=False +): name: str response: dict[str, typing.Any] @typing.type_check_only -class GenerateContentRequest(typing_extensions.TypedDict, total=False): - contents: _list[Content] - generationConfig: GenerationConfig - safetySettings: _list[SafetySetting] - systemInstruction: Content - toolConfig: ToolConfig - tools: _list[Tool] +class GoogleCloudAiplatformV1beta1GenerateContentRequest( + typing_extensions.TypedDict, total=False +): + cachedContent: str + contents: _list[GoogleCloudAiplatformV1beta1Content] + generationConfig: GoogleCloudAiplatformV1beta1GenerationConfig + safetySettings: _list[GoogleCloudAiplatformV1beta1SafetySetting] + systemInstruction: GoogleCloudAiplatformV1beta1Content + toolConfig: GoogleCloudAiplatformV1beta1ToolConfig + tools: _list[GoogleCloudAiplatformV1beta1Tool] @typing.type_check_only -class GenerateContentResponse(typing_extensions.TypedDict, total=False): - candidates: _list[Candidate] - promptFeedback: PromptFeedback - usageMetadata: UsageMetadata +class GoogleCloudAiplatformV1beta1GenerateContentResponse( + typing_extensions.TypedDict, total=False +): + candidates: _list[GoogleCloudAiplatformV1beta1Candidate] + promptFeedback: GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback + usageMetadata: GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata @typing.type_check_only -class GenerationConfig(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback( + typing_extensions.TypedDict, total=False +): + blockReason: typing_extensions.Literal[ + "BLOCKED_REASON_UNSPECIFIED", + "SAFETY", + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT", + ] + blockReasonMessage: str + safetyRatings: _list[GoogleCloudAiplatformV1beta1SafetyRating] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata( + typing_extensions.TypedDict, total=False +): + candidatesTokenCount: int + promptTokenCount: int + totalTokenCount: int + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GenerationConfig( + typing_extensions.TypedDict, total=False +): candidateCount: int frequencyPenalty: float maxOutputTokens: int presencePenalty: float responseMimeType: str + responseSchema: GoogleCloudAiplatformV1beta1Schema + routingConfig: GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig + seed: int stopSequences: _list[str] temperature: float topK: float topP: float @typing.type_check_only -class GoogleSearchRetrieval(typing_extensions.TypedDict, total=False): ... +class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig( + typing_extensions.TypedDict, total=False +): + autoMode: GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode + manualMode: ( + GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode + ) @typing.type_check_only -class GroundingMetadata(typing_extensions.TypedDict, total=False): - retrievalQueries: _list[str] - searchEntryPoint: SearchEntryPoint - webSearchQueries: _list[str] +class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigAutoRoutingMode( + typing_extensions.TypedDict, total=False +): + modelRoutingPreference: typing_extensions.Literal[ + "UNKNOWN", "PRIORITIZE_QUALITY", "BALANCED", "PRIORITIZE_COST" + ] @typing.type_check_only -class ModelOperationMetadata(typing_extensions.TypedDict, total=False): - basicOperationStatus: typing_extensions.Literal[ - "BASIC_OPERATION_STATUS_UNSPECIFIED", - "BASIC_OPERATION_STATUS_UPLOADING", - "BASIC_OPERATION_STATUS_VERIFYING", - ] - name: str +class GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMode( + typing_extensions.TypedDict, total=False +): + modelName: str @typing.type_check_only -class Part(typing_extensions.TypedDict, total=False): - fileData: FileData - functionCall: FunctionCall - functionResponse: FunctionResponse - inlineData: Blob - text: str - videoMetadata: VideoMetadata +class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval( + typing_extensions.TypedDict, total=False +): ... @typing.type_check_only -class PromptFeedback(typing_extensions.TypedDict, total=False): - blockReason: typing_extensions.Literal[ - "BLOCKED_REASON_UNSPECIFIED", - "SAFETY", - "OTHER", - "BLOCKLIST", - "PROHIBITED_CONTENT", - ] - blockReasonMessage: str - safetyRatings: _list[SafetyRating] +class GoogleCloudAiplatformV1beta1GroundingChunk( + typing_extensions.TypedDict, total=False +): + retrievedContext: GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext + web: GoogleCloudAiplatformV1beta1GroundingChunkWeb @typing.type_check_only -class RagResource(typing_extensions.TypedDict, total=False): - ragCorpus: str - ragFileIds: _list[str] +class GoogleCloudAiplatformV1beta1GroundingChunkRetrievedContext( + typing_extensions.TypedDict, total=False +): + title: str + uri: str @typing.type_check_only -class Retrieval(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1GroundingChunkWeb( + typing_extensions.TypedDict, total=False +): + title: str + uri: str + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GroundingMetadata( + typing_extensions.TypedDict, total=False +): + groundingChunks: _list[GoogleCloudAiplatformV1beta1GroundingChunk] + groundingSupports: _list[GoogleCloudAiplatformV1beta1GroundingSupport] + retrievalQueries: _list[str] + searchEntryPoint: GoogleCloudAiplatformV1beta1SearchEntryPoint + webSearchQueries: _list[str] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1GroundingSupport( + typing_extensions.TypedDict, total=False +): + confidenceScores: _list[float] + groundingChunkIndices: _list[int] + segment: GoogleCloudAiplatformV1beta1Segment + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1Part(typing_extensions.TypedDict, total=False): + fileData: GoogleCloudAiplatformV1beta1FileData + functionCall: GoogleCloudAiplatformV1beta1FunctionCall + functionResponse: GoogleCloudAiplatformV1beta1FunctionResponse + inlineData: GoogleCloudAiplatformV1beta1Blob + text: str + videoMetadata: GoogleCloudAiplatformV1beta1VideoMetadata + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1Retrieval(typing_extensions.TypedDict, total=False): disableAttribution: bool - vertexAiSearch: VertexAISearch - vertexRagStore: VertexRagStore + vertexAiSearch: GoogleCloudAiplatformV1beta1VertexAISearch + vertexRagStore: GoogleCloudAiplatformV1beta1VertexRagStore @typing.type_check_only -class SafetyRating(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1SafetyRating( + typing_extensions.TypedDict, total=False +): blocked: bool category: typing_extensions.Literal[ "HARM_CATEGORY_UNSPECIFIED", @@ -192,7 +276,9 @@ class SafetyRating(typing_extensions.TypedDict, total=False): severityScore: float @typing.type_check_only -class SafetySetting(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1SafetySetting( + typing_extensions.TypedDict, total=False +): category: typing_extensions.Literal[ "HARM_CATEGORY_UNSPECIFIED", "HARM_CATEGORY_HATE_SPEECH", @@ -212,13 +298,13 @@ class SafetySetting(typing_extensions.TypedDict, total=False): ] @typing.type_check_only -class Schema(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1Schema(typing_extensions.TypedDict, total=False): default: typing.Any description: str enum: _list[str] example: typing.Any format: str - items: Schema + items: GoogleCloudAiplatformV1beta1Schema maxItems: str maxLength: str maxProperties: str @@ -237,38 +323,63 @@ class Schema(typing_extensions.TypedDict, total=False): ] @typing.type_check_only -class SearchEntryPoint(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1SearchEntryPoint( + typing_extensions.TypedDict, total=False +): renderedContent: str sdkBlob: str @typing.type_check_only -class Tool(typing_extensions.TypedDict, total=False): - functionDeclarations: _list[FunctionDeclaration] - googleSearchRetrieval: GoogleSearchRetrieval - retrieval: Retrieval +class GoogleCloudAiplatformV1beta1Segment(typing_extensions.TypedDict, total=False): + endIndex: int + partIndex: int + startIndex: int + text: str @typing.type_check_only -class ToolConfig(typing_extensions.TypedDict, total=False): - functionCallingConfig: FunctionCallingConfig +class GoogleCloudAiplatformV1beta1Tool(typing_extensions.TypedDict, total=False): + functionDeclarations: _list[GoogleCloudAiplatformV1beta1FunctionDeclaration] + googleSearchRetrieval: GoogleCloudAiplatformV1beta1GoogleSearchRetrieval + retrieval: GoogleCloudAiplatformV1beta1Retrieval @typing.type_check_only -class UsageMetadata(typing_extensions.TypedDict, total=False): - candidatesTokenCount: int - promptTokenCount: int - totalTokenCount: int +class GoogleCloudAiplatformV1beta1ToolConfig(typing_extensions.TypedDict, total=False): + functionCallingConfig: GoogleCloudAiplatformV1beta1FunctionCallingConfig @typing.type_check_only -class VertexAISearch(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1VertexAISearch( + typing_extensions.TypedDict, total=False +): datastore: str @typing.type_check_only -class VertexRagStore(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1VertexRagStore( + typing_extensions.TypedDict, total=False +): ragCorpora: _list[str] - ragResources: _list[RagResource] + ragResources: _list[GoogleCloudAiplatformV1beta1VertexRagStoreRagResource] similarityTopK: int vectorDistanceThreshold: float @typing.type_check_only -class VideoMetadata(typing_extensions.TypedDict, total=False): +class GoogleCloudAiplatformV1beta1VertexRagStoreRagResource( + typing_extensions.TypedDict, total=False +): + ragCorpus: str + ragFileIds: _list[str] + +@typing.type_check_only +class GoogleCloudAiplatformV1beta1VideoMetadata( + typing_extensions.TypedDict, total=False +): endOffset: str startOffset: str + +@typing.type_check_only +class ModelOperationMetadata(typing_extensions.TypedDict, total=False): + basicOperationStatus: typing_extensions.Literal[ + "BASIC_OPERATION_STATUS_UNSPECIFIED", + "BASIC_OPERATION_STATUS_UPLOADING", + "BASIC_OPERATION_STATUS_VERIFYING", + ] + name: str diff --git a/googleapiclient-stubs/_apis/firestore/v1/resources.pyi b/googleapiclient-stubs/_apis/firestore/v1/resources.pyi index 50091e7c..c4817da8 100644 --- a/googleapiclient-stubs/_apis/firestore/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/firestore/v1/resources.pyi @@ -305,6 +305,13 @@ class FirestoreResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def bulkDeleteDocuments( + self, + *, + name: str, + body: GoogleFirestoreAdminV1BulkDeleteDocumentsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def create( self, *, diff --git a/googleapiclient-stubs/_apis/firestore/v1/schemas.pyi b/googleapiclient-stubs/_apis/firestore/v1/schemas.pyi index e1177539..932d00ac 100644 --- a/googleapiclient-stubs/_apis/firestore/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/firestore/v1/schemas.pyi @@ -228,6 +228,35 @@ class GoogleFirestoreAdminV1BackupSchedule(typing_extensions.TypedDict, total=Fa updateTime: str weeklyRecurrence: GoogleFirestoreAdminV1WeeklyRecurrence +@typing.type_check_only +class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata( + typing_extensions.TypedDict, total=False +): + collectionIds: _list[str] + endTime: str + namespaceIds: _list[str] + operationState: typing_extensions.Literal[ + "OPERATION_STATE_UNSPECIFIED", + "INITIALIZING", + "PROCESSING", + "CANCELLING", + "FINALIZING", + "SUCCESSFUL", + "FAILED", + "CANCELLED", + ] + progressBytes: GoogleFirestoreAdminV1Progress + progressDocuments: GoogleFirestoreAdminV1Progress + snapshotTime: str + startTime: str + +@typing.type_check_only +class GoogleFirestoreAdminV1BulkDeleteDocumentsRequest( + typing_extensions.TypedDict, total=False +): + collectionIds: _list[str] + namespaceIds: _list[str] + @typing.type_check_only class GoogleFirestoreAdminV1CmekConfig(typing_extensions.TypedDict, total=False): activeKeyVersion: _list[str] @@ -239,8 +268,15 @@ class GoogleFirestoreAdminV1CreateDatabaseMetadata( ): ... @typing.type_check_only -class GoogleFirestoreAdminV1DailyRecurrence(typing_extensions.TypedDict, total=False): - time: TimeOfDay +class GoogleFirestoreAdminV1CustomerManagedEncryptionOptions( + typing_extensions.TypedDict, total=False +): + kmsKeyName: str + +@typing.type_check_only +class GoogleFirestoreAdminV1DailyRecurrence( + typing_extensions.TypedDict, total=False +): ... @typing.type_check_only class GoogleFirestoreAdminV1Database(typing_extensions.TypedDict, total=False): @@ -279,16 +315,17 @@ class GoogleFirestoreAdminV1Database(typing_extensions.TypedDict, total=False): updateTime: str versionRetentionPeriod: str -@typing.type_check_only -class GoogleFirestoreAdminV1DatabaseSnapshot(typing_extensions.TypedDict, total=False): - database: str - snapshotTime: str - @typing.type_check_only class GoogleFirestoreAdminV1DeleteDatabaseMetadata( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleFirestoreAdminV1EncryptionConfig(typing_extensions.TypedDict, total=False): + customerManagedEncryption: GoogleFirestoreAdminV1CustomerManagedEncryptionOptions + googleDefaultEncryption: GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions + useSourceEncryption: GoogleFirestoreAdminV1SourceEncryptionOptions + @typing.type_check_only class GoogleFirestoreAdminV1ExportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -358,6 +395,11 @@ class GoogleFirestoreAdminV1FieldOperationMetadata( @typing.type_check_only class GoogleFirestoreAdminV1FlatIndex(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class GoogleFirestoreAdminV1GoogleDefaultEncryptionOptions( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleFirestoreAdminV1ImportDocumentsMetadata( typing_extensions.TypedDict, total=False @@ -512,7 +554,12 @@ class GoogleFirestoreAdminV1RestoreDatabaseRequest( ): backup: str databaseId: str - databaseSnapshot: GoogleFirestoreAdminV1DatabaseSnapshot + encryptionConfig: GoogleFirestoreAdminV1EncryptionConfig + +@typing.type_check_only +class GoogleFirestoreAdminV1SourceEncryptionOptions( + typing_extensions.TypedDict, total=False +): ... @typing.type_check_only class GoogleFirestoreAdminV1Stats(typing_extensions.TypedDict, total=False): @@ -552,7 +599,6 @@ class GoogleFirestoreAdminV1WeeklyRecurrence(typing_extensions.TypedDict, total= "SATURDAY", "SUNDAY", ] - time: TimeOfDay @typing.type_check_only class GoogleLongrunningCancelOperationRequest( @@ -760,13 +806,6 @@ class TargetChange(typing_extensions.TypedDict, total=False): ] targetIds: _list[int] -@typing.type_check_only -class TimeOfDay(typing_extensions.TypedDict, total=False): - hours: int - minutes: int - nanos: int - seconds: int - @typing.type_check_only class TransactionOptions(typing_extensions.TypedDict, total=False): readOnly: ReadOnly diff --git a/googleapiclient-stubs/_apis/firestore/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/firestore/v1beta1/schemas.pyi index 5922f585..c6873977 100644 --- a/googleapiclient-stubs/_apis/firestore/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/firestore/v1beta1/schemas.pyi @@ -207,6 +207,28 @@ class FindNearest(typing_extensions.TypedDict, total=False): queryVector: Value vectorField: FieldReference +@typing.type_check_only +class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata( + typing_extensions.TypedDict, total=False +): + collectionIds: _list[str] + endTime: str + namespaceIds: _list[str] + operationState: typing_extensions.Literal[ + "OPERATION_STATE_UNSPECIFIED", + "INITIALIZING", + "PROCESSING", + "CANCELLING", + "FINALIZING", + "SUCCESSFUL", + "FAILED", + "CANCELLED", + ] + progressBytes: GoogleFirestoreAdminV1Progress + progressDocuments: GoogleFirestoreAdminV1Progress + snapshotTime: str + startTime: str + @typing.type_check_only class GoogleFirestoreAdminV1CreateDatabaseMetadata( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/firestore/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/firestore/v1beta2/schemas.pyi index 43743b14..2456071f 100644 --- a/googleapiclient-stubs/_apis/firestore/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/firestore/v1beta2/schemas.pyi @@ -7,6 +7,28 @@ _list = list @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class GoogleFirestoreAdminV1BulkDeleteDocumentsMetadata( + typing_extensions.TypedDict, total=False +): + collectionIds: _list[str] + endTime: str + namespaceIds: _list[str] + operationState: typing_extensions.Literal[ + "OPERATION_STATE_UNSPECIFIED", + "INITIALIZING", + "PROCESSING", + "CANCELLING", + "FINALIZING", + "SUCCESSFUL", + "FAILED", + "CANCELLED", + ] + progressBytes: GoogleFirestoreAdminV1Progress + progressDocuments: GoogleFirestoreAdminV1Progress + snapshotTime: str + startTime: str + @typing.type_check_only class GoogleFirestoreAdminV1CreateDatabaseMetadata( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/games/v1/resources.pyi b/googleapiclient-stubs/_apis/games/v1/resources.pyi index b5680ebc..3b1bc11f 100644 --- a/googleapiclient-stubs/_apis/games/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/games/v1/resources.pyi @@ -13,6 +13,20 @@ _list = list @typing.type_check_only class GamesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccesstokensResource(googleapiclient.discovery.Resource): + def generatePlayGroupingApiToken( + self, *, packageName: str = ..., persona: str = ..., **kwargs: typing.Any + ) -> GeneratePlayGroupingApiTokenResponseHttpRequest: ... + def generateRecallPlayGroupingApiToken( + self, + *, + packageName: str = ..., + persona: str = ..., + recallSessionId: str = ..., + **kwargs: typing.Any, + ) -> GenerateRecallPlayGroupingApiTokenResponseHttpRequest: ... + @typing.type_check_only class AchievementDefinitionsResource(googleapiclient.discovery.Resource): def list( @@ -204,6 +218,13 @@ class GamesResource(googleapiclient.discovery.Resource): @typing.type_check_only class RecallResource(googleapiclient.discovery.Resource): + def gamesPlayerTokens( + self, + *, + sessionId: str, + applicationIds: str | _list[str] = ..., + **kwargs: typing.Any, + ) -> RetrieveGamesPlayerTokensResponseHttpRequest: ... def lastTokenFromAllDeveloperGames( self, *, sessionId: str, **kwargs: typing.Any ) -> RetrieveDeveloperGamesLastPlayerTokenResponseHttpRequest: ... @@ -334,6 +355,7 @@ class GamesResource(googleapiclient.discovery.Resource): ] | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... + def accesstokens(self) -> AccesstokensResource: ... def achievementDefinitions(self) -> AchievementDefinitionsResource: ... def achievements(self) -> AchievementsResource: ... def applications(self) -> ApplicationsResource: ... @@ -443,6 +465,24 @@ class EventUpdateResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> EventUpdateResponse: ... +@typing.type_check_only +class GeneratePlayGroupingApiTokenResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GeneratePlayGroupingApiTokenResponse: ... + +@typing.type_check_only +class GenerateRecallPlayGroupingApiTokenResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GenerateRecallPlayGroupingApiTokenResponse: ... + @typing.type_check_only class GetMultipleApplicationPlayerIdsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -567,6 +607,14 @@ class RetrieveDeveloperGamesLastPlayerTokenResponseHttpRequest( num_retries: int = 0, ) -> RetrieveDeveloperGamesLastPlayerTokenResponse: ... +@typing.type_check_only +class RetrieveGamesPlayerTokensResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RetrieveGamesPlayerTokensResponse: ... + @typing.type_check_only class RetrievePlayerTokensResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/games/v1/schemas.pyi b/googleapiclient-stubs/_apis/games/v1/schemas.pyi index 7ea483ed..9fa0c72a 100644 --- a/googleapiclient-stubs/_apis/games/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/games/v1/schemas.pyi @@ -199,6 +199,11 @@ class EventUpdateResponse(typing_extensions.TypedDict, total=False): kind: str playerEvents: _list[PlayerEvent] +@typing.type_check_only +class GamePlayerToken(typing_extensions.TypedDict, total=False): + applicationId: str + recallToken: RecallToken + @typing.type_check_only class GamesAchievementIncrement(typing_extensions.TypedDict, total=False): kind: str @@ -210,6 +215,16 @@ class GamesAchievementSetStepsAtLeast(typing_extensions.TypedDict, total=False): kind: str steps: int +@typing.type_check_only +class GeneratePlayGroupingApiTokenResponse(typing_extensions.TypedDict, total=False): + token: PlayGroupingApiToken + +@typing.type_check_only +class GenerateRecallPlayGroupingApiTokenResponse( + typing_extensions.TypedDict, total=False +): + token: PlayGroupingApiToken + @typing.type_check_only class GetMultipleApplicationPlayerIdsResponse(typing_extensions.TypedDict, total=False): playerIds: _list[ApplicationPlayerId] @@ -323,6 +338,10 @@ class MetagameConfig(typing_extensions.TypedDict, total=False): kind: str playerLevels: _list[PlayerLevel] +@typing.type_check_only +class PlayGroupingApiToken(typing_extensions.TypedDict, total=False): + tokenValue: str + @typing.type_check_only class Player(typing_extensions.TypedDict, total=False): avatarImageUrl: str @@ -465,7 +484,11 @@ class ResetPersonaResponse(typing_extensions.TypedDict, total=False): class RetrieveDeveloperGamesLastPlayerTokenResponse( typing_extensions.TypedDict, total=False ): - token: RecallToken + gamePlayerToken: GamePlayerToken + +@typing.type_check_only +class RetrieveGamesPlayerTokensResponse(typing_extensions.TypedDict, total=False): + gamePlayerTokens: _list[GamePlayerToken] @typing.type_check_only class RetrievePlayerTokensResponse(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi b/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi index ca5ca83a..6773f3b7 100644 --- a/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkebackup/v1/schemas.pyi @@ -33,6 +33,7 @@ class Backup(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] manual: bool name: str + permissiveMode: bool podCount: int resourceCount: int retainDays: int @@ -59,6 +60,7 @@ class BackupConfig(typing_extensions.TypedDict, total=False): encryptionKey: EncryptionKey includeSecrets: bool includeVolumeData: bool + permissiveMode: bool selectedApplications: NamespacedNames selectedNamespaces: Namespaces @@ -154,6 +156,11 @@ class Expr(typing_extensions.TypedDict, total=False): location: str title: str +@typing.type_check_only +class Filter(typing_extensions.TypedDict, total=False): + exclusionFilters: _list[ResourceSelector] + inclusionFilters: _list[ResourceSelector] + @typing.type_check_only class GetBackupIndexDownloadUrlResponse(typing_extensions.TypedDict, total=False): signedUrl: str @@ -187,6 +194,11 @@ class GroupKind(typing_extensions.TypedDict, total=False): resourceGroup: str resourceKind: str +@typing.type_check_only +class GroupKindDependency(typing_extensions.TypedDict, total=False): + requiring: GroupKind + satisfying: GroupKind + @typing.type_check_only class ListBackupPlansResponse(typing_extensions.TypedDict, total=False): backupPlans: _list[BackupPlan] @@ -269,6 +281,13 @@ class ResourceFilter(typing_extensions.TypedDict, total=False): jsonPath: str namespaces: _list[str] +@typing.type_check_only +class ResourceSelector(typing_extensions.TypedDict, total=False): + groupKind: GroupKind + labels: dict[str, typing.Any] + name: str + namespace: str + @typing.type_check_only class Restore(typing_extensions.TypedDict, total=False): backup: str @@ -277,6 +296,7 @@ class Restore(typing_extensions.TypedDict, total=False): createTime: str description: str etag: str + filter: Filter labels: dict[str, typing.Any] name: str resourcesExcludedCount: int @@ -294,6 +314,7 @@ class Restore(typing_extensions.TypedDict, total=False): stateReason: str uid: str updateTime: str + volumeDataRestorePolicyOverrides: _list[VolumeDataRestorePolicyOverride] volumesRestoredCount: int @typing.type_check_only @@ -310,8 +331,12 @@ class RestoreConfig(typing_extensions.TypedDict, total=False): "NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED", "DELETE_AND_RESTORE", "FAIL_ON_CONFLICT", + "MERGE_SKIP_ON_CONFLICT", + "MERGE_REPLACE_VOLUME_ON_CONFLICT", + "MERGE_REPLACE_ON_CONFLICT", ] noNamespaces: bool + restoreOrder: RestoreOrder selectedApplications: NamespacedNames selectedNamespaces: Namespaces substitutionRules: _list[SubstitutionRule] @@ -322,6 +347,11 @@ class RestoreConfig(typing_extensions.TypedDict, total=False): "REUSE_VOLUME_HANDLE_FROM_BACKUP", "NO_VOLUME_DATA_RESTORATION", ] + volumeDataRestorePolicyBindings: _list[VolumeDataRestorePolicyBinding] + +@typing.type_check_only +class RestoreOrder(typing_extensions.TypedDict, total=False): + groupKindDependencies: _list[GroupKindDependency] @typing.type_check_only class RestorePlan(typing_extensions.TypedDict, total=False): @@ -427,6 +457,28 @@ class VolumeBackup(typing_extensions.TypedDict, total=False): updateTime: str volumeBackupHandle: str +@typing.type_check_only +class VolumeDataRestorePolicyBinding(typing_extensions.TypedDict, total=False): + policy: typing_extensions.Literal[ + "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED", + "RESTORE_VOLUME_DATA_FROM_BACKUP", + "REUSE_VOLUME_HANDLE_FROM_BACKUP", + "NO_VOLUME_DATA_RESTORATION", + ] + volumeType: typing_extensions.Literal[ + "VOLUME_TYPE_UNSPECIFIED", "GCE_PERSISTENT_DISK" + ] + +@typing.type_check_only +class VolumeDataRestorePolicyOverride(typing_extensions.TypedDict, total=False): + policy: typing_extensions.Literal[ + "VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED", + "RESTORE_VOLUME_DATA_FROM_BACKUP", + "REUSE_VOLUME_HANDLE_FROM_BACKUP", + "NO_VOLUME_DATA_RESTORATION", + ] + selectedPvcs: NamespacedNames + @typing.type_check_only class VolumeRestore(typing_extensions.TypedDict, total=False): completeTime: str diff --git a/googleapiclient-stubs/_apis/gkehub/v1/resources.pyi b/googleapiclient-stubs/_apis/gkehub/v1/resources.pyi index b83910c2..e4592d60 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1/resources.pyi @@ -61,7 +61,11 @@ class GKEHubResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, ) -> FeatureHttpRequest: ... def getIamPolicy( self, @@ -78,6 +82,7 @@ class GKEHubResource(googleapiclient.discovery.Resource): orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., + returnPartialSuccess: bool = ..., **kwargs: typing.Any, ) -> ListFeaturesResponseHttpRequest: ... def list_next( @@ -183,6 +188,52 @@ class GKEHubResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class RbacrolebindingsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: RBACRoleBinding = ..., + rbacrolebindingId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def generateMembershipRBACRoleBindingYAML( + self, + *, + parent: str, + body: RBACRoleBinding = ..., + rbacrolebindingId: str = ..., + **kwargs: typing.Any, + ) -> GenerateMembershipRBACRoleBindingYAMLResponseHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> RBACRoleBindingHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMembershipRBACRoleBindingsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMembershipRBACRoleBindingsResponseHttpRequest, + previous_response: ListMembershipRBACRoleBindingsResponse, + ) -> ListMembershipRBACRoleBindingsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: RBACRoleBinding = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def create( self, *, @@ -261,6 +312,7 @@ class GKEHubResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> TestIamPermissionsResponseHttpRequest: ... def bindings(self) -> BindingsResource: ... + def rbacrolebindings(self) -> RbacrolebindingsResource: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -528,6 +580,16 @@ class GenerateConnectManifestResponseHttpRequest(googleapiclient.http.HttpReques num_retries: int = 0, ) -> GenerateConnectManifestResponse: ... +@typing.type_check_only +class GenerateMembershipRBACRoleBindingYAMLResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GenerateMembershipRBACRoleBindingYAMLResponse: ... + @typing.type_check_only class ListBoundMembershipsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -568,6 +630,16 @@ class ListMembershipBindingsResponseHttpRequest(googleapiclient.http.HttpRequest num_retries: int = 0, ) -> ListMembershipBindingsResponse: ... +@typing.type_check_only +class ListMembershipRBACRoleBindingsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMembershipRBACRoleBindingsResponse: ... + @typing.type_check_only class ListMembershipsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi index ae231422..59805a76 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1/schemas.pyi @@ -173,9 +173,15 @@ class ConfigManagementConfigSyncDeploymentState( monitor: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] + otelCollector: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] reconcilerManager: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] + resourceGroupControllerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] rootReconciler: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] @@ -221,7 +227,9 @@ class ConfigManagementConfigSyncVersion(typing_extensions.TypedDict, total=False gitSync: str importer: str monitor: str + otelCollector: str reconcilerManager: str + resourceGroupControllerManager: str rootReconciler: str syncer: str @@ -442,6 +450,7 @@ class Feature(typing_extensions.TypedDict, total=False): scopeStates: dict[str, typing.Any] spec: CommonFeatureSpec state: CommonFeatureState + unreachable: _list[str] updateTime: str @typing.type_check_only @@ -532,6 +541,12 @@ class FleetObservabilityRoutingConfig(typing_extensions.TypedDict, total=False): class GenerateConnectManifestResponse(typing_extensions.TypedDict, total=False): manifest: _list[ConnectAgentResource] +@typing.type_check_only +class GenerateMembershipRBACRoleBindingYAMLResponse( + typing_extensions.TypedDict, total=False +): + roleBindingsYaml: str + @typing.type_check_only class GkeCluster(typing_extensions.TypedDict, total=False): clusterMissing: bool @@ -690,6 +705,12 @@ class ListMembershipBindingsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str unreachable: _list[str] +@typing.type_check_only +class ListMembershipRBACRoleBindingsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + rbacrolebindings: _list[RBACRoleBinding] + unreachable: _list[str] + @typing.type_check_only class ListMembershipsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str diff --git a/googleapiclient-stubs/_apis/gkehub/v1alpha/resources.pyi b/googleapiclient-stubs/_apis/gkehub/v1alpha/resources.pyi index a836d842..7cf2fc0a 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1alpha/resources.pyi @@ -61,7 +61,11 @@ class GKEHubResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, ) -> FeatureHttpRequest: ... def getIamPolicy( self, @@ -78,6 +82,7 @@ class GKEHubResource(googleapiclient.discovery.Resource): orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., + returnPartialSuccess: bool = ..., **kwargs: typing.Any, ) -> ListFeaturesResponseHttpRequest: ... def list_next( diff --git a/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi index 9b03297c..f661e9d8 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1alpha/schemas.pyi @@ -228,9 +228,15 @@ class ConfigManagementConfigSyncDeploymentState( monitor: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] + otelCollector: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] reconcilerManager: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] + resourceGroupControllerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] rootReconciler: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] @@ -276,7 +282,9 @@ class ConfigManagementConfigSyncVersion(typing_extensions.TypedDict, total=False gitSync: str importer: str monitor: str + otelCollector: str reconcilerManager: str + resourceGroupControllerManager: str rootReconciler: str syncer: str @@ -499,6 +507,7 @@ class Feature(typing_extensions.TypedDict, total=False): scopeStates: dict[str, typing.Any] spec: CommonFeatureSpec state: CommonFeatureState + unreachable: _list[str] updateTime: str @typing.type_check_only @@ -1282,6 +1291,9 @@ class ServiceMeshFeatureState(typing_extensions.TypedDict, total=False): @typing.type_check_only class ServiceMeshMembershipSpec(typing_extensions.TypedDict, total=False): + configApi: typing_extensions.Literal[ + "CONFIG_API_UNSPECIFIED", "CONFIG_API_ISTIO", "CONFIG_API_GATEWAY" + ] controlPlane: typing_extensions.Literal[ "CONTROL_PLANE_MANAGEMENT_UNSPECIFIED", "AUTOMATIC", "MANUAL" ] diff --git a/googleapiclient-stubs/_apis/gkehub/v1beta/resources.pyi b/googleapiclient-stubs/_apis/gkehub/v1beta/resources.pyi index 473ef448..e4592d60 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1beta/resources.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1beta/resources.pyi @@ -61,7 +61,11 @@ class GKEHubResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... def get( - self, *, name: str, **kwargs: typing.Any + self, + *, + name: str, + returnPartialSuccess: bool = ..., + **kwargs: typing.Any, ) -> FeatureHttpRequest: ... def getIamPolicy( self, @@ -78,6 +82,7 @@ class GKEHubResource(googleapiclient.discovery.Resource): orderBy: str = ..., pageSize: int = ..., pageToken: str = ..., + returnPartialSuccess: bool = ..., **kwargs: typing.Any, ) -> ListFeaturesResponseHttpRequest: ... def list_next( diff --git a/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi index 333d0d85..1ce03968 100644 --- a/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/gkehub/v1beta/schemas.pyi @@ -199,9 +199,15 @@ class ConfigManagementConfigSyncDeploymentState( monitor: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] + otelCollector: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] reconcilerManager: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] + resourceGroupControllerManager: typing_extensions.Literal[ + "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" + ] rootReconciler: typing_extensions.Literal[ "DEPLOYMENT_STATE_UNSPECIFIED", "NOT_INSTALLED", "INSTALLED", "ERROR", "PENDING" ] @@ -247,7 +253,9 @@ class ConfigManagementConfigSyncVersion(typing_extensions.TypedDict, total=False gitSync: str importer: str monitor: str + otelCollector: str reconcilerManager: str + resourceGroupControllerManager: str rootReconciler: str syncer: str @@ -470,6 +478,7 @@ class Feature(typing_extensions.TypedDict, total=False): scopeStates: dict[str, typing.Any] spec: CommonFeatureSpec state: CommonFeatureState + unreachable: _list[str] updateTime: str @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/gmail/v1/resources.pyi b/googleapiclient-stubs/_apis/gmail/v1/resources.pyi index a6cf8042..4a2fd811 100644 --- a/googleapiclient-stubs/_apis/gmail/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/gmail/v1/resources.pyi @@ -107,13 +107,7 @@ class GmailResource(googleapiclient.discovery.Resource): @typing.type_check_only class AttachmentsResource(googleapiclient.discovery.Resource): def get( - self, - *, - userId: str, - messageId: str, - id: str, - temporaryEeccBypass: bool = ..., - **kwargs: typing.Any, + self, *, userId: str, messageId: str, id: str, **kwargs: typing.Any ) -> MessagePartBodyHttpRequest: ... def batchDelete( @@ -142,7 +136,6 @@ class GmailResource(googleapiclient.discovery.Resource): "minimal", "full", "raw", "metadata" ] = ..., metadataHeaders: str | _list[str] = ..., - temporaryEeccBypass: bool = ..., **kwargs: typing.Any, ) -> MessageHttpRequest: ... def import_( @@ -178,7 +171,6 @@ class GmailResource(googleapiclient.discovery.Resource): maxResults: int = ..., pageToken: str = ..., q: str = ..., - temporaryEeccBypass: bool = ..., **kwargs: typing.Any, ) -> ListMessagesResponseHttpRequest: ... def list_next( @@ -469,7 +461,6 @@ class GmailResource(googleapiclient.discovery.Resource): id: str, format: typing_extensions.Literal["full", "metadata", "minimal"] = ..., metadataHeaders: str | _list[str] = ..., - temporaryEeccBypass: bool = ..., **kwargs: typing.Any, ) -> ThreadHttpRequest: ... def list( @@ -481,7 +472,6 @@ class GmailResource(googleapiclient.discovery.Resource): maxResults: int = ..., pageToken: str = ..., q: str = ..., - temporaryEeccBypass: bool = ..., **kwargs: typing.Any, ) -> ListThreadsResponseHttpRequest: ... def list_next( @@ -505,7 +495,7 @@ class GmailResource(googleapiclient.discovery.Resource): ) -> ThreadHttpRequest: ... def getProfile( - self, *, userId: str, temporaryEeccBypass: bool = ..., **kwargs: typing.Any + self, *, userId: str, **kwargs: typing.Any ) -> ProfileHttpRequest: ... def stop( self, *, userId: str, **kwargs: typing.Any diff --git a/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi b/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi index 61121626..69d56f47 100644 --- a/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/healthcare/v1/resources.pyi @@ -906,6 +906,13 @@ class CloudHealthcareResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> Hl7V2StoreHttpRequest: ... + def rollback( + self, + *, + name: str, + body: RollbackHl7V2MessagesRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def setIamPolicy( self, *, diff --git a/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi b/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi index 3a83fa77..b2f61460 100644 --- a/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/healthcare/v1/schemas.pyi @@ -146,6 +146,7 @@ class CryptoHashConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class Dataset(typing_extensions.TypedDict, total=False): + encryptionSpec: EncryptionSpec name: str timeZone: str @@ -227,6 +228,10 @@ class DicomStoreMetrics(typing_extensions.TypedDict, total=False): @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class EncryptionSpec(typing_extensions.TypedDict, total=False): + kmsKeyName: str + @typing.type_check_only class Entity(typing_extensions.TypedDict, total=False): entityId: str @@ -765,6 +770,26 @@ class RollbackFhirResourcesRequest(typing_extensions.TypedDict, total=False): class RollbackFhirResourcesResponse(typing_extensions.TypedDict, total=False): fhirStore: str +@typing.type_check_only +class RollbackHL7MessagesFilteringFields(typing_extensions.TypedDict, total=False): + operationIds: _list[str] + +@typing.type_check_only +class RollbackHl7V2MessagesRequest(typing_extensions.TypedDict, total=False): + changeType: typing_extensions.Literal[ + "CHANGE_TYPE_UNSPECIFIED", "ALL", "CREATE", "UPDATE", "DELETE" + ] + excludeRollbacks: bool + filteringFields: RollbackHL7MessagesFilteringFields + force: bool + inputGcsObject: str + resultGcsBucket: str + rollbackTime: str + +@typing.type_check_only +class RollbackHl7V2MessagesResponse(typing_extensions.TypedDict, total=False): + hl7v2Store: str + @typing.type_check_only class SchemaConfig(typing_extensions.TypedDict, total=False): lastUpdatedPartitionConfig: TimePartitioning diff --git a/googleapiclient-stubs/_apis/healthcare/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/healthcare/v1beta1/resources.pyi index 5341f8ba..7141d71c 100644 --- a/googleapiclient-stubs/_apis/healthcare/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/healthcare/v1beta1/resources.pyi @@ -1166,6 +1166,13 @@ class CloudHealthcareResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> Hl7V2StoreHttpRequest: ... + def rollback( + self, + *, + name: str, + body: RollbackHl7V2MessagesRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def setIamPolicy( self, *, diff --git a/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi index 11ce69c0..dd47497a 100644 --- a/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/healthcare/v1beta1/schemas.pyi @@ -74,6 +74,11 @@ class AnnotationStore(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str +@typing.type_check_only +class ApplyAdminConsentsErrorDetail(typing_extensions.TypedDict, total=False): + consentErrors: _list[ConsentErrors] + existingOperationId: str + @typing.type_check_only class ApplyAdminConsentsRequest(typing_extensions.TypedDict, total=False): newConsentsList: AdminConsents @@ -241,6 +246,11 @@ class ConsentConfig(typing_extensions.TypedDict, total=False): enforcedAdminConsents: _list[str] version: typing_extensions.Literal["CONSENT_ENFORCEMENT_VERSION_UNSPECIFIED", "V1"] +@typing.type_check_only +class ConsentErrors(typing_extensions.TypedDict, total=False): + error: Status + name: str + @typing.type_check_only class ConsentEvaluation(typing_extensions.TypedDict, total=False): evaluationResult: typing_extensions.Literal[ @@ -285,6 +295,7 @@ class CryptoHashField(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class Dataset(typing_extensions.TypedDict, total=False): + encryptionSpec: EncryptionSpec name: str timeZone: str @@ -396,6 +407,10 @@ class DicomTagConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class EncryptionSpec(typing_extensions.TypedDict, total=False): + kmsKeyName: str + @typing.type_check_only class Entity(typing_extensions.TypedDict, total=False): entityId: str @@ -516,7 +531,6 @@ class ExportMessagesResponse(typing_extensions.TypedDict, total=False): ... class ExportResourcesHistoryRequest(typing_extensions.TypedDict, total=False): _since: str _type: str - bigqueryDestination: GoogleCloudHealthcareV1beta1FhirBigQueryDestination gcsDestination: GoogleCloudHealthcareV1beta1FhirGcsDestination maxResourceVersions: str @@ -1167,6 +1181,26 @@ class RollbackFhirResourcesRequest(typing_extensions.TypedDict, total=False): class RollbackFhirResourcesResponse(typing_extensions.TypedDict, total=False): fhirStore: str +@typing.type_check_only +class RollbackHL7MessagesFilteringFields(typing_extensions.TypedDict, total=False): + operationIds: _list[str] + +@typing.type_check_only +class RollbackHl7V2MessagesRequest(typing_extensions.TypedDict, total=False): + changeType: typing_extensions.Literal[ + "CHANGE_TYPE_UNSPECIFIED", "ALL", "CREATE", "UPDATE", "DELETE" + ] + excludeRollbacks: bool + filteringFields: RollbackHL7MessagesFilteringFields + force: bool + inputGcsObject: str + resultGcsBucket: str + rollbackTime: str + +@typing.type_check_only +class RollbackHl7V2MessagesResponse(typing_extensions.TypedDict, total=False): + hl7v2Store: str + @typing.type_check_only class SchemaConfig(typing_extensions.TypedDict, total=False): lastUpdatedPartitionConfig: TimePartitioning diff --git a/googleapiclient-stubs/_apis/iam/v1/resources.pyi b/googleapiclient-stubs/_apis/iam/v1/resources.pyi index 6a740666..43d2f6b9 100644 --- a/googleapiclient-stubs/_apis/iam/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/iam/v1/resources.pyi @@ -655,13 +655,6 @@ class IamResource(googleapiclient.discovery.Resource): ] = ..., **kwargs: typing.Any, ) -> ListServiceAccountKeysResponseHttpRequest: ... - def patch( - self, - *, - name: str, - body: PatchServiceAccountKeyRequest = ..., - **kwargs: typing.Any, - ) -> ServiceAccountKeyHttpRequest: ... def upload( self, *, diff --git a/googleapiclient-stubs/_apis/iam/v1/schemas.pyi b/googleapiclient-stubs/_apis/iam/v1/schemas.pyi index 3562ee72..94c5a273 100644 --- a/googleapiclient-stubs/_apis/iam/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/iam/v1/schemas.pyi @@ -316,11 +316,6 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str -@typing.type_check_only -class PatchServiceAccountKeyRequest(typing_extensions.TypedDict, total=False): - serviceAccountKey: ServiceAccountKey - updateMask: str - @typing.type_check_only class PatchServiceAccountRequest(typing_extensions.TypedDict, total=False): serviceAccount: ServiceAccount @@ -423,9 +418,6 @@ class ServiceAccount(typing_extensions.TypedDict, total=False): @typing.type_check_only class ServiceAccountKey(typing_extensions.TypedDict, total=False): - contact: str - creator: str - description: str disableReason: typing_extensions.Literal[ "SERVICE_ACCOUNT_KEY_DISABLE_REASON_UNSPECIFIED", "SERVICE_ACCOUNT_KEY_DISABLE_REASON_USER_INITIATED", diff --git a/googleapiclient-stubs/_apis/iam/v2/schemas.pyi b/googleapiclient-stubs/_apis/iam/v2/schemas.pyi index 3a8494fd..8eac6fd7 100644 --- a/googleapiclient-stubs/_apis/iam/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/iam/v2/schemas.pyi @@ -89,6 +89,46 @@ class GoogleIamV2PolicyRule(typing_extensions.TypedDict, total=False): denyRule: GoogleIamV2DenyRule description: str +@typing.type_check_only +class GoogleIamV3OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleIamV3alphaOperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleIamV3betaOperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleIamV3mainOperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + @typing.type_check_only class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): done: bool diff --git a/googleapiclient-stubs/_apis/iam/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/iam/v2beta/schemas.pyi index ddcdbce6..cdd924ed 100644 --- a/googleapiclient-stubs/_apis/iam/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/iam/v2beta/schemas.pyi @@ -89,6 +89,46 @@ class GoogleIamV2betaPolicyRule(typing_extensions.TypedDict, total=False): denyRule: GoogleIamV2betaDenyRule description: str +@typing.type_check_only +class GoogleIamV3OperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleIamV3alphaOperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleIamV3betaOperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + +@typing.type_check_only +class GoogleIamV3mainOperationMetadata(typing_extensions.TypedDict, total=False): + apiVersion: str + createTime: str + endTime: str + requestedCancellation: bool + statusMessage: str + target: str + verb: str + @typing.type_check_only class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): done: bool diff --git a/googleapiclient-stubs/_apis/iap/v1/schemas.pyi b/googleapiclient-stubs/_apis/iap/v1/schemas.pyi index bcb9538d..ab7ab707 100644 --- a/googleapiclient-stubs/_apis/iap/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/iap/v1/schemas.pyi @@ -117,6 +117,12 @@ class ListTunnelDestGroupsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str tunnelDestGroups: _list[TunnelDestGroup] +@typing.type_check_only +class NextStateOfTags(typing_extensions.TypedDict, total=False): + tagsFullState: TagsFullState + tagsFullStateForChildResource: TagsFullStateForChildResource + tagsPartialState: TagsPartialState + @typing.type_check_only class OAuth2(typing_extensions.TypedDict, total=False): clientId: str @@ -171,6 +177,7 @@ class Resource(typing_extensions.TypedDict, total=False): expectedNextState: dict[str, typing.Any] labels: dict[str, typing.Any] name: str + nextStateOfTags: NextStateOfTags service: str type: str @@ -178,6 +185,19 @@ class Resource(typing_extensions.TypedDict, total=False): class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy +@typing.type_check_only +class TagsFullState(typing_extensions.TypedDict, total=False): + tags: dict[str, typing.Any] + +@typing.type_check_only +class TagsFullStateForChildResource(typing_extensions.TypedDict, total=False): + tags: dict[str, typing.Any] + +@typing.type_check_only +class TagsPartialState(typing_extensions.TypedDict, total=False): + tagKeysToRemove: _list[str] + tagsToUpsert: dict[str, typing.Any] + @typing.type_check_only class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): permissions: _list[str] diff --git a/googleapiclient-stubs/_apis/ids/v1/schemas.pyi b/googleapiclient-stubs/_apis/ids/v1/schemas.pyi index 5a05abe0..3695eef1 100644 --- a/googleapiclient-stubs/_apis/ids/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/ids/v1/schemas.pyi @@ -37,6 +37,8 @@ class Endpoint(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str network: str + satisfiesPzi: bool + satisfiesPzs: bool severity: typing_extensions.Literal[ "SEVERITY_UNSPECIFIED", "INFORMATIONAL", "LOW", "MEDIUM", "HIGH", "CRITICAL" ] diff --git a/googleapiclient-stubs/_apis/integrations/v1/resources.pyi b/googleapiclient-stubs/_apis/integrations/v1/resources.pyi index ebdfc949..8192f9ce 100644 --- a/googleapiclient-stubs/_apis/integrations/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/integrations/v1/resources.pyi @@ -350,6 +350,15 @@ class IntegrationsResource(googleapiclient.discovery.Resource): GoogleCloudIntegrationsV1alphaListExecutionsResponseHttpRequest | None ): ... + def replay( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaReplayExecutionRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaReplayExecutionResponseHttpRequest + ): ... def suspensions(self) -> SuspensionsResource: ... @typing.type_check_only @@ -1034,6 +1043,120 @@ class IntegrationsResource(googleapiclient.discovery.Resource): ) -> GoogleCloudIntegrationsV1alphaSfdcInstanceHttpRequest: ... def sfdcChannels(self) -> SfdcChannelsResource: ... + @typing.type_check_only + class TemplatesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: GoogleCloudIntegrationsV1alphaTemplate = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaTemplateHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleProtobufEmptyHttpRequest: ... + def download( + self, + *, + name: str, + fileFormat: typing_extensions.Literal[ + "FILE_FORMAT_UNSPECIFIED", "JSON", "YAML" + ] = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaDownloadTemplateResponseHttpRequest + ): ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudIntegrationsV1alphaTemplateHttpRequest: ... + def import_( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaImportTemplateRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaImportTemplateResponseHttpRequest + ): ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + readMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaListTemplatesResponseHttpRequest: ... + def list_next( + self, + previous_request: GoogleCloudIntegrationsV1alphaListTemplatesResponseHttpRequest, + previous_response: GoogleCloudIntegrationsV1alphaListTemplatesResponse, + ) -> ( + GoogleCloudIntegrationsV1alphaListTemplatesResponseHttpRequest + | None + ): ... + def patch( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaTemplate = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaTemplateHttpRequest: ... + def search( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + readMask: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaSearchTemplatesResponseHttpRequest + ): ... + def search_next( + self, + previous_request: GoogleCloudIntegrationsV1alphaSearchTemplatesResponseHttpRequest, + previous_response: GoogleCloudIntegrationsV1alphaSearchTemplatesResponse, + ) -> ( + GoogleCloudIntegrationsV1alphaSearchTemplatesResponseHttpRequest + | None + ): ... + def share( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaShareTemplateRequest = ..., + **kwargs: typing.Any, + ) -> GoogleProtobufEmptyHttpRequest: ... + def unshare( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaUnshareTemplateRequest = ..., + **kwargs: typing.Any, + ) -> GoogleProtobufEmptyHttpRequest: ... + def upload( + self, + *, + parent: str, + body: GoogleCloudIntegrationsV1alphaUploadTemplateRequest = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudIntegrationsV1alphaUploadTemplateResponseHttpRequest + ): ... + def use( + self, + *, + name: str, + body: GoogleCloudIntegrationsV1alphaUseTemplateRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudIntegrationsV1alphaUseTemplateResponseHttpRequest: ... + def getClients( self, *, parent: str, **kwargs: typing.Any ) -> GoogleCloudIntegrationsV1alphaGetClientResponseHttpRequest: ... @@ -1046,6 +1169,7 @@ class IntegrationsResource(googleapiclient.discovery.Resource): def integrations(self) -> IntegrationsResource: ... def products(self) -> ProductsResource: ... def sfdcInstances(self) -> SfdcInstancesResource: ... + def templates(self) -> TemplatesResource: ... def getClientmetadata( self, *, parent: str, **kwargs: typing.Any @@ -1158,6 +1282,16 @@ class GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaDownloadTemplateResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaDownloadTemplateResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1228,6 +1362,16 @@ class GoogleCloudIntegrationsV1alphaGetClientResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaGetClientResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaImportTemplateResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaImportTemplateResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaIntegrationVersionHttpRequest( googleapiclient.http.HttpRequest @@ -1368,6 +1512,16 @@ class GoogleCloudIntegrationsV1alphaListSuspensionsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaListSuspensionsResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaListTemplatesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaListTemplatesResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1378,6 +1532,16 @@ class GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponseHttpRequest num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaPublishIntegrationVersionResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaReplayExecutionResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaReplayExecutionResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaResolveSuspensionResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1398,6 +1562,16 @@ class GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaSearchTemplatesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaSearchTemplatesResponse: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaSfdcChannelHttpRequest( googleapiclient.http.HttpRequest @@ -1428,6 +1602,16 @@ class GoogleCloudIntegrationsV1alphaTakeoverEditLockResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTemplateHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaTemplate: ... + @typing.type_check_only class GoogleCloudIntegrationsV1alphaTestIntegrationsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -1448,6 +1632,26 @@ class GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse: ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUploadTemplateResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaUploadTemplateResponse: ... + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUseTemplateResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudIntegrationsV1alphaUseTemplateResponse: ... + @typing.type_check_only class GoogleProtobufEmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi b/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi index 076c99c7..9b56e699 100644 --- a/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/integrations/v1/schemas.pyi @@ -262,6 +262,13 @@ class EnterpriseCrmEventbusProtoConditionResult( nextTaskNumber: str result: bool +@typing.type_check_only +class EnterpriseCrmEventbusProtoConditionalFailurePolicies( + typing_extensions.TypedDict, total=False +): + defaultFailurePolicy: EnterpriseCrmEventbusProtoFailurePolicy + failurePolicies: _list[EnterpriseCrmEventbusProtoFailurePolicy] + @typing.type_check_only class EnterpriseCrmEventbusProtoConnectorsConnection( typing_extensions.TypedDict, total=False @@ -408,6 +415,7 @@ class EnterpriseCrmEventbusProtoEventExecutionSnapshot( typing_extensions.TypedDict, total=False ): checkpointTaskNumber: str + clientId: str conditionResults: _list[EnterpriseCrmEventbusProtoConditionResult] diffParams: EnterpriseCrmEventbusProtoEventParameters eventExecutionInfoId: str @@ -420,6 +428,7 @@ class EnterpriseCrmEventbusProtoEventExecutionSnapshot( snapshotTime: str taskExecutionDetails: _list[EnterpriseCrmEventbusProtoTaskExecutionDetails] taskName: str + workflowName: str @typing.type_check_only class EnterpriseCrmEventbusProtoEventExecutionSnapshotEventExecutionSnapshotMetadata( @@ -451,6 +460,7 @@ class EnterpriseCrmEventbusProtoExecutionTraceInfo( class EnterpriseCrmEventbusProtoExternalTraffic( typing_extensions.TypedDict, total=False ): + enableInternalIp: bool gcpProjectId: str gcpProjectNumber: str location: str @@ -1564,6 +1574,7 @@ class EnterpriseCrmFrontendsEventbusProtoTaskConfig( typing_extensions.TypedDict, total=False ): alertConfigs: _list[EnterpriseCrmEventbusProtoTaskAlertConfig] + conditionalFailurePolicies: EnterpriseCrmEventbusProtoConditionalFailurePolicies createTime: str creatorEmail: str description: str @@ -2132,6 +2143,7 @@ class GoogleCloudIntegrationsV1alphaClientConfig( cloudKmsConfig: GoogleCloudIntegrationsV1alphaCloudKmsConfig createTime: str description: str + enableInternalIp: bool enableVariableMasking: bool id: str isGmek: bool @@ -2168,6 +2180,13 @@ class GoogleCloudIntegrationsV1alphaCloudSchedulerConfig( location: str serviceAccountEmail: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaConditionalFailurePolicies( + typing_extensions.TypedDict, total=False +): + defaultFailurePolicy: GoogleCloudIntegrationsV1alphaFailurePolicy + failurePolicies: _list[GoogleCloudIntegrationsV1alphaFailurePolicy] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaConnectionSchemaMetadata( typing_extensions.TypedDict, total=False @@ -2268,6 +2287,12 @@ class GoogleCloudIntegrationsV1alphaDownloadJsonPackageResponse( ): files: _list[GoogleCloudIntegrationsV1alphaFile] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaDownloadTemplateResponse( + typing_extensions.TypedDict, total=False +): + content: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaEnumerateConnectorPlatformRegionsResponse( typing_extensions.TypedDict, total=False @@ -2438,6 +2463,21 @@ class GoogleCloudIntegrationsV1alphaGetClientResponse( ): client: GoogleCloudIntegrationsV1alphaClientConfig +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaImportTemplateRequest( + typing_extensions.TypedDict, total=False +): + integration: str + integrationRegion: str + subIntegrations: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaImportTemplateResponse( + typing_extensions.TypedDict, total=False +): + integrationVersion: GoogleCloudIntegrationsV1alphaIntegrationVersion + subIntegrationVersions: _list[GoogleCloudIntegrationsV1alphaIntegrationVersion] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaIntParameterArray( typing_extensions.TypedDict, total=False @@ -2577,6 +2617,13 @@ class GoogleCloudIntegrationsV1alphaIntegrationVersion( updateTime: str userLabel: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaIntegrationVersionTemplate( + typing_extensions.TypedDict, total=False +): + integrationVersion: GoogleCloudIntegrationsV1alphaIntegrationVersion + key: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaJwt(typing_extensions.TypedDict, total=False): jwt: str @@ -2687,6 +2734,13 @@ class GoogleCloudIntegrationsV1alphaListSuspensionsResponse( nextPageToken: str suspensions: _list[GoogleCloudIntegrationsV1alphaSuspension] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaListTemplatesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + templates: _list[GoogleCloudIntegrationsV1alphaTemplate] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaNextTask(typing_extensions.TypedDict, total=False): condition: str @@ -2845,6 +2899,20 @@ class GoogleCloudIntegrationsV1alphaReplaceServiceAccountRequest( ): runAsServiceAccount: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaReplayExecutionRequest( + typing_extensions.TypedDict, total=False +): + replayReason: str + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaReplayExecutionResponse( + typing_extensions.TypedDict, total=False +): + executionId: str + outputParameters: dict[str, typing.Any] + replayedExecutionId: str + @typing.type_check_only class GoogleCloudIntegrationsV1alphaResolveSuspensionRequest( typing_extensions.TypedDict, total=False @@ -2890,6 +2958,13 @@ class GoogleCloudIntegrationsV1alphaScheduleIntegrationsResponse( ): executionInfoIds: _list[str] +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaSearchTemplatesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + templates: _list[GoogleCloudIntegrationsV1alphaTemplate] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaSerializedFile( typing_extensions.TypedDict, total=False @@ -2934,6 +3009,12 @@ class GoogleCloudIntegrationsV1alphaSfdcInstance( sfdcOrgId: str updateTime: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaShareTemplateRequest( + typing_extensions.TypedDict, total=False +): + resourceNames: _list[str] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaStringParameterArray( typing_extensions.TypedDict, total=False @@ -3015,6 +3096,7 @@ class GoogleCloudIntegrationsV1alphaTakeoverEditLockResponse( class GoogleCloudIntegrationsV1alphaTaskConfig( typing_extensions.TypedDict, total=False ): + conditionalFailurePolicies: GoogleCloudIntegrationsV1alphaConditionalFailurePolicies description: str displayName: str errorCatcherId: str @@ -3069,6 +3151,64 @@ class GoogleCloudIntegrationsV1alphaTaskExecutionDetails( ] taskNumber: str +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTemplate(typing_extensions.TypedDict, total=False): + author: str + categories: _list[ + typing_extensions.Literal[ + "CATEGORY_UNSPECIFIED", + "AI_MACHINE_LEARNING", + "BUSINESS_INTELLIGENCE", + "COLLABORATION", + "CUSTOMER_SERVICE", + "DATABASES", + "DEVOPS_IT", + "CONTENT_AND_FILES", + "FINANCE_AND_ACCOUNTING", + "HUMAN_RESOURCES", + "OPERATIONS", + "PRODUCT_PROJECT_MANAGEMENT", + "PRODUCTIVITY", + "SALES_AND_MARKETING", + "UNIVERSAL_CONNECTORS", + "UTILITY", + "OTHERS", + ] + ] + clientId: str + components: _list[GoogleCloudIntegrationsV1alphaTemplateComponent] + createTime: str + description: str + displayName: str + docLink: str + lastUsedTime: str + name: str + sharedWith: _list[str] + tags: _list[str] + templateBundle: GoogleCloudIntegrationsV1alphaTemplateBundle + updateTime: str + usageCount: str + usageInfo: str + visibility: typing_extensions.Literal[ + "VISIBILITY_UNSPECIFIED", "PRIVATE", "SHARED", "PUBLIC" + ] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTemplateBundle( + typing_extensions.TypedDict, total=False +): + integrationVersionTemplate: GoogleCloudIntegrationsV1alphaIntegrationVersionTemplate + subIntegrationVersionTemplates: _list[ + GoogleCloudIntegrationsV1alphaIntegrationVersionTemplate + ] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaTemplateComponent( + typing_extensions.TypedDict, total=False +): + name: str + type: typing_extensions.Literal["TYPE_UNSPECIFIED", "TRIGGER", "TASK", "CONNECTOR"] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaTestIntegrationsRequest( typing_extensions.TypedDict, total=False @@ -3127,6 +3267,12 @@ class GoogleCloudIntegrationsV1alphaUnpublishIntegrationVersionRequest( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUnshareTemplateRequest( + typing_extensions.TypedDict, total=False +): + resourceNames: _list[str] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaUploadIntegrationVersionRequest( typing_extensions.TypedDict, total=False @@ -3140,6 +3286,43 @@ class GoogleCloudIntegrationsV1alphaUploadIntegrationVersionResponse( ): integrationVersion: GoogleCloudIntegrationsV1alphaIntegrationVersion +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUploadTemplateRequest( + typing_extensions.TypedDict, total=False +): + content: str + fileFormat: typing_extensions.Literal["FILE_FORMAT_UNSPECIFIED", "JSON", "YAML"] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUploadTemplateResponse( + typing_extensions.TypedDict, total=False +): + template: GoogleCloudIntegrationsV1alphaTemplate + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUseTemplateRequest( + typing_extensions.TypedDict, total=False +): + integrationDetails: ( + GoogleCloudIntegrationsV1alphaUseTemplateRequestIntegrationDetails + ) + integrationRegion: str + subIntegrations: dict[str, typing.Any] + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUseTemplateRequestIntegrationDetails( + typing_extensions.TypedDict, total=False +): + integration: str + integrationDescription: str + +@typing.type_check_only +class GoogleCloudIntegrationsV1alphaUseTemplateResponse( + typing_extensions.TypedDict, total=False +): + integrationVersion: GoogleCloudIntegrationsV1alphaIntegrationVersion + subIntegrationVersions: _list[GoogleCloudIntegrationsV1alphaIntegrationVersion] + @typing.type_check_only class GoogleCloudIntegrationsV1alphaUsernameAndPassword( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/jobs/v3/schemas.pyi b/googleapiclient-stubs/_apis/jobs/v3/schemas.pyi index cbb0a669..08998ee1 100644 --- a/googleapiclient-stubs/_apis/jobs/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/jobs/v3/schemas.pyi @@ -549,36 +549,12 @@ class MatchingJob(typing_extensions.TypedDict, total=False): jobTitleSnippet: str searchTextSnippet: str -@typing.type_check_only -class MendelDebugInput(typing_extensions.TypedDict, total=False): - namespacedDebugInput: dict[str, typing.Any] - @typing.type_check_only class Money(typing_extensions.TypedDict, total=False): currencyCode: str nanos: int units: str -@typing.type_check_only -class NamespacedDebugInput(typing_extensions.TypedDict, total=False): - absolutelyForcedExpNames: _list[str] - absolutelyForcedExpTags: _list[str] - absolutelyForcedExps: _list[int] - conditionallyForcedExpNames: _list[str] - conditionallyForcedExpTags: _list[str] - conditionallyForcedExps: _list[int] - disableAutomaticEnrollmentSelection: bool - disableExpNames: _list[str] - disableExpTags: _list[str] - disableExps: _list[int] - disableManualEnrollmentSelection: bool - disableOrganicSelection: bool - forcedFlags: dict[str, typing.Any] - forcedRollouts: dict[str, typing.Any] - testingMode: typing_extensions.Literal[ - "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", "TESTING_MODE_ALL_ON" - ] - @typing.type_check_only class NumericBucketingOption(typing_extensions.TypedDict, total=False): bucketBounds: _list[float] diff --git a/googleapiclient-stubs/_apis/jobs/v3p1beta1/schemas.pyi b/googleapiclient-stubs/_apis/jobs/v3p1beta1/schemas.pyi index b9abe908..a5214bd5 100644 --- a/googleapiclient-stubs/_apis/jobs/v3p1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/jobs/v3p1beta1/schemas.pyi @@ -572,36 +572,12 @@ class MatchingJob(typing_extensions.TypedDict, total=False): jobTitleSnippet: str searchTextSnippet: str -@typing.type_check_only -class MendelDebugInput(typing_extensions.TypedDict, total=False): - namespacedDebugInput: dict[str, typing.Any] - @typing.type_check_only class Money(typing_extensions.TypedDict, total=False): currencyCode: str nanos: int units: str -@typing.type_check_only -class NamespacedDebugInput(typing_extensions.TypedDict, total=False): - absolutelyForcedExpNames: _list[str] - absolutelyForcedExpTags: _list[str] - absolutelyForcedExps: _list[int] - conditionallyForcedExpNames: _list[str] - conditionallyForcedExpTags: _list[str] - conditionallyForcedExps: _list[int] - disableAutomaticEnrollmentSelection: bool - disableExpNames: _list[str] - disableExpTags: _list[str] - disableExps: _list[int] - disableManualEnrollmentSelection: bool - disableOrganicSelection: bool - forcedFlags: dict[str, typing.Any] - forcedRollouts: dict[str, typing.Any] - testingMode: typing_extensions.Literal[ - "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", "TESTING_MODE_ALL_ON" - ] - @typing.type_check_only class NumericBucketingOption(typing_extensions.TypedDict, total=False): bucketBounds: _list[float] diff --git a/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi b/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi index 5f9a96e5..161d689a 100644 --- a/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi +++ b/googleapiclient-stubs/_apis/jobs/v4/schemas.pyi @@ -511,36 +511,12 @@ class MatchingJob(typing_extensions.TypedDict, total=False): jobTitleSnippet: str searchTextSnippet: str -@typing.type_check_only -class MendelDebugInput(typing_extensions.TypedDict, total=False): - namespacedDebugInput: dict[str, typing.Any] - @typing.type_check_only class Money(typing_extensions.TypedDict, total=False): currencyCode: str nanos: int units: str -@typing.type_check_only -class NamespacedDebugInput(typing_extensions.TypedDict, total=False): - absolutelyForcedExpNames: _list[str] - absolutelyForcedExpTags: _list[str] - absolutelyForcedExps: _list[int] - conditionallyForcedExpNames: _list[str] - conditionallyForcedExpTags: _list[str] - conditionallyForcedExps: _list[int] - disableAutomaticEnrollmentSelection: bool - disableExpNames: _list[str] - disableExpTags: _list[str] - disableExps: _list[int] - disableManualEnrollmentSelection: bool - disableOrganicSelection: bool - forcedFlags: dict[str, typing.Any] - forcedRollouts: dict[str, typing.Any] - testingMode: typing_extensions.Literal[ - "TESTING_MODE_UNSPECIFIED", "TESTING_MODE_ALL_OFF", "TESTING_MODE_ALL_ON" - ] - @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool diff --git a/googleapiclient-stubs/_apis/kmsinventory/v1/schemas.pyi b/googleapiclient-stubs/_apis/kmsinventory/v1/schemas.pyi index 3ee17a51..d0384735 100644 --- a/googleapiclient-stubs/_apis/kmsinventory/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/kmsinventory/v1/schemas.pyi @@ -50,6 +50,7 @@ class GoogleCloudKmsV1CryptoKey(typing_extensions.TypedDict, total=False): cryptoKeyBackend: str destroyScheduledDuration: str importOnly: bool + keyAccessJustificationsPolicy: GoogleCloudKmsV1KeyAccessJustificationsPolicy labels: dict[str, typing.Any] name: str nextRotationTime: str @@ -188,6 +189,27 @@ class GoogleCloudKmsV1ExternalProtectionLevelOptions( ekmConnectionKeyPath: str externalKeyUri: str +@typing.type_check_only +class GoogleCloudKmsV1KeyAccessJustificationsPolicy( + typing_extensions.TypedDict, total=False +): + allowedAccessReasons: _list[ + typing_extensions.Literal[ + "REASON_UNSPECIFIED", + "CUSTOMER_INITIATED_SUPPORT", + "GOOGLE_INITIATED_SERVICE", + "THIRD_PARTY_DATA_REQUEST", + "GOOGLE_INITIATED_REVIEW", + "CUSTOMER_INITIATED_ACCESS", + "GOOGLE_INITIATED_SYSTEM_OPERATION", + "REASON_NOT_EXPECTED", + "MODIFIED_CUSTOMER_INITIATED_ACCESS", + "MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION", + "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT", + "CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING", + ] + ] + @typing.type_check_only class GoogleCloudKmsV1KeyOperationAttestation(typing_extensions.TypedDict, total=False): certChains: GoogleCloudKmsV1KeyOperationAttestationCertificateChains diff --git a/googleapiclient-stubs/_apis/language/v2/schemas.pyi b/googleapiclient-stubs/_apis/language/v2/schemas.pyi index 74ac8c68..28ca37bc 100644 --- a/googleapiclient-stubs/_apis/language/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/language/v2/schemas.pyi @@ -126,6 +126,7 @@ class CpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -351,6 +352,7 @@ class GpuMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -534,6 +536,7 @@ class RamMetric(typing_extensions.TypedDict, total=False): "A2_ULTRAGPU_4G", "A2_ULTRAGPU_8G", "A3_HIGHGPU_8G", + "A3_MEGAGPU_8G", "E2_STANDARD_2", "E2_STANDARD_4", "E2_STANDARD_8", @@ -1011,6 +1014,7 @@ class XPSImageModelServingSpecModelThroughputEstimation( "NVIDIA_A100_80GB", "NVIDIA_L4", "NVIDIA_H100_80GB", + "NVIDIA_H100_MEGA_80GB", "TPU_V2", "TPU_V3", "TPU_V4_POD", diff --git a/googleapiclient-stubs/_apis/logging/v2/resources.pyi b/googleapiclient-stubs/_apis/logging/v2/resources.pyi index 113a4254..b2610290 100644 --- a/googleapiclient-stubs/_apis/logging/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/logging/v2/resources.pyi @@ -232,6 +232,7 @@ class LoggingResource(googleapiclient.discovery.Resource): self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -255,10 +256,14 @@ class LoggingResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SavedQueryHttpRequest: ... def list( self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -268,6 +273,14 @@ class LoggingResource(googleapiclient.discovery.Resource): previous_request: ListSavedQueriesResponseHttpRequest, previous_response: ListSavedQueriesResponse, ) -> ListSavedQueriesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: SavedQuery = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> SavedQueryHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any @@ -665,6 +678,7 @@ class LoggingResource(googleapiclient.discovery.Resource): self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -688,10 +702,14 @@ class LoggingResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SavedQueryHttpRequest: ... def list( self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -701,6 +719,14 @@ class LoggingResource(googleapiclient.discovery.Resource): previous_request: ListSavedQueriesResponseHttpRequest, previous_response: ListSavedQueriesResponse, ) -> ListSavedQueriesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: SavedQuery = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> SavedQueryHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any @@ -1283,6 +1309,7 @@ class LoggingResource(googleapiclient.discovery.Resource): self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -1306,10 +1333,14 @@ class LoggingResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SavedQueryHttpRequest: ... def list( self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -1319,6 +1350,14 @@ class LoggingResource(googleapiclient.discovery.Resource): previous_request: ListSavedQueriesResponseHttpRequest, previous_response: ListSavedQueriesResponse, ) -> ListSavedQueriesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: SavedQuery = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> SavedQueryHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any @@ -1681,6 +1720,7 @@ class LoggingResource(googleapiclient.discovery.Resource): self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -1704,10 +1744,14 @@ class LoggingResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, **kwargs: typing.Any ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> SavedQueryHttpRequest: ... def list( self, *, parent: str, + filter: str = ..., pageSize: int = ..., pageToken: str = ..., **kwargs: typing.Any, @@ -1717,6 +1761,14 @@ class LoggingResource(googleapiclient.discovery.Resource): previous_request: ListSavedQueriesResponseHttpRequest, previous_response: ListSavedQueriesResponse, ) -> ListSavedQueriesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: SavedQuery = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> SavedQueryHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any diff --git a/googleapiclient-stubs/_apis/manufacturers/v1/schemas.pyi b/googleapiclient-stubs/_apis/manufacturers/v1/schemas.pyi index a94e4816..f1e91729 100644 --- a/googleapiclient-stubs/_apis/manufacturers/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/manufacturers/v1/schemas.pyi @@ -129,6 +129,7 @@ class Image(typing_extensions.TypedDict, total=False): @typing.type_check_only class Issue(typing_extensions.TypedDict, total=False): + applicableCountries: _list[str] attribute: str description: str destination: str diff --git a/googleapiclient-stubs/_apis/meet/__init__.pyi b/googleapiclient-stubs/_apis/meet/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/meet/v2/__init__.pyi b/googleapiclient-stubs/_apis/meet/v2/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/meet/v2/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/meet/v2/resources.pyi b/googleapiclient-stubs/_apis/meet/v2/resources.pyi new file mode 100644 index 00000000..7fd36602 --- /dev/null +++ b/googleapiclient-stubs/_apis/meet/v2/resources.pyi @@ -0,0 +1,284 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MeetResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ConferenceRecordsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ParticipantsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ParticipantSessionsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ParticipantSessionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListParticipantSessionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListParticipantSessionsResponseHttpRequest, + previous_response: ListParticipantSessionsResponse, + ) -> ListParticipantSessionsResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ParticipantHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListParticipantsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListParticipantsResponseHttpRequest, + previous_response: ListParticipantsResponse, + ) -> ListParticipantsResponseHttpRequest | None: ... + def participantSessions(self) -> ParticipantSessionsResource: ... + + @typing.type_check_only + class RecordingsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> RecordingHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListRecordingsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListRecordingsResponseHttpRequest, + previous_response: ListRecordingsResponse, + ) -> ListRecordingsResponseHttpRequest | None: ... + + @typing.type_check_only + class TranscriptsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class EntriesResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> TranscriptEntryHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListTranscriptEntriesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListTranscriptEntriesResponseHttpRequest, + previous_response: ListTranscriptEntriesResponse, + ) -> ListTranscriptEntriesResponseHttpRequest | None: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> TranscriptHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListTranscriptsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListTranscriptsResponseHttpRequest, + previous_response: ListTranscriptsResponse, + ) -> ListTranscriptsResponseHttpRequest | None: ... + def entries(self) -> EntriesResource: ... + + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ConferenceRecordHttpRequest: ... + def list( + self, + *, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListConferenceRecordsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListConferenceRecordsResponseHttpRequest, + previous_response: ListConferenceRecordsResponse, + ) -> ListConferenceRecordsResponseHttpRequest | None: ... + def participants(self) -> ParticipantsResource: ... + def recordings(self) -> RecordingsResource: ... + def transcripts(self) -> TranscriptsResource: ... + + @typing.type_check_only + class SpacesResource(googleapiclient.discovery.Resource): + def create( + self, *, body: Space = ..., **kwargs: typing.Any + ) -> SpaceHttpRequest: ... + def endActiveConference( + self, + *, + name: str, + body: EndActiveConferenceRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> SpaceHttpRequest: ... + def patch( + self, + *, + name: str, + body: Space = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> SpaceHttpRequest: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def conferenceRecords(self) -> ConferenceRecordsResource: ... + def spaces(self) -> SpacesResource: ... + +@typing.type_check_only +class ConferenceRecordHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ConferenceRecord: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListConferenceRecordsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListConferenceRecordsResponse: ... + +@typing.type_check_only +class ListParticipantSessionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListParticipantSessionsResponse: ... + +@typing.type_check_only +class ListParticipantsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListParticipantsResponse: ... + +@typing.type_check_only +class ListRecordingsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListRecordingsResponse: ... + +@typing.type_check_only +class ListTranscriptEntriesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListTranscriptEntriesResponse: ... + +@typing.type_check_only +class ListTranscriptsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListTranscriptsResponse: ... + +@typing.type_check_only +class ParticipantHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Participant: ... + +@typing.type_check_only +class ParticipantSessionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ParticipantSession: ... + +@typing.type_check_only +class RecordingHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Recording: ... + +@typing.type_check_only +class SpaceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Space: ... + +@typing.type_check_only +class TranscriptHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Transcript: ... + +@typing.type_check_only +class TranscriptEntryHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> TranscriptEntry: ... diff --git a/googleapiclient-stubs/_apis/meet/v2/schemas.pyi b/googleapiclient-stubs/_apis/meet/v2/schemas.pyi new file mode 100644 index 00000000..e28f1f40 --- /dev/null +++ b/googleapiclient-stubs/_apis/meet/v2/schemas.pyi @@ -0,0 +1,138 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class ActiveConference(typing_extensions.TypedDict, total=False): + conferenceRecord: str + +@typing.type_check_only +class AnonymousUser(typing_extensions.TypedDict, total=False): + displayName: str + +@typing.type_check_only +class ConferenceRecord(typing_extensions.TypedDict, total=False): + endTime: str + expireTime: str + name: str + space: str + startTime: str + +@typing.type_check_only +class DocsDestination(typing_extensions.TypedDict, total=False): + document: str + exportUri: str + +@typing.type_check_only +class DriveDestination(typing_extensions.TypedDict, total=False): + exportUri: str + file: str + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class EndActiveConferenceRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ListConferenceRecordsResponse(typing_extensions.TypedDict, total=False): + conferenceRecords: _list[ConferenceRecord] + nextPageToken: str + +@typing.type_check_only +class ListParticipantSessionsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + participantSessions: _list[ParticipantSession] + +@typing.type_check_only +class ListParticipantsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + participants: _list[Participant] + totalSize: int + +@typing.type_check_only +class ListRecordingsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + recordings: _list[Recording] + +@typing.type_check_only +class ListTranscriptEntriesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + transcriptEntries: _list[TranscriptEntry] + +@typing.type_check_only +class ListTranscriptsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + transcripts: _list[Transcript] + +@typing.type_check_only +class Participant(typing_extensions.TypedDict, total=False): + anonymousUser: AnonymousUser + earliestStartTime: str + latestEndTime: str + name: str + phoneUser: PhoneUser + signedinUser: SignedinUser + +@typing.type_check_only +class ParticipantSession(typing_extensions.TypedDict, total=False): + endTime: str + name: str + startTime: str + +@typing.type_check_only +class PhoneUser(typing_extensions.TypedDict, total=False): + displayName: str + +@typing.type_check_only +class Recording(typing_extensions.TypedDict, total=False): + driveDestination: DriveDestination + endTime: str + name: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "STARTED", "ENDED", "FILE_GENERATED" + ] + +@typing.type_check_only +class SignedinUser(typing_extensions.TypedDict, total=False): + displayName: str + user: str + +@typing.type_check_only +class Space(typing_extensions.TypedDict, total=False): + activeConference: ActiveConference + config: SpaceConfig + meetingCode: str + meetingUri: str + name: str + +@typing.type_check_only +class SpaceConfig(typing_extensions.TypedDict, total=False): + accessType: typing_extensions.Literal[ + "ACCESS_TYPE_UNSPECIFIED", "OPEN", "TRUSTED", "RESTRICTED" + ] + entryPointAccess: typing_extensions.Literal[ + "ENTRY_POINT_ACCESS_UNSPECIFIED", "ALL", "CREATOR_APP_ONLY" + ] + +@typing.type_check_only +class Transcript(typing_extensions.TypedDict, total=False): + docsDestination: DocsDestination + endTime: str + name: str + startTime: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "STARTED", "ENDED", "FILE_GENERATED" + ] + +@typing.type_check_only +class TranscriptEntry(typing_extensions.TypedDict, total=False): + endTime: str + languageCode: str + name: str + participant: str + startTime: str + text: str diff --git a/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi b/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi index 5e01a47b..0b670531 100644 --- a/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/memcache/v1/schemas.pyi @@ -182,6 +182,8 @@ class Instance(typing_extensions.TypedDict, total=False): nodeCount: int parameters: MemcacheParameters reservedIpRangeId: _list[str] + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", diff --git a/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi index 35d68287..6efa35c1 100644 --- a/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/memcache/v1beta2/schemas.pyi @@ -195,6 +195,8 @@ class Instance(typing_extensions.TypedDict, total=False): nodeCount: int parameters: MemcacheParameters reservedIpRangeId: _list[str] + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "CREATING", diff --git a/googleapiclient-stubs/_apis/merchantapi/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi new file mode 100644 index 00000000..b9aba89e --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/resources.pyi @@ -0,0 +1,496 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BusinessIdentityResource(googleapiclient.discovery.Resource): + def getBusinessIdentity( + self, *, name: str, **kwargs: typing.Any + ) -> BusinessIdentityHttpRequest: ... + def updateBusinessIdentity( + self, + *, + name: str, + body: BusinessIdentity = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> BusinessIdentityHttpRequest: ... + + @typing.type_check_only + class BusinessInfoResource(googleapiclient.discovery.Resource): + def getBusinessInfo( + self, *, name: str, **kwargs: typing.Any + ) -> BusinessInfoHttpRequest: ... + def updateBusinessInfo( + self, + *, + name: str, + body: BusinessInfo = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> BusinessInfoHttpRequest: ... + + @typing.type_check_only + class EmailpreferencesResource(googleapiclient.discovery.Resource): + def getEmailPreferences( + self, *, name: str, **kwargs: typing.Any + ) -> EmailPreferencesHttpRequest: ... + def updateEmailPreferences( + self, + *, + name: str, + body: EmailPreferences = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> EmailPreferencesHttpRequest: ... + + @typing.type_check_only + class HomepageResource(googleapiclient.discovery.Resource): + def claim( + self, + *, + name: str, + body: ClaimHomepageRequest = ..., + **kwargs: typing.Any, + ) -> HomepageHttpRequest: ... + def getHomepage( + self, *, name: str, **kwargs: typing.Any + ) -> HomepageHttpRequest: ... + def unclaim( + self, + *, + name: str, + body: UnclaimHomepageRequest = ..., + **kwargs: typing.Any, + ) -> HomepageHttpRequest: ... + def updateHomepage( + self, + *, + name: str, + body: Homepage = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> HomepageHttpRequest: ... + + @typing.type_check_only + class IssuesResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + languageCode: str = ..., + pageSize: int = ..., + pageToken: str = ..., + timeZone_id: str = ..., + timeZone_version: str = ..., + **kwargs: typing.Any, + ) -> ListAccountIssuesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAccountIssuesResponseHttpRequest, + previous_response: ListAccountIssuesResponse, + ) -> ListAccountIssuesResponseHttpRequest | None: ... + + @typing.type_check_only + class OnlineReturnPoliciesResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> OnlineReturnPolicyHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListOnlineReturnPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListOnlineReturnPoliciesResponseHttpRequest, + previous_response: ListOnlineReturnPoliciesResponse, + ) -> ListOnlineReturnPoliciesResponseHttpRequest | None: ... + + @typing.type_check_only + class ProgramsResource(googleapiclient.discovery.Resource): + def disable( + self, + *, + name: str, + body: DisableProgramRequest = ..., + **kwargs: typing.Any, + ) -> ProgramHttpRequest: ... + def enable( + self, + *, + name: str, + body: EnableProgramRequest = ..., + **kwargs: typing.Any, + ) -> ProgramHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> ProgramHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListProgramsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListProgramsResponseHttpRequest, + previous_response: ListProgramsResponse, + ) -> ListProgramsResponseHttpRequest | None: ... + + @typing.type_check_only + class RegionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: Region = ..., + regionId: str = ..., + **kwargs: typing.Any, + ) -> RegionHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> RegionHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListRegionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListRegionsResponseHttpRequest, + previous_response: ListRegionsResponse, + ) -> ListRegionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Region = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> RegionHttpRequest: ... + + @typing.type_check_only + class ShippingSettingsResource(googleapiclient.discovery.Resource): + def getShippingSettings( + self, *, name: str, **kwargs: typing.Any + ) -> ShippingSettingsHttpRequest: ... + def insert( + self, *, parent: str, body: ShippingSettings = ..., **kwargs: typing.Any + ) -> ShippingSettingsHttpRequest: ... + + @typing.type_check_only + class TermsOfServiceAgreementStatesResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> TermsOfServiceAgreementStateHttpRequest: ... + def retrieveForApplication( + self, *, parent: str, **kwargs: typing.Any + ) -> TermsOfServiceAgreementStateHttpRequest: ... + + @typing.type_check_only + class UsersResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: User = ..., + userId: str = ..., + **kwargs: typing.Any, + ) -> UserHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> UserHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListUsersResponseHttpRequest: ... + def list_next( + self, + previous_request: ListUsersResponseHttpRequest, + previous_response: ListUsersResponse, + ) -> ListUsersResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: User = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> UserHttpRequest: ... + + def createAndConfigure( + self, *, body: CreateAndConfigureAccountRequest = ..., **kwargs: typing.Any + ) -> AccountHttpRequest: ... + def delete(self, *, name: str, **kwargs: typing.Any) -> EmptyHttpRequest: ... + def get(self, *, name: str, **kwargs: typing.Any) -> AccountHttpRequest: ... + def list( + self, + *, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAccountsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAccountsResponseHttpRequest, + previous_response: ListAccountsResponse, + ) -> ListAccountsResponseHttpRequest | None: ... + def listSubaccounts( + self, + *, + provider: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListSubAccountsResponseHttpRequest: ... + def listSubaccounts_next( + self, + previous_request: ListSubAccountsResponseHttpRequest, + previous_response: ListSubAccountsResponse, + ) -> ListSubAccountsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: Account = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> AccountHttpRequest: ... + def businessIdentity(self) -> BusinessIdentityResource: ... + def businessInfo(self) -> BusinessInfoResource: ... + def emailpreferences(self) -> EmailpreferencesResource: ... + def homepage(self) -> HomepageResource: ... + def issues(self) -> IssuesResource: ... + def onlineReturnPolicies(self) -> OnlineReturnPoliciesResource: ... + def programs(self) -> ProgramsResource: ... + def regions(self) -> RegionsResource: ... + def shippingSettings(self) -> ShippingSettingsResource: ... + def termsOfServiceAgreementStates( + self, + ) -> TermsOfServiceAgreementStatesResource: ... + def users(self) -> UsersResource: ... + + @typing.type_check_only + class TermsOfServiceResource(googleapiclient.discovery.Resource): + def accept( + self, + *, + name: str, + account: str = ..., + regionCode: str = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> TermsOfServiceHttpRequest: ... + def retrieveLatest( + self, + *, + kind: typing_extensions.Literal[ + "TERMS_OF_SERVICE_KIND_UNSPECIFIED", "MERCHANT_CENTER" + ] = ..., + regionCode: str = ..., + **kwargs: typing.Any, + ) -> TermsOfServiceHttpRequest: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + def termsOfService(self) -> TermsOfServiceResource: ... + +@typing.type_check_only +class AccountHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Account: ... + +@typing.type_check_only +class BusinessIdentityHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BusinessIdentity: ... + +@typing.type_check_only +class BusinessInfoHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BusinessInfo: ... + +@typing.type_check_only +class EmailPreferencesHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> EmailPreferences: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class HomepageHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Homepage: ... + +@typing.type_check_only +class ListAccountIssuesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAccountIssuesResponse: ... + +@typing.type_check_only +class ListAccountsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAccountsResponse: ... + +@typing.type_check_only +class ListOnlineReturnPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListOnlineReturnPoliciesResponse: ... + +@typing.type_check_only +class ListProgramsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListProgramsResponse: ... + +@typing.type_check_only +class ListRegionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListRegionsResponse: ... + +@typing.type_check_only +class ListSubAccountsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListSubAccountsResponse: ... + +@typing.type_check_only +class ListUsersResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListUsersResponse: ... + +@typing.type_check_only +class OnlineReturnPolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> OnlineReturnPolicy: ... + +@typing.type_check_only +class ProgramHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Program: ... + +@typing.type_check_only +class RegionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Region: ... + +@typing.type_check_only +class ShippingSettingsHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ShippingSettings: ... + +@typing.type_check_only +class TermsOfServiceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> TermsOfService: ... + +@typing.type_check_only +class TermsOfServiceAgreementStateHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> TermsOfServiceAgreementState: ... + +@typing.type_check_only +class UserHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> User: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi new file mode 100644 index 00000000..cc38b76e --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/accounts_v1beta/schemas.pyi @@ -0,0 +1,573 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class AcceptTermsOfService(typing_extensions.TypedDict, total=False): + name: str + regionCode: str + +@typing.type_check_only +class Accepted(typing_extensions.TypedDict, total=False): + acceptedBy: str + termsOfService: str + validUntil: Date + +@typing.type_check_only +class Account(typing_extensions.TypedDict, total=False): + accountId: str + accountName: str + adultContent: bool + languageCode: str + name: str + testAccount: bool + timeZone: TimeZone + +@typing.type_check_only +class AccountIssue(typing_extensions.TypedDict, total=False): + detail: str + documentationUri: str + impactedDestinations: _list[ImpactedDestination] + name: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "CRITICAL", "ERROR", "SUGGESTION" + ] + title: str + +@typing.type_check_only +class AddAccountService(typing_extensions.TypedDict, total=False): + accountAggregation: Empty + provider: str + +@typing.type_check_only +class Address(typing_extensions.TypedDict, total=False): + administrativeArea: str + city: str + postalCode: str + regionCode: str + streetAddress: str + +@typing.type_check_only +class BusinessDayConfig(typing_extensions.TypedDict, total=False): + businessDays: _list[ + typing_extensions.Literal[ + "WEEKDAY_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + ] + ] + +@typing.type_check_only +class BusinessIdentity(typing_extensions.TypedDict, total=False): + blackOwned: IdentityAttribute + latinoOwned: IdentityAttribute + name: str + promotionsConsent: typing_extensions.Literal[ + "PROMOTIONS_CONSENT_UNSPECIFIED", + "PROMOTIONS_CONSENT_GIVEN", + "PROMOTIONS_CONSENT_DENIED", + ] + smallBusiness: IdentityAttribute + veteranOwned: IdentityAttribute + womenOwned: IdentityAttribute + +@typing.type_check_only +class BusinessInfo(typing_extensions.TypedDict, total=False): + address: PostalAddress + customerService: CustomerService + name: str + phone: PhoneNumber + phoneVerificationState: typing_extensions.Literal[ + "PHONE_VERIFICATION_STATE_UNSPECIFIED", + "PHONE_VERIFICATION_STATE_VERIFIED", + "PHONE_VERIFICATION_STATE_UNVERIFIED", + ] + +@typing.type_check_only +class CarrierRate(typing_extensions.TypedDict, total=False): + carrier: str + carrierService: str + flatAdjustment: Price + name: str + originPostalCode: str + percentageAdjustment: str + +@typing.type_check_only +class ClaimHomepageRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class CreateAndConfigureAccountRequest(typing_extensions.TypedDict, total=False): + acceptTermsOfService: AcceptTermsOfService + account: Account + service: _list[AddAccountService] + users: _list[CreateUserRequest] + +@typing.type_check_only +class CreateUserRequest(typing_extensions.TypedDict, total=False): + parent: str + user: User + userId: str + +@typing.type_check_only +class CustomerService(typing_extensions.TypedDict, total=False): + email: str + phone: PhoneNumber + uri: str + +@typing.type_check_only +class CutoffConfig(typing_extensions.TypedDict, total=False): + localCutoffTime: LocalCutoffTime + noDeliveryPostCutoff: bool + storeCloseOffsetHours: str + +@typing.type_check_only +class CutoffTime(typing_extensions.TypedDict, total=False): + hour: int + minute: int + timeZone: str + +@typing.type_check_only +class Date(typing_extensions.TypedDict, total=False): + day: int + month: int + year: int + +@typing.type_check_only +class DeliveryTime(typing_extensions.TypedDict, total=False): + cutoffTime: CutoffTime + handlingBusinessDayConfig: BusinessDayConfig + maxHandlingDays: int + maxTransitDays: int + minHandlingDays: int + minTransitDays: int + transitBusinessDayConfig: BusinessDayConfig + transitTimeTable: TransitTable + warehouseBasedDeliveryTimes: _list[WarehouseBasedDeliveryTime] + +@typing.type_check_only +class DisableProgramRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Distance(typing_extensions.TypedDict, total=False): + unit: typing_extensions.Literal["UNIT_UNSPECIFIED", "MILES", "KILOMETERS"] + value: str + +@typing.type_check_only +class EmailPreferences(typing_extensions.TypedDict, total=False): + name: str + newsAndTips: typing_extensions.Literal[ + "OPT_IN_STATE_UNSPECIFIED", "OPTED_OUT", "OPTED_IN", "UNCONFIRMED" + ] + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class EnableProgramRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class GeoTargetArea(typing_extensions.TypedDict, total=False): + geotargetCriteriaIds: _list[str] + +@typing.type_check_only +class Headers(typing_extensions.TypedDict, total=False): + locations: _list[LocationIdSet] + numberOfItems: _list[str] + postalCodeGroupNames: _list[str] + prices: _list[Price] + weights: _list[Weight] + +@typing.type_check_only +class Homepage(typing_extensions.TypedDict, total=False): + claimed: bool + name: str + uri: str + +@typing.type_check_only +class IdentityAttribute(typing_extensions.TypedDict, total=False): + identityDeclaration: typing_extensions.Literal[ + "IDENTITY_DECLARATION_UNSPECIFIED", + "SELF_IDENTIFIES_AS", + "DOES_NOT_SELF_IDENTIFY_AS", + ] + +@typing.type_check_only +class Impact(typing_extensions.TypedDict, total=False): + regionCode: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "CRITICAL", "ERROR", "SUGGESTION" + ] + +@typing.type_check_only +class ImpactedDestination(typing_extensions.TypedDict, total=False): + impacts: _list[Impact] + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ListAccountIssuesResponse(typing_extensions.TypedDict, total=False): + accountIssues: _list[AccountIssue] + nextPageToken: str + +@typing.type_check_only +class ListAccountsResponse(typing_extensions.TypedDict, total=False): + accounts: _list[Account] + nextPageToken: str + +@typing.type_check_only +class ListOnlineReturnPoliciesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + onlineReturnPolicies: _list[OnlineReturnPolicy] + +@typing.type_check_only +class ListProgramsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + programs: _list[Program] + +@typing.type_check_only +class ListRegionsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + regions: _list[Region] + +@typing.type_check_only +class ListSubAccountsResponse(typing_extensions.TypedDict, total=False): + accounts: _list[Account] + nextPageToken: str + +@typing.type_check_only +class ListUsersResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + users: _list[User] + +@typing.type_check_only +class LocalCutoffTime(typing_extensions.TypedDict, total=False): + hour: str + minute: str + +@typing.type_check_only +class LocationIdSet(typing_extensions.TypedDict, total=False): + locationIds: _list[str] + +@typing.type_check_only +class LoyaltyProgram(typing_extensions.TypedDict, total=False): + loyaltyProgramTiers: _list[LoyaltyProgramTiers] + programLabel: str + +@typing.type_check_only +class LoyaltyProgramTiers(typing_extensions.TypedDict, total=False): + tierLabel: str + +@typing.type_check_only +class MinimumOrderValueTable(typing_extensions.TypedDict, total=False): + storeCodeSetWithMovs: _list[StoreCodeSetWithMov] + +@typing.type_check_only +class OnlineReturnPolicy(typing_extensions.TypedDict, total=False): + acceptDefectiveOnly: bool + acceptExchange: bool + countries: _list[str] + itemConditions: _list[ + typing_extensions.Literal["ITEM_CONDITION_UNSPECIFIED", "NEW", "USED"] + ] + label: str + name: str + policy: Policy + processRefundDays: int + restockingFee: RestockingFee + returnMethods: _list[ + typing_extensions.Literal[ + "RETURN_METHOD_UNSPECIFIED", "BY_MAIL", "IN_STORE", "AT_A_KIOSK" + ] + ] + returnPolicyId: str + returnPolicyUri: str + returnShippingFee: ReturnShippingFee + +@typing.type_check_only +class PhoneNumber(typing_extensions.TypedDict, total=False): + e164Number: str + extension: str + shortCode: ShortCode + +@typing.type_check_only +class Policy(typing_extensions.TypedDict, total=False): + days: str + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", + "NUMBER_OF_DAYS_AFTER_DELIVERY", + "NO_RETURNS", + "LIFETIME_RETURNS", + ] + +@typing.type_check_only +class PostalAddress(typing_extensions.TypedDict, total=False): + addressLines: _list[str] + administrativeArea: str + languageCode: str + locality: str + organization: str + postalCode: str + recipients: _list[str] + regionCode: str + revision: int + sortingCode: str + sublocality: str + +@typing.type_check_only +class PostalCodeArea(typing_extensions.TypedDict, total=False): + postalCodes: _list[PostalCodeRange] + regionCode: str + +@typing.type_check_only +class PostalCodeRange(typing_extensions.TypedDict, total=False): + begin: str + end: str + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amountMicros: str + currencyCode: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class Program(typing_extensions.TypedDict, total=False): + activeRegionCodes: _list[str] + documentationUri: str + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "NOT_ELIGIBLE", "ELIGIBLE", "ENABLED" + ] + unmetRequirements: _list[Requirement] + +@typing.type_check_only +class RateGroup(typing_extensions.TypedDict, total=False): + applicableShippingLabels: _list[str] + carrierRates: _list[CarrierRate] + mainTable: Table + name: str + singleValue: Value + subtables: _list[Table] + +@typing.type_check_only +class Region(typing_extensions.TypedDict, total=False): + displayName: str + geotargetArea: GeoTargetArea + name: str + postalCodeArea: PostalCodeArea + regionalInventoryEligible: bool + shippingEligible: bool + +@typing.type_check_only +class Required(typing_extensions.TypedDict, total=False): + termsOfService: str + tosFileUri: str + +@typing.type_check_only +class Requirement(typing_extensions.TypedDict, total=False): + affectedRegionCodes: _list[str] + documentationUri: str + title: str + +@typing.type_check_only +class RestockingFee(typing_extensions.TypedDict, total=False): + fixedFee: Price + microPercent: int + +@typing.type_check_only +class ReturnShippingFee(typing_extensions.TypedDict, total=False): + fixedFee: Price + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "FIXED", "CUSTOMER_PAYING_ACTUAL_FEE" + ] + +@typing.type_check_only +class Row(typing_extensions.TypedDict, total=False): + cells: _list[Value] + +@typing.type_check_only +class Service(typing_extensions.TypedDict, total=False): + active: bool + currencyCode: str + deliveryCountries: _list[str] + deliveryTime: DeliveryTime + loyaltyPrograms: _list[LoyaltyProgram] + minimumOrderValue: Price + minimumOrderValueTable: MinimumOrderValueTable + rateGroups: _list[RateGroup] + serviceName: str + shipmentType: typing_extensions.Literal[ + "SHIPMENT_TYPE_UNSPECIFIED", "DELIVERY", "LOCAL_DELIVERY", "COLLECTION_POINT" + ] + storeConfig: StoreConfig + +@typing.type_check_only +class ShippingSettings(typing_extensions.TypedDict, total=False): + etag: str + name: str + services: _list[Service] + warehouses: _list[Warehouse] + +@typing.type_check_only +class ShortCode(typing_extensions.TypedDict, total=False): + number: str + regionCode: str + +@typing.type_check_only +class StoreCodeSetWithMov(typing_extensions.TypedDict, total=False): + storeCodes: _list[str] + value: Price + +@typing.type_check_only +class StoreConfig(typing_extensions.TypedDict, total=False): + cutoffConfig: CutoffConfig + serviceRadius: Distance + storeCodes: _list[str] + storeServiceType: typing_extensions.Literal[ + "STORE_SERVICE_TYPE_UNSPECIFIED", "ALL_STORES", "SELECTED_STORES" + ] + +@typing.type_check_only +class Table(typing_extensions.TypedDict, total=False): + columnHeaders: Headers + name: str + rowHeaders: Headers + rows: _list[Row] + +@typing.type_check_only +class TermsOfService(typing_extensions.TypedDict, total=False): + external: bool + fileUri: str + kind: typing_extensions.Literal[ + "TERMS_OF_SERVICE_KIND_UNSPECIFIED", "MERCHANT_CENTER" + ] + name: str + regionCode: str + +@typing.type_check_only +class TermsOfServiceAgreementState(typing_extensions.TypedDict, total=False): + accepted: Accepted + name: str + regionCode: str + required: Required + termsOfServiceKind: typing_extensions.Literal[ + "TERMS_OF_SERVICE_KIND_UNSPECIFIED", "MERCHANT_CENTER" + ] + +@typing.type_check_only +class TimeZone(typing_extensions.TypedDict, total=False): + id: str + version: str + +@typing.type_check_only +class TransitTable(typing_extensions.TypedDict, total=False): + postalCodeGroupNames: _list[str] + rows: _list[TransitTimeRow] + transitTimeLabels: _list[str] + +@typing.type_check_only +class TransitTimeRow(typing_extensions.TypedDict, total=False): + values: _list[TransitTimeValue] + +@typing.type_check_only +class TransitTimeValue(typing_extensions.TypedDict, total=False): + maxTransitDays: int + minTransitDays: int + +@typing.type_check_only +class UnclaimHomepageRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class User(typing_extensions.TypedDict, total=False): + accessRights: _list[ + typing_extensions.Literal[ + "ACCESS_RIGHT_UNSPECIFIED", "STANDARD", "ADMIN", "PERFORMANCE_REPORTING" + ] + ] + name: str + state: typing_extensions.Literal["STATE_UNSPECIFIED", "PENDING", "VERIFIED"] + +@typing.type_check_only +class Value(typing_extensions.TypedDict, total=False): + carrierRate: str + flatRate: Price + noShipping: bool + pricePercentage: str + subtable: str + +@typing.type_check_only +class Warehouse(typing_extensions.TypedDict, total=False): + businessDayConfig: BusinessDayConfig + cutoffTime: WarehouseCutoffTime + handlingDays: str + name: str + shippingAddress: Address + +@typing.type_check_only +class WarehouseBasedDeliveryTime(typing_extensions.TypedDict, total=False): + carrier: str + carrierService: str + warehouse: str + +@typing.type_check_only +class WarehouseCutoffTime(typing_extensions.TypedDict, total=False): + hour: int + minute: int + +@typing.type_check_only +class Weight(typing_extensions.TypedDict, total=False): + amountMicros: str + unit: typing_extensions.Literal["WEIGHT_UNIT_UNSPECIFIED", "POUND", "KILOGRAM"] diff --git a/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/resources.pyi new file mode 100644 index 00000000..47298b17 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/resources.pyi @@ -0,0 +1,97 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ConversionSourcesResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: ConversionSource = ..., **kwargs: typing.Any + ) -> ConversionSourceHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> ConversionSourceHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + showDeleted: bool = ..., + **kwargs: typing.Any, + ) -> ListConversionSourcesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListConversionSourcesResponseHttpRequest, + previous_response: ListConversionSourcesResponse, + ) -> ListConversionSourcesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: ConversionSource = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> ConversionSourceHttpRequest: ... + def undelete( + self, + *, + name: str, + body: UndeleteConversionSourceRequest = ..., + **kwargs: typing.Any, + ) -> ConversionSourceHttpRequest: ... + + def conversionSources(self) -> ConversionSourcesResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class ConversionSourceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ConversionSource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListConversionSourcesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListConversionSourcesResponse: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi new file mode 100644 index 00000000..67f7a312 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/conversions_v1beta/schemas.pyi @@ -0,0 +1,95 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class AttributionSettings(typing_extensions.TypedDict, total=False): + attributionLookbackWindowDays: int + attributionModel: typing_extensions.Literal[ + "ATTRIBUTION_MODEL_UNSPECIFIED", + "CROSS_CHANNEL_LAST_CLICK", + "ADS_PREFERRED_LAST_CLICK", + "CROSS_CHANNEL_DATA_DRIVEN", + "CROSS_CHANNEL_FIRST_CLICK", + "CROSS_CHANNEL_LINEAR", + "CROSS_CHANNEL_POSITION_BASED", + "CROSS_CHANNEL_TIME_DECAY", + ] + conversionType: _list[ConversionType] + +@typing.type_check_only +class ConversionSource(typing_extensions.TypedDict, total=False): + controller: typing_extensions.Literal[ + "CONTROLLER_UNSPECIFIED", "MERCHANT", "YOUTUBE_AFFILIATES" + ] + expireTime: str + googleAnalyticsLink: GoogleAnalyticsLink + merchantCenterDestination: MerchantCenterDestination + name: str + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "ACTIVE", "ARCHIVED", "PENDING" + ] + +@typing.type_check_only +class ConversionType(typing_extensions.TypedDict, total=False): + name: str + report: bool + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class GoogleAnalyticsLink(typing_extensions.TypedDict, total=False): + attributionSettings: AttributionSettings + property: str + propertyId: str + +@typing.type_check_only +class ListConversionSourcesResponse(typing_extensions.TypedDict, total=False): + conversionSources: _list[ConversionSource] + nextPageToken: str + +@typing.type_check_only +class MerchantCenterDestination(typing_extensions.TypedDict, total=False): + attributionSettings: AttributionSettings + currencyCode: str + destination: str + displayName: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class UndeleteConversionSourceRequest(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/resources.pyi new file mode 100644 index 00000000..8bc8c91c --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/resources.pyi @@ -0,0 +1,96 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class DataSourcesResource(googleapiclient.discovery.Resource): + def create( + self, *, parent: str, body: DataSource = ..., **kwargs: typing.Any + ) -> DataSourceHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def fetch( + self, + *, + name: str, + body: FetchDataSourceRequest = ..., + **kwargs: typing.Any, + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> DataSourceHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListDataSourcesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListDataSourcesResponseHttpRequest, + previous_response: ListDataSourcesResponse, + ) -> ListDataSourcesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: DataSource = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> DataSourceHttpRequest: ... + + def dataSources(self) -> DataSourcesResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class DataSourceHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> DataSource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListDataSourcesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListDataSourcesResponse: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi new file mode 100644 index 00000000..34e0002d --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/datasources_v1beta/schemas.pyi @@ -0,0 +1,134 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class DataSource(typing_extensions.TypedDict, total=False): + dataSourceId: str + displayName: str + fileInput: FileInput + input: typing_extensions.Literal[ + "INPUT_UNSPECIFIED", "API", "FILE", "UI", "AUTOFEED" + ] + localInventoryDataSource: LocalInventoryDataSource + name: str + primaryProductDataSource: PrimaryProductDataSource + promotionDataSource: PromotionDataSource + regionalInventoryDataSource: RegionalInventoryDataSource + supplementalProductDataSource: SupplementalProductDataSource + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FetchDataSourceRequest(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FetchSettings(typing_extensions.TypedDict, total=False): + dayOfMonth: int + dayOfWeek: typing_extensions.Literal[ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + ] + enabled: bool + fetchUri: str + frequency: typing_extensions.Literal[ + "FREQUENCY_UNSPECIFIED", + "FREQUENCY_DAILY", + "FREQUENCY_WEEKLY", + "FREQUENCY_MONTHLY", + ] + password: str + timeOfDay: TimeOfDay + timeZone: str + username: str + +@typing.type_check_only +class FileInput(typing_extensions.TypedDict, total=False): + fetchSettings: FetchSettings + fileInputType: typing_extensions.Literal[ + "FILE_INPUT_TYPE_UNSPECIFIED", "UPLOAD", "FETCH", "GOOGLE_SHEETS" + ] + fileName: str + +@typing.type_check_only +class ListDataSourcesResponse(typing_extensions.TypedDict, total=False): + dataSources: _list[DataSource] + nextPageToken: str + +@typing.type_check_only +class LocalInventoryDataSource(typing_extensions.TypedDict, total=False): + contentLanguage: str + feedLabel: str + +@typing.type_check_only +class PrimaryProductDataSource(typing_extensions.TypedDict, total=False): + channel: typing_extensions.Literal[ + "CHANNEL_UNSPECIFIED", "ONLINE_PRODUCTS", "LOCAL_PRODUCTS", "PRODUCTS" + ] + contentLanguage: str + countries: _list[str] + feedLabel: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class PromotionDataSource(typing_extensions.TypedDict, total=False): + contentLanguage: str + targetCountry: str + +@typing.type_check_only +class RegionalInventoryDataSource(typing_extensions.TypedDict, total=False): + contentLanguage: str + feedLabel: str + +@typing.type_check_only +class SupplementalProductDataSource(typing_extensions.TypedDict, total=False): + contentLanguage: str + feedLabel: str + +@typing.type_check_only +class TimeOfDay(typing_extensions.TypedDict, total=False): + hours: int + minutes: int + nanos: int + seconds: int diff --git a/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/resources.pyi new file mode 100644 index 00000000..99a1f9fe --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/resources.pyi @@ -0,0 +1,129 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProductsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocalInventoriesResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def insert( + self, + *, + parent: str, + body: LocalInventory = ..., + **kwargs: typing.Any, + ) -> LocalInventoryHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListLocalInventoriesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLocalInventoriesResponseHttpRequest, + previous_response: ListLocalInventoriesResponse, + ) -> ListLocalInventoriesResponseHttpRequest | None: ... + + @typing.type_check_only + class RegionalInventoriesResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def insert( + self, + *, + parent: str, + body: RegionalInventory = ..., + **kwargs: typing.Any, + ) -> RegionalInventoryHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListRegionalInventoriesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListRegionalInventoriesResponseHttpRequest, + previous_response: ListRegionalInventoriesResponse, + ) -> ListRegionalInventoriesResponseHttpRequest | None: ... + + def localInventories(self) -> LocalInventoriesResource: ... + def regionalInventories(self) -> RegionalInventoriesResource: ... + + def products(self) -> ProductsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListLocalInventoriesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLocalInventoriesResponse: ... + +@typing.type_check_only +class ListRegionalInventoriesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListRegionalInventoriesResponse: ... + +@typing.type_check_only +class LocalInventoryHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LocalInventory: ... + +@typing.type_check_only +class RegionalInventoryHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> RegionalInventory: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi new file mode 100644 index 00000000..febffd9b --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/inventories_v1beta/schemas.pyi @@ -0,0 +1,93 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class CustomAttribute(typing_extensions.TypedDict, total=False): + groupValues: _list[CustomAttribute] + name: str + value: str + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class Interval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + +@typing.type_check_only +class ListLocalInventoriesResponse(typing_extensions.TypedDict, total=False): + localInventories: _list[LocalInventory] + nextPageToken: str + +@typing.type_check_only +class ListRegionalInventoriesResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + regionalInventories: _list[RegionalInventory] + +@typing.type_check_only +class LocalInventory(typing_extensions.TypedDict, total=False): + account: str + availability: str + customAttributes: _list[CustomAttribute] + instoreProductLocation: str + name: str + pickupMethod: str + pickupSla: str + price: Price + quantity: str + salePrice: Price + salePriceEffectiveDate: Interval + storeCode: str + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amountMicros: str + currencyCode: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class RegionalInventory(typing_extensions.TypedDict, total=False): + account: str + availability: str + customAttributes: _list[CustomAttribute] + name: str + price: Price + region: str + salePrice: Price + salePriceEffectiveDate: Interval diff --git a/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/resources.pyi new file mode 100644 index 00000000..4ce48e10 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/resources.pyi @@ -0,0 +1,112 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LfpInventoriesResource(googleapiclient.discovery.Resource): + def insert( + self, *, parent: str, body: LfpInventory = ..., **kwargs: typing.Any + ) -> LfpInventoryHttpRequest: ... + + @typing.type_check_only + class LfpSalesResource(googleapiclient.discovery.Resource): + def insert( + self, *, parent: str, body: LfpSale = ..., **kwargs: typing.Any + ) -> LfpSaleHttpRequest: ... + + @typing.type_check_only + class LfpStoresResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> LfpStoreHttpRequest: ... + def insert( + self, *, parent: str, body: LfpStore = ..., **kwargs: typing.Any + ) -> LfpStoreHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + targetAccount: str = ..., + **kwargs: typing.Any, + ) -> ListLfpStoresResponseHttpRequest: ... + def list_next( + self, + previous_request: ListLfpStoresResponseHttpRequest, + previous_response: ListLfpStoresResponse, + ) -> ListLfpStoresResponseHttpRequest | None: ... + + def lfpInventories(self) -> LfpInventoriesResource: ... + def lfpSales(self) -> LfpSalesResource: ... + def lfpStores(self) -> LfpStoresResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class LfpInventoryHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LfpInventory: ... + +@typing.type_check_only +class LfpSaleHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LfpSale: ... + +@typing.type_check_only +class LfpStoreHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LfpStore: ... + +@typing.type_check_only +class ListLfpStoresResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListLfpStoresResponse: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi new file mode 100644 index 00000000..0c97c3af --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/lfp_v1beta/schemas.pyi @@ -0,0 +1,101 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class LfpInventory(typing_extensions.TypedDict, total=False): + availability: str + collectionTime: str + contentLanguage: str + feedLabel: str + gtin: str + name: str + offerId: str + pickupMethod: str + pickupSla: str + price: Price + quantity: str + regionCode: str + storeCode: str + targetAccount: str + +@typing.type_check_only +class LfpSale(typing_extensions.TypedDict, total=False): + contentLanguage: str + feedLabel: str + gtin: str + name: str + offerId: str + price: Price + quantity: str + regionCode: str + saleTime: str + storeCode: str + targetAccount: str + uid: str + +@typing.type_check_only +class LfpStore(typing_extensions.TypedDict, total=False): + gcidCategory: _list[str] + matchingState: typing_extensions.Literal[ + "STORE_MATCHING_STATE_UNSPECIFIED", + "STORE_MATCHING_STATE_MATCHED", + "STORE_MATCHING_STATE_FAILED", + ] + matchingStateHint: str + name: str + phoneNumber: str + placeId: str + storeAddress: str + storeCode: str + storeName: str + targetAccount: str + websiteUri: str + +@typing.type_check_only +class ListLfpStoresResponse(typing_extensions.TypedDict, total=False): + lfpStores: _list[LfpStore] + nextPageToken: str + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amountMicros: str + currencyCode: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] diff --git a/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/resources.pyi new file mode 100644 index 00000000..0139db35 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/resources.pyi @@ -0,0 +1,95 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class NotificationsubscriptionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: NotificationSubscription = ..., + **kwargs: typing.Any, + ) -> NotificationSubscriptionHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> NotificationSubscriptionHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListNotificationSubscriptionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListNotificationSubscriptionsResponseHttpRequest, + previous_response: ListNotificationSubscriptionsResponse, + ) -> ListNotificationSubscriptionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: NotificationSubscription = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> NotificationSubscriptionHttpRequest: ... + + def notificationsubscriptions(self) -> NotificationsubscriptionsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListNotificationSubscriptionsResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListNotificationSubscriptionsResponse: ... + +@typing.type_check_only +class NotificationSubscriptionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> NotificationSubscription: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi new file mode 100644 index 00000000..1f476a58 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/notifications_v1beta/schemas.pyi @@ -0,0 +1,56 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class ListNotificationSubscriptionsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + notificationSubscriptions: _list[NotificationSubscription] + +@typing.type_check_only +class NotificationSubscription(typing_extensions.TypedDict, total=False): + allManagedAccounts: bool + callBackUri: str + name: str + registeredEvent: typing_extensions.Literal[ + "NOTIFICATION_EVENT_TYPE_UNSPECIFIED", "PRODUCT_STATUS_CHANGE" + ] + targetAccount: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] diff --git a/googleapiclient-stubs/_apis/merchantapi/products_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/products_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/resources.pyi new file mode 100644 index 00000000..845dc212 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/resources.pyi @@ -0,0 +1,96 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ProductInputsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, dataSource: str = ..., **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def insert( + self, + *, + parent: str, + body: ProductInput = ..., + dataSource: str = ..., + **kwargs: typing.Any, + ) -> ProductInputHttpRequest: ... + + @typing.type_check_only + class ProductsResource(googleapiclient.discovery.Resource): + def get(self, *, name: str, **kwargs: typing.Any) -> ProductHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListProductsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListProductsResponseHttpRequest, + previous_response: ListProductsResponse, + ) -> ListProductsResponseHttpRequest | None: ... + + def productInputs(self) -> ProductInputsResource: ... + def products(self) -> ProductsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class EmptyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Empty: ... + +@typing.type_check_only +class ListProductsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListProductsResponse: ... + +@typing.type_check_only +class ProductHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Product: ... + +@typing.type_check_only +class ProductInputHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ProductInput: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi new file mode 100644 index 00000000..0279e99a --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/products_v1beta/schemas.pyi @@ -0,0 +1,365 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Attributes(typing_extensions.TypedDict, total=False): + additionalImageLinks: _list[str] + adsGrouping: str + adsLabels: _list[str] + adsRedirect: str + adult: bool + ageGroup: str + autoPricingMinPrice: Price + availability: str + availabilityDate: str + brand: str + canonicalLink: str + certifications: _list[Certification] + cloudExportAdditionalProperties: _list[CloudExportAdditionalProperties] + color: str + condition: str + costOfGoodsSold: Price + customLabel0: str + customLabel1: str + customLabel2: str + customLabel3: str + customLabel4: str + description: str + disclosureDate: str + displayAdsId: str + displayAdsLink: str + displayAdsSimilarIds: _list[str] + displayAdsTitle: str + displayAdsValue: float + energyEfficiencyClass: str + excludedDestinations: _list[str] + expirationDate: str + externalSellerId: str + freeShippingThreshold: _list[FreeShippingThreshold] + gender: str + googleProductCategory: str + gtin: str + identifierExists: bool + imageLink: str + includedDestinations: _list[str] + installment: Installment + isBundle: bool + itemGroupId: str + lifestyleImageLinks: _list[str] + link: str + linkTemplate: str + loyaltyPoints: LoyaltyPoints + loyaltyPrograms: _list[LoyaltyProgram] + material: str + maxEnergyEfficiencyClass: str + maxHandlingTime: str + minEnergyEfficiencyClass: str + minHandlingTime: str + mobileLink: str + mobileLinkTemplate: str + mpn: str + multipack: str + pattern: str + pause: str + pickupMethod: str + pickupSla: str + price: Price + productDetails: _list[ProductDetail] + productHeight: ProductDimension + productHighlights: _list[str] + productLength: ProductDimension + productTypes: _list[str] + productWeight: ProductWeight + productWidth: ProductDimension + promotionIds: _list[str] + salePrice: Price + salePriceEffectiveDate: Interval + sellOnGoogleQuantity: str + shipping: _list[Shipping] + shippingHeight: ShippingDimension + shippingLabel: str + shippingLength: ShippingDimension + shippingWeight: ShippingWeight + shippingWidth: ShippingDimension + shoppingAdsExcludedCountries: _list[str] + size: str + sizeSystem: str + sizeTypes: _list[str] + structuredDescription: ProductStructuredDescription + structuredTitle: ProductStructuredTitle + subscriptionCost: SubscriptionCost + taxCategory: str + taxes: _list[Tax] + title: str + transitTimeLabel: str + unitPricingBaseMeasure: UnitPricingBaseMeasure + unitPricingMeasure: UnitPricingMeasure + virtualModelLink: str + +@typing.type_check_only +class Certification(typing_extensions.TypedDict, total=False): + certificationAuthority: str + certificationCode: str + certificationName: str + certificationValue: str + +@typing.type_check_only +class CloudExportAdditionalProperties(typing_extensions.TypedDict, total=False): + boolValue: bool + floatValue: _list[float] + intValue: _list[str] + maxValue: float + minValue: float + propertyName: str + textValue: _list[str] + unitCode: str + +@typing.type_check_only +class CustomAttribute(typing_extensions.TypedDict, total=False): + groupValues: _list[CustomAttribute] + name: str + value: str + +@typing.type_check_only +class DestinationStatus(typing_extensions.TypedDict, total=False): + approvedCountries: _list[str] + disapprovedCountries: _list[str] + pendingCountries: _list[str] + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class Empty(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class FreeShippingThreshold(typing_extensions.TypedDict, total=False): + country: str + priceThreshold: Price + +@typing.type_check_only +class Installment(typing_extensions.TypedDict, total=False): + amount: Price + creditType: str + downpayment: Price + months: str + +@typing.type_check_only +class Interval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + +@typing.type_check_only +class ItemLevelIssue(typing_extensions.TypedDict, total=False): + applicableCountries: _list[str] + attribute: str + code: str + description: str + detail: str + documentation: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + resolution: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "NOT_IMPACTED", "DEMOTED", "DISAPPROVED" + ] + +@typing.type_check_only +class ListProductsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + products: _list[Product] + +@typing.type_check_only +class LoyaltyPoints(typing_extensions.TypedDict, total=False): + name: str + pointsValue: str + ratio: float + +@typing.type_check_only +class LoyaltyProgram(typing_extensions.TypedDict, total=False): + cashbackForFutureUse: Price + loyaltyPoints: str + memberPriceEffectiveDate: Interval + price: Price + programLabel: str + tierLabel: str + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amountMicros: str + currencyCode: str + +@typing.type_check_only +class Product(typing_extensions.TypedDict, total=False): + attributes: Attributes + channel: typing_extensions.Literal["CHANNEL_ENUM_UNSPECIFIED", "ONLINE", "LOCAL"] + contentLanguage: str + customAttributes: _list[CustomAttribute] + dataSource: str + feedLabel: str + name: str + offerId: str + productStatus: ProductStatus + versionNumber: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductDetail(typing_extensions.TypedDict, total=False): + attributeName: str + attributeValue: str + sectionName: str + +@typing.type_check_only +class ProductDimension(typing_extensions.TypedDict, total=False): + unit: str + value: float + +@typing.type_check_only +class ProductInput(typing_extensions.TypedDict, total=False): + attributes: Attributes + channel: typing_extensions.Literal["CHANNEL_ENUM_UNSPECIFIED", "ONLINE", "LOCAL"] + contentLanguage: str + customAttributes: _list[CustomAttribute] + feedLabel: str + name: str + offerId: str + product: str + versionNumber: str + +@typing.type_check_only +class ProductStatus(typing_extensions.TypedDict, total=False): + creationDate: str + destinationStatuses: _list[DestinationStatus] + googleExpirationDate: str + itemLevelIssues: _list[ItemLevelIssue] + lastUpdateDate: str + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class ProductStructuredDescription(typing_extensions.TypedDict, total=False): + content: str + digitalSourceType: str + +@typing.type_check_only +class ProductStructuredTitle(typing_extensions.TypedDict, total=False): + content: str + digitalSourceType: str + +@typing.type_check_only +class ProductWeight(typing_extensions.TypedDict, total=False): + unit: str + value: float + +@typing.type_check_only +class Shipping(typing_extensions.TypedDict, total=False): + country: str + locationGroupName: str + locationId: str + maxHandlingTime: str + maxTransitTime: str + minHandlingTime: str + minTransitTime: str + postalCode: str + price: Price + region: str + service: str + +@typing.type_check_only +class ShippingDimension(typing_extensions.TypedDict, total=False): + unit: str + value: float + +@typing.type_check_only +class ShippingWeight(typing_extensions.TypedDict, total=False): + unit: str + value: float + +@typing.type_check_only +class SubscriptionCost(typing_extensions.TypedDict, total=False): + amount: Price + period: typing_extensions.Literal[ + "SUBSCRIPTION_PERIOD_UNSPECIFIED", "MONTH", "YEAR" + ] + periodLength: str + +@typing.type_check_only +class Tax(typing_extensions.TypedDict, total=False): + country: str + locationId: str + postalCode: str + rate: float + region: str + taxShip: bool + +@typing.type_check_only +class UnitPricingBaseMeasure(typing_extensions.TypedDict, total=False): + unit: str + value: str + +@typing.type_check_only +class UnitPricingMeasure(typing_extensions.TypedDict, total=False): + unit: str + value: float diff --git a/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/resources.pyi new file mode 100644 index 00000000..54c303a7 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/resources.pyi @@ -0,0 +1,74 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class PromotionsResource(googleapiclient.discovery.Resource): + def get( + self, *, name: str, **kwargs: typing.Any + ) -> PromotionHttpRequest: ... + def insert( + self, + *, + parent: str, + body: InsertPromotionRequest = ..., + **kwargs: typing.Any, + ) -> PromotionHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListPromotionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListPromotionsResponseHttpRequest, + previous_response: ListPromotionsResponse, + ) -> ListPromotionsResponseHttpRequest | None: ... + + def promotions(self) -> PromotionsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class ListPromotionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListPromotionsResponse: ... + +@typing.type_check_only +class PromotionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> Promotion: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi new file mode 100644 index 00000000..7b4cfb7f --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/promotions_v1beta/schemas.pyi @@ -0,0 +1,210 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Attributes(typing_extensions.TypedDict, total=False): + brandExclusion: _list[str] + brandInclusion: _list[str] + couponValueType: typing_extensions.Literal[ + "COUPON_VALUE_TYPE_UNSPECIFIED", + "MONEY_OFF", + "PERCENT_OFF", + "BUY_M_GET_N_MONEY_OFF", + "BUY_M_GET_N_PERCENT_OFF", + "BUY_M_GET_MONEY_OFF", + "BUY_M_GET_PERCENT_OFF", + "FREE_GIFT", + "FREE_GIFT_WITH_VALUE", + "FREE_GIFT_WITH_ITEM_ID", + "FREE_SHIPPING_STANDARD", + "FREE_SHIPPING_OVERNIGHT", + "FREE_SHIPPING_TWO_DAY", + ] + freeGiftDescription: str + freeGiftItemId: str + freeGiftValue: Price + genericRedemptionCode: str + getThisQuantityDiscounted: str + itemGroupIdExclusion: _list[str] + itemGroupIdInclusion: _list[str] + itemIdExclusion: _list[str] + itemIdInclusion: _list[str] + limitQuantity: str + limitValue: Price + longTitle: str + minimumPurchaseAmount: Price + minimumPurchaseQuantity: str + moneyOffAmount: Price + offerType: typing_extensions.Literal[ + "OFFER_TYPE_UNSPECIFIED", "NO_CODE", "GENERIC_CODE" + ] + percentOff: str + productApplicability: typing_extensions.Literal[ + "PRODUCT_APPLICABILITY_UNSPECIFIED", "ALL_PRODUCTS", "SPECIFIC_PRODUCTS" + ] + productTypeExclusion: _list[str] + productTypeInclusion: _list[str] + promotionDestinations: _list[ + typing_extensions.Literal[ + "DESTINATION_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "YOUTUBE_SHOPPING", + ] + ] + promotionDisplayTimePeriod: Interval + promotionEffectiveTimePeriod: Interval + promotionUrl: str + storeApplicability: typing_extensions.Literal[ + "STORE_APPLICABILITY_UNSPECIFIED", "ALL_STORES", "SPECIFIC_STORES" + ] + storeCodesExclusion: _list[str] + storeCodesInclusion: _list[str] + +@typing.type_check_only +class CustomAttribute(typing_extensions.TypedDict, total=False): + groupValues: _list[CustomAttribute] + name: str + value: str + +@typing.type_check_only +class DestinationStatus(typing_extensions.TypedDict, total=False): + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + status: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "IN_REVIEW", + "REJECTED", + "LIVE", + "STOPPED", + "EXPIRED", + "PENDING", + ] + +@typing.type_check_only +class InsertPromotionRequest(typing_extensions.TypedDict, total=False): + dataSource: str + promotion: Promotion + +@typing.type_check_only +class Interval(typing_extensions.TypedDict, total=False): + endTime: str + startTime: str + +@typing.type_check_only +class ItemLevelIssue(typing_extensions.TypedDict, total=False): + applicableCountries: _list[str] + attribute: str + code: str + description: str + detail: str + documentation: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + resolution: str + severity: typing_extensions.Literal[ + "SEVERITY_UNSPECIFIED", "NOT_IMPACTED", "DEMOTED", "DISAPPROVED" + ] + +@typing.type_check_only +class ListPromotionsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + promotions: _list[Promotion] + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amountMicros: str + currencyCode: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class Promotion(typing_extensions.TypedDict, total=False): + attributes: Attributes + contentLanguage: str + customAttributes: _list[CustomAttribute] + dataSource: str + name: str + promotionId: str + promotionStatus: PromotionStatus + redemptionChannel: _list[ + typing_extensions.Literal[ + "REDEMPTION_CHANNEL_UNSPECIFIED", "IN_STORE", "ONLINE" + ] + ] + targetCountry: str + versionNumber: str + +@typing.type_check_only +class PromotionStatus(typing_extensions.TypedDict, total=False): + creationDate: str + destinationStatuses: _list[DestinationStatus] + itemLevelIssues: _list[ItemLevelIssue] + lastUpdateDate: str diff --git a/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/resources.pyi new file mode 100644 index 00000000..37fbdd8f --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/resources.pyi @@ -0,0 +1,56 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class QuotasResource(googleapiclient.discovery.Resource): + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListQuotaGroupsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListQuotaGroupsResponseHttpRequest, + previous_response: ListQuotaGroupsResponse, + ) -> ListQuotaGroupsResponseHttpRequest | None: ... + + def quotas(self) -> QuotasResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class ListQuotaGroupsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListQuotaGroupsResponse: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi new file mode 100644 index 00000000..1bc6d4f4 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/quota_v1beta/schemas.pyi @@ -0,0 +1,58 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class ListQuotaGroupsResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + quotaGroups: _list[QuotaGroup] + +@typing.type_check_only +class MethodDetails(typing_extensions.TypedDict, total=False): + method: str + path: str + subapi: str + version: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class QuotaGroup(typing_extensions.TypedDict, total=False): + methodDetails: _list[MethodDetails] + name: str + quotaLimit: str + quotaMinuteLimit: str + quotaUsage: str diff --git a/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/__init__.pyi b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/resources.pyi b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/resources.pyi new file mode 100644 index 00000000..2fcf961c --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/resources.pyi @@ -0,0 +1,51 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class MerchantResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AccountsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ReportsResource(googleapiclient.discovery.Resource): + def search( + self, *, parent: str, body: SearchRequest = ..., **kwargs: typing.Any + ) -> SearchResponseHttpRequest: ... + def search_next( + self, + previous_request: SearchResponseHttpRequest, + previous_response: SearchResponse, + ) -> SearchResponseHttpRequest | None: ... + + def reports(self) -> ReportsResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def accounts(self) -> AccountsResource: ... + +@typing.type_check_only +class SearchResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> SearchResponse: ... diff --git a/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi new file mode 100644 index 00000000..49767b56 --- /dev/null +++ b/googleapiclient-stubs/_apis/merchantapi/reports_v1beta/schemas.pyi @@ -0,0 +1,359 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class BestSellersBrandView(typing_extensions.TypedDict, total=False): + brand: str + previousRank: str + previousRelativeDemand: typing_extensions.Literal[ + "RELATIVE_DEMAND_ENUM_UNSPECIFIED", + "VERY_LOW", + "LOW", + "MEDIUM", + "HIGH", + "VERY_HIGH", + ] + rank: str + relativeDemand: typing_extensions.Literal[ + "RELATIVE_DEMAND_ENUM_UNSPECIFIED", + "VERY_LOW", + "LOW", + "MEDIUM", + "HIGH", + "VERY_HIGH", + ] + relativeDemandChange: typing_extensions.Literal[ + "RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED", "SINKER", "FLAT", "RISER" + ] + reportCategoryId: str + reportCountryCode: str + reportDate: Date + reportGranularity: typing_extensions.Literal[ + "REPORT_GRANULARITY_ENUM_UNSPECIFIED", "WEEKLY", "MONTHLY" + ] + +@typing.type_check_only +class BestSellersProductClusterView(typing_extensions.TypedDict, total=False): + brand: str + brandInventoryStatus: typing_extensions.Literal[ + "INVENTORY_STATUS_UNSPECIFIED", "IN_STOCK", "OUT_OF_STOCK", "NOT_IN_INVENTORY" + ] + categoryL1: str + categoryL2: str + categoryL3: str + categoryL4: str + categoryL5: str + inventoryStatus: typing_extensions.Literal[ + "INVENTORY_STATUS_UNSPECIFIED", "IN_STOCK", "OUT_OF_STOCK", "NOT_IN_INVENTORY" + ] + previousRank: str + previousRelativeDemand: typing_extensions.Literal[ + "RELATIVE_DEMAND_ENUM_UNSPECIFIED", + "VERY_LOW", + "LOW", + "MEDIUM", + "HIGH", + "VERY_HIGH", + ] + rank: str + relativeDemand: typing_extensions.Literal[ + "RELATIVE_DEMAND_ENUM_UNSPECIFIED", + "VERY_LOW", + "LOW", + "MEDIUM", + "HIGH", + "VERY_HIGH", + ] + relativeDemandChange: typing_extensions.Literal[ + "RELATIVE_DEMAND_CHANGE_TYPE_ENUM_UNSPECIFIED", "SINKER", "FLAT", "RISER" + ] + reportCategoryId: str + reportCountryCode: str + reportDate: Date + reportGranularity: typing_extensions.Literal[ + "REPORT_GRANULARITY_ENUM_UNSPECIFIED", "WEEKLY", "MONTHLY" + ] + title: str + variantGtins: _list[str] + +@typing.type_check_only +class CompetitiveVisibilityBenchmarkView(typing_extensions.TypedDict, total=False): + categoryBenchmarkVisibilityTrend: float + date: Date + reportCategoryId: str + reportCountryCode: str + trafficSource: typing_extensions.Literal[ + "TRAFFIC_SOURCE_ENUM_UNSPECIFIED", "ORGANIC", "ADS", "ALL" + ] + yourDomainVisibilityTrend: float + +@typing.type_check_only +class CompetitiveVisibilityCompetitorView(typing_extensions.TypedDict, total=False): + adsOrganicRatio: float + date: Date + domain: str + higherPositionRate: float + isYourDomain: bool + pageOverlapRate: float + rank: str + relativeVisibility: float + reportCategoryId: str + reportCountryCode: str + trafficSource: typing_extensions.Literal[ + "TRAFFIC_SOURCE_ENUM_UNSPECIFIED", "ORGANIC", "ADS", "ALL" + ] + +@typing.type_check_only +class CompetitiveVisibilityTopMerchantView(typing_extensions.TypedDict, total=False): + adsOrganicRatio: float + date: Date + domain: str + higherPositionRate: float + isYourDomain: bool + pageOverlapRate: float + rank: str + reportCategoryId: str + reportCountryCode: str + trafficSource: typing_extensions.Literal[ + "TRAFFIC_SOURCE_ENUM_UNSPECIFIED", "ORGANIC", "ADS", "ALL" + ] + +@typing.type_check_only +class Date(typing_extensions.TypedDict, total=False): + day: int + month: int + year: int + +@typing.type_check_only +class IssueSeverityPerReportingContext(typing_extensions.TypedDict, total=False): + demotedCountries: _list[str] + disapprovedCountries: _list[str] + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ItemIssue(typing_extensions.TypedDict, total=False): + resolution: typing_extensions.Literal[ + "ITEM_ISSUE_RESOLUTION_UNSPECIFIED", "MERCHANT_ACTION", "PENDING_PROCESSING" + ] + severity: ItemIssueSeverity + type: ItemIssueType + +@typing.type_check_only +class ItemIssueSeverity(typing_extensions.TypedDict, total=False): + aggregatedSeverity: typing_extensions.Literal[ + "AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED", "DISAPPROVED", "DEMOTED", "PENDING" + ] + severityPerReportingContext: _list[IssueSeverityPerReportingContext] + +@typing.type_check_only +class ItemIssueType(typing_extensions.TypedDict, total=False): + canonicalAttribute: str + code: str + +@typing.type_check_only +class NonProductPerformanceView(typing_extensions.TypedDict, total=False): + clickThroughRate: float + clicks: str + date: Date + impressions: str + week: Date + +@typing.type_check_only +class Price(typing_extensions.TypedDict, total=False): + amountMicros: str + currencyCode: str + +@typing.type_check_only +class PriceCompetitivenessProductView(typing_extensions.TypedDict, total=False): + benchmarkPrice: Price + brand: str + categoryL1: str + categoryL2: str + categoryL3: str + categoryL4: str + categoryL5: str + id: str + offerId: str + price: Price + productTypeL1: str + productTypeL2: str + productTypeL3: str + productTypeL4: str + productTypeL5: str + reportCountryCode: str + title: str + +@typing.type_check_only +class PriceInsightsProductView(typing_extensions.TypedDict, total=False): + brand: str + categoryL1: str + categoryL2: str + categoryL3: str + categoryL4: str + categoryL5: str + effectiveness: typing_extensions.Literal[ + "EFFECTIVENESS_UNSPECIFIED", "LOW", "MEDIUM", "HIGH" + ] + id: str + offerId: str + predictedClicksChangeFraction: float + predictedConversionsChangeFraction: float + predictedImpressionsChangeFraction: float + price: Price + productTypeL1: str + productTypeL2: str + productTypeL3: str + productTypeL4: str + productTypeL5: str + suggestedPrice: Price + title: str + +@typing.type_check_only +class ProductChange(typing_extensions.TypedDict, total=False): + newValue: str + oldValue: str + regionCode: str + reportingContext: typing_extensions.Literal[ + "REPORTING_CONTEXT_ENUM_UNSPECIFIED", + "SHOPPING_ADS", + "DISCOVERY_ADS", + "DEMAND_GEN_ADS", + "DEMAND_GEN_ADS_DISCOVER_SURFACE", + "VIDEO_ADS", + "DISPLAY_ADS", + "LOCAL_INVENTORY_ADS", + "VEHICLE_INVENTORY_ADS", + "FREE_LISTINGS", + "FREE_LOCAL_LISTINGS", + "FREE_LOCAL_VEHICLE_LISTINGS", + "YOUTUBE_SHOPPING", + "CLOUD_RETAIL", + "LOCAL_CLOUD_RETAIL", + ] + +@typing.type_check_only +class ProductPerformanceView(typing_extensions.TypedDict, total=False): + brand: str + categoryL1: str + categoryL2: str + categoryL3: str + categoryL4: str + categoryL5: str + clickThroughRate: float + clicks: str + conversionRate: float + conversionValue: Price + conversions: float + customLabel0: str + customLabel1: str + customLabel2: str + customLabel3: str + customLabel4: str + customerCountryCode: str + date: Date + impressions: str + marketingMethod: typing_extensions.Literal[ + "MARKETING_METHOD_ENUM_UNSPECIFIED", "ORGANIC", "ADS" + ] + offerId: str + productTypeL1: str + productTypeL2: str + productTypeL3: str + productTypeL4: str + productTypeL5: str + title: str + week: Date + +@typing.type_check_only +class ProductStatusChangeMessage(typing_extensions.TypedDict, total=False): + account: str + attribute: typing_extensions.Literal["ATTRIBUTE_UNSPECIFIED", "STATUS"] + changes: _list[ProductChange] + managingAccount: str + resource: str + resourceId: str + resourceType: typing_extensions.Literal["RESOURCE_UNSPECIFIED", "PRODUCT"] + +@typing.type_check_only +class ProductView(typing_extensions.TypedDict, total=False): + aggregatedReportingContextStatus: typing_extensions.Literal[ + "AGGREGATED_REPORTING_CONTEXT_STATUS_UNSPECIFIED", + "NOT_ELIGIBLE_OR_DISAPPROVED", + "PENDING", + "ELIGIBLE_LIMITED", + "ELIGIBLE", + ] + availability: str + brand: str + categoryL1: str + categoryL2: str + categoryL3: str + categoryL4: str + categoryL5: str + channel: typing_extensions.Literal["CHANNEL_ENUM_UNSPECIFIED", "ONLINE", "LOCAL"] + clickPotential: typing_extensions.Literal[ + "CLICK_POTENTIAL_UNSPECIFIED", "LOW", "MEDIUM", "HIGH" + ] + clickPotentialRank: str + condition: str + creationTime: str + expirationDate: Date + feedLabel: str + gtin: _list[str] + id: str + itemGroupId: str + itemIssues: _list[ItemIssue] + languageCode: str + offerId: str + price: Price + productTypeL1: str + productTypeL2: str + productTypeL3: str + productTypeL4: str + productTypeL5: str + shippingLabel: str + thumbnailLink: str + title: str + +@typing.type_check_only +class ReportRow(typing_extensions.TypedDict, total=False): + bestSellersBrandView: BestSellersBrandView + bestSellersProductClusterView: BestSellersProductClusterView + competitiveVisibilityBenchmarkView: CompetitiveVisibilityBenchmarkView + competitiveVisibilityCompetitorView: CompetitiveVisibilityCompetitorView + competitiveVisibilityTopMerchantView: CompetitiveVisibilityTopMerchantView + nonProductPerformanceView: NonProductPerformanceView + priceCompetitivenessProductView: PriceCompetitivenessProductView + priceInsightsProductView: PriceInsightsProductView + productPerformanceView: ProductPerformanceView + productView: ProductView + +@typing.type_check_only +class SearchRequest(typing_extensions.TypedDict, total=False): + pageSize: int + pageToken: str + query: str + +@typing.type_check_only +class SearchResponse(typing_extensions.TypedDict, total=False): + nextPageToken: str + results: _list[ReportRow] diff --git a/googleapiclient-stubs/_apis/metastore/v1/resources.pyi b/googleapiclient-stubs/_apis/metastore/v1/resources.pyi index 9c4f256a..0977271e 100644 --- a/googleapiclient-stubs/_apis/metastore/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/metastore/v1/resources.pyi @@ -233,6 +233,30 @@ class DataprocMetastoreResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class MigrationExecutionsResource(googleapiclient.discovery.Resource): + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> MigrationExecutionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListMigrationExecutionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListMigrationExecutionsResponseHttpRequest, + previous_response: ListMigrationExecutionsResponse, + ) -> ListMigrationExecutionsResponseHttpRequest | None: ... + def alterLocation( self, *, @@ -247,6 +271,20 @@ class DataprocMetastoreResource(googleapiclient.discovery.Resource): body: AlterTablePropertiesRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def cancelMigration( + self, + *, + service: str, + body: CancelMigrationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def completeMigration( + self, + *, + service: str, + body: CompleteMigrationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def create( self, *, @@ -328,6 +366,13 @@ class DataprocMetastoreResource(googleapiclient.discovery.Resource): body: SetIamPolicyRequest = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def startMigration( + self, + *, + service: str, + body: StartMigrationRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def testIamPermissions( self, *, @@ -338,6 +383,7 @@ class DataprocMetastoreResource(googleapiclient.discovery.Resource): def backups(self) -> BackupsResource: ... def databases(self) -> DatabasesResource: ... def metadataImports(self) -> MetadataImportsResource: ... + def migrationExecutions(self) -> MigrationExecutionsResource: ... def get( self, *, name: str, **kwargs: typing.Any @@ -432,6 +478,14 @@ class ListMetadataImportsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListMetadataImportsResponse: ... +@typing.type_check_only +class ListMigrationExecutionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListMigrationExecutionsResponse: ... + @typing.type_check_only class ListOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -464,6 +518,14 @@ class MetadataImportHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> MetadataImport: ... +@typing.type_check_only +class MigrationExecutionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> MigrationExecution: ... + @typing.type_check_only class OperationHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/metastore/v1/schemas.pyi b/googleapiclient-stubs/_apis/metastore/v1/schemas.pyi index 5d406490..fc5a2189 100644 --- a/googleapiclient-stubs/_apis/metastore/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/metastore/v1/schemas.pyi @@ -32,6 +32,12 @@ class AuditLogConfig(typing_extensions.TypedDict, total=False): "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" ] +@typing.type_check_only +class AutoscalingConfig(typing_extensions.TypedDict, total=False): + autoscalingEnabled: bool + autoscalingFactor: float + limitConfig: LimitConfig + @typing.type_check_only class AuxiliaryVersionConfig(typing_extensions.TypedDict, total=False): configOverrides: dict[str, typing.Any] @@ -63,9 +69,41 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class CancelMigrationRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CdcConfig(typing_extensions.TypedDict, total=False): + bucket: str + password: str + reverseProxySubnet: str + rootPath: str + subnetIpRange: str + username: str + vpcNetwork: str + +@typing.type_check_only +class CloudSQLConnectionConfig(typing_extensions.TypedDict, total=False): + hiveDatabaseName: str + instanceConnectionName: str + ipAddress: str + natSubnet: str + password: str + port: int + proxySubnet: str + username: str + +@typing.type_check_only +class CloudSQLMigrationConfig(typing_extensions.TypedDict, total=False): + cdcConfig: CdcConfig + cloudSqlConnectionConfig: CloudSQLConnectionConfig + +@typing.type_check_only +class CompleteMigrationRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Consumer(typing_extensions.TypedDict, total=False): endpointLocation: str @@ -158,6 +196,11 @@ class LatestBackup(typing_extensions.TypedDict, total=False): "STATE_UNSPECIFIED", "IN_PROGRESS", "SUCCEEDED", "FAILED" ] +@typing.type_check_only +class LimitConfig(typing_extensions.TypedDict, total=False): + maxScalingFactor: float + minScalingFactor: float + @typing.type_check_only class ListBackupsResponse(typing_extensions.TypedDict, total=False): backups: _list[Backup] @@ -181,6 +224,12 @@ class ListMetadataImportsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str unreachable: _list[str] +@typing.type_check_only +class ListMigrationExecutionsResponse(typing_extensions.TypedDict, total=False): + migrationExecutions: _list[MigrationExecution] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -251,6 +300,26 @@ class MetadataManagementActivity(typing_extensions.TypedDict, total=False): metadataExports: _list[MetadataExport] restores: _list[Restore] +@typing.type_check_only +class MigrationExecution(typing_extensions.TypedDict, total=False): + cloudSqlMigrationConfig: CloudSQLMigrationConfig + createTime: str + endTime: str + name: str + phase: typing_extensions.Literal["PHASE_UNSPECIFIED", "REPLICATION", "CUTOVER"] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", + "STARTING", + "RUNNING", + "CANCELLING", + "AWAITING_USER_ACTION", + "SUCCEEDED", + "FAILED", + "CANCELLED", + "DELETING", + ] + stateMessage: str + @typing.type_check_only class MoveTableToDatabaseRequest(typing_extensions.TypedDict, total=False): dbName: str @@ -324,6 +393,7 @@ class RestoreServiceRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class ScalingConfig(typing_extensions.TypedDict, total=False): + autoscalingConfig: AutoscalingConfig instanceSize: typing_extensions.Literal[ "INSTANCE_SIZE_UNSPECIFIED", "EXTRA_SMALL", @@ -380,6 +450,8 @@ class Service(typing_extensions.TypedDict, total=False): "UPDATING", "DELETING", "ERROR", + "AUTOSCALING", + "MIGRATING", ] stateMessage: str telemetryConfig: TelemetryConfig @@ -392,6 +464,11 @@ class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy updateMask: str +@typing.type_check_only +class StartMigrationRequest(typing_extensions.TypedDict, total=False): + migrationExecution: MigrationExecution + requestId: str + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int diff --git a/googleapiclient-stubs/_apis/metastore/v1alpha/schemas.pyi b/googleapiclient-stubs/_apis/metastore/v1alpha/schemas.pyi index 4b75a45e..b9ec6f96 100644 --- a/googleapiclient-stubs/_apis/metastore/v1alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/metastore/v1alpha/schemas.pyi @@ -118,6 +118,11 @@ class Consumer(typing_extensions.TypedDict, total=False): endpointUri: str subnetwork: str +@typing.type_check_only +class CustomRegionConfig(typing_extensions.TypedDict, total=False): + readOnlyRegions: _list[str] + readWriteRegions: _list[str] + @typing.type_check_only class CustomRegionMetadata(typing_extensions.TypedDict, total=False): optionalReadOnlyRegions: _list[str] @@ -346,6 +351,11 @@ class MoveTableToDatabaseRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class MoveTableToDatabaseResponse(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class MultiRegionConfig(typing_extensions.TypedDict, total=False): + certificates: _list[RootCACertificate] + customRegionConfig: CustomRegionConfig + @typing.type_check_only class MultiRegionMetadata(typing_extensions.TypedDict, total=False): constituentRegions: _list[str] @@ -417,6 +427,11 @@ class RestoreServiceRequest(typing_extensions.TypedDict, total=False): "RESTORE_TYPE_UNSPECIFIED", "FULL", "METADATA_ONLY" ] +@typing.type_check_only +class RootCACertificate(typing_extensions.TypedDict, total=False): + certificate: str + expirationTime: str + @typing.type_check_only class ScalingConfig(typing_extensions.TypedDict, total=False): autoscalingConfig: AutoscalingConfig @@ -458,6 +473,7 @@ class Service(typing_extensions.TypedDict, total=False): maintenanceWindow: MaintenanceWindow metadataIntegration: MetadataIntegration metadataManagementActivity: MetadataManagementActivity + multiRegionConfig: MultiRegionConfig name: str network: str networkConfig: NetworkConfig @@ -476,6 +492,7 @@ class Service(typing_extensions.TypedDict, total=False): "UPDATING", "DELETING", "ERROR", + "AUTOSCALING", "MIGRATING", ] stateMessage: str diff --git a/googleapiclient-stubs/_apis/metastore/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/metastore/v1beta/schemas.pyi index 4b75a45e..b9ec6f96 100644 --- a/googleapiclient-stubs/_apis/metastore/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/metastore/v1beta/schemas.pyi @@ -118,6 +118,11 @@ class Consumer(typing_extensions.TypedDict, total=False): endpointUri: str subnetwork: str +@typing.type_check_only +class CustomRegionConfig(typing_extensions.TypedDict, total=False): + readOnlyRegions: _list[str] + readWriteRegions: _list[str] + @typing.type_check_only class CustomRegionMetadata(typing_extensions.TypedDict, total=False): optionalReadOnlyRegions: _list[str] @@ -346,6 +351,11 @@ class MoveTableToDatabaseRequest(typing_extensions.TypedDict, total=False): @typing.type_check_only class MoveTableToDatabaseResponse(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class MultiRegionConfig(typing_extensions.TypedDict, total=False): + certificates: _list[RootCACertificate] + customRegionConfig: CustomRegionConfig + @typing.type_check_only class MultiRegionMetadata(typing_extensions.TypedDict, total=False): constituentRegions: _list[str] @@ -417,6 +427,11 @@ class RestoreServiceRequest(typing_extensions.TypedDict, total=False): "RESTORE_TYPE_UNSPECIFIED", "FULL", "METADATA_ONLY" ] +@typing.type_check_only +class RootCACertificate(typing_extensions.TypedDict, total=False): + certificate: str + expirationTime: str + @typing.type_check_only class ScalingConfig(typing_extensions.TypedDict, total=False): autoscalingConfig: AutoscalingConfig @@ -458,6 +473,7 @@ class Service(typing_extensions.TypedDict, total=False): maintenanceWindow: MaintenanceWindow metadataIntegration: MetadataIntegration metadataManagementActivity: MetadataManagementActivity + multiRegionConfig: MultiRegionConfig name: str network: str networkConfig: NetworkConfig @@ -476,6 +492,7 @@ class Service(typing_extensions.TypedDict, total=False): "UPDATING", "DELETING", "ERROR", + "AUTOSCALING", "MIGRATING", ] stateMessage: str diff --git a/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/resources.pyi b/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/resources.pyi index b31c6389..52c89a27 100644 --- a/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/resources.pyi +++ b/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/resources.pyi @@ -95,6 +95,44 @@ class MigrationCenterAPIResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> ReportAssetFramesResponseHttpRequest: ... + @typing.type_check_only + class AssetsExportJobsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: AssetsExportJob = ..., + assetsExportJobId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> AssetsExportJobHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAssetsExportJobsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAssetsExportJobsResponseHttpRequest, + previous_response: ListAssetsExportJobsResponse, + ) -> ListAssetsExportJobsResponseHttpRequest | None: ... + def run( + self, + *, + name: str, + body: RunAssetsExportJobRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class DiscoveryClientsResource(googleapiclient.discovery.Resource): def create( @@ -571,6 +609,7 @@ class MigrationCenterAPIResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... def assets(self) -> AssetsResource: ... + def assetsExportJobs(self) -> AssetsExportJobsResource: ... def discoveryClients(self) -> DiscoveryClientsResource: ... def groups(self) -> GroupsResource: ... def importJobs(self) -> ImportJobsResource: ... @@ -611,6 +650,14 @@ class AssetHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Asset: ... +@typing.type_check_only +class AssetsExportJobHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AssetsExportJob: ... + @typing.type_check_only class BatchUpdateAssetsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -667,6 +714,14 @@ class ImportJobHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ImportJob: ... +@typing.type_check_only +class ListAssetsExportJobsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAssetsExportJobsResponse: ... + @typing.type_check_only class ListAssetsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi index 619db2f8..e16fb2fa 100644 --- a/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/migrationcenter/v1alpha1/schemas.pyi @@ -117,6 +117,38 @@ class AssetList(typing_extensions.TypedDict, total=False): class AssetPerformanceData(typing_extensions.TypedDict, total=False): dailyResourceUsageAggregations: _list[DailyResourceUsageAggregation] +@typing.type_check_only +class AssetsExportJob(typing_extensions.TypedDict, total=False): + condition: AssetsExportJobExportCondition + createTime: str + labels: dict[str, typing.Any] + name: str + networkDependencies: AssetsExportJobNetworkDependencies + recentExecutions: _list[AssetsExportJobExecution] + signedUriDestination: SignedUriDestination + updateTime: str + +@typing.type_check_only +class AssetsExportJobExecution(typing_extensions.TypedDict, total=False): + endTime: str + executionId: str + expireTime: str + result: AssetsExportJobExecutionResult + startTime: str + +@typing.type_check_only +class AssetsExportJobExecutionResult(typing_extensions.TypedDict, total=False): + error: Status + signedUris: SignedUris + +@typing.type_check_only +class AssetsExportJobExportCondition(typing_extensions.TypedDict, total=False): + filter: str + +@typing.type_check_only +class AssetsExportJobNetworkDependencies(typing_extensions.TypedDict, total=False): + maxDays: int + @typing.type_check_only class AwsEc2PlatformDetails(typing_extensions.TypedDict, total=False): location: str @@ -221,6 +253,7 @@ class CloudSqlForSqlServerShape(typing_extensions.TypedDict, total=False): egressGbPerMonth: str logicalCoreCount: int memoryMb: int + smtEnabled: bool storage: ComputeStorageDescriptor version: typing_extensions.Literal[ "SQL_SERVER_VERSION_UNSPECIFIED", @@ -255,6 +288,13 @@ class ComputeEnginePreferences(typing_extensions.TypedDict, total=False): "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE", ] machinePreferences: MachinePreferences + multithreading: typing_extensions.Literal[ + "MULTITHREADING_UNSPECIFIED", + "MULTITHREADING_DISABLED", + "MULTITHREADING_ENABLED", + "MULTITHREADING_DISABLED_WITH_COMPENSATION", + ] + osPricingPreferences: OperatingSystemPricingPreferences persistentDiskType: typing_extensions.Literal[ "PERSISTENT_DISK_TYPE_UNSPECIFIED", "PERSISTENT_DISK_TYPE_STANDARD", @@ -269,6 +309,7 @@ class ComputeEngineShapeDescriptor(typing_extensions.TypedDict, total=False): memoryMb: int physicalCoreCount: int series: str + smtEnabled: bool storage: _list[ComputeStorageDescriptor] @typing.type_check_only @@ -398,6 +439,8 @@ class DatabasePreferencesCloudSqlCommon(typing_extensions.TypedDict, total=False "COMMITMENT_PLAN_NONE", "COMMITMENT_PLAN_ONE_YEAR", "COMMITMENT_PLAN_THREE_YEARS", + "COMMITMENT_PLAN_FLEXIBLE_ONE_YEAR", + "COMMITMENT_PLAN_FLEXIBLE_THREE_YEARS", ] edition: typing_extensions.Literal[ "CLOUD_SQL_EDITION_UNSPECIFIED", @@ -444,7 +487,7 @@ class DatabasePreferencesCloudSqlSqlServer(typing_extensions.TypedDict, total=Fa "MULTITHREADING_UNSPECIFIED", "MULTITHREADING_DISABLED", "MULTITHREADING_ENABLED", - "MULTITHREADING_AUTO_SELECT", + "MULTITHREADING_DISABLED_WITH_COMPENSATION", ] versionType: typing_extensions.Literal[ "VERSION_TYPE_UNSPECIFIED", @@ -799,6 +842,11 @@ class IssueCompatibilityIssue(typing_extensions.TypedDict, total=False): "CATEGORY_UNSPECIFIED", "DATABASE_FLAG", "DATABASE_FEATURE" ] +@typing.type_check_only +class ListAssetsExportJobsResponse(typing_extensions.TypedDict, total=False): + assetsExportJobs: _list[AssetsExportJob] + nextPageToken: str + @typing.type_check_only class ListAssetsResponse(typing_extensions.TypedDict, total=False): assets: _list[Asset] @@ -1019,6 +1067,29 @@ class OpenFileDetails(typing_extensions.TypedDict, total=False): class OpenFileList(typing_extensions.TypedDict, total=False): entries: _list[OpenFileDetails] +@typing.type_check_only +class OperatingSystemPricingPreferences(typing_extensions.TypedDict, total=False): + rhel: OperatingSystemPricingPreferencesOperatingSystemPricing + sles: OperatingSystemPricingPreferencesOperatingSystemPricing + slesForSap: OperatingSystemPricingPreferencesOperatingSystemPricing + windows: OperatingSystemPricingPreferencesOperatingSystemPricing + +@typing.type_check_only +class OperatingSystemPricingPreferencesOperatingSystemPricing( + typing_extensions.TypedDict, total=False +): + commitmentPlan: typing_extensions.Literal[ + "COMMITMENT_PLAN_UNSPECIFIED", + "COMMITMENT_PLAN_ON_DEMAND", + "COMMITMENT_PLAN_1_YEAR", + "COMMITMENT_PLAN_3_YEAR", + ] + licenseType: typing_extensions.Literal[ + "LICENSE_TYPE_UNSPECIFIED", + "LICENSE_TYPE_DEFAULT", + "LICENSE_TYPE_BRING_YOUR_OWN_LICENSE", + ] + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -1283,6 +1354,14 @@ class ReportSummaryVMWareNodeAllocation(typing_extensions.TypedDict, total=False nodeCount: str vmwareNode: ReportSummaryVMWareNode +@typing.type_check_only +class RunAssetsExportJobRequest(typing_extensions.TypedDict, total=False): + requestId: str + +@typing.type_check_only +class RunAssetsExportJobResponse(typing_extensions.TypedDict, total=False): + assetsExportJobExecution: AssetsExportJobExecution + @typing.type_check_only class RunImportJobRequest(typing_extensions.TypedDict, total=False): requestId: str @@ -1335,6 +1414,18 @@ class Settings(typing_extensions.TypedDict, total=False): name: str preferenceSet: str +@typing.type_check_only +class SignedUri(typing_extensions.TypedDict, total=False): + file: str + uri: str + +@typing.type_check_only +class SignedUriDestination(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class SignedUris(typing_extensions.TypedDict, total=False): + signedUris: _list[SignedUri] + @typing.type_check_only class SoftwareInsight(typing_extensions.TypedDict, total=False): detectedSoftware: DetectedSoftware @@ -1346,6 +1437,8 @@ class SoleTenancyPreferences(typing_extensions.TypedDict, total=False): "ON_DEMAND", "COMMITMENT_1_YEAR", "COMMITMENT_3_YEAR", + "COMMITMENT_FLEXIBLE_1_YEAR", + "COMMITMENT_FLEXIBLE_3_YEAR", ] cpuOvercommitRatio: float hostMaintenancePolicy: typing_extensions.Literal[ @@ -1355,6 +1448,7 @@ class SoleTenancyPreferences(typing_extensions.TypedDict, total=False): "HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP", ] nodeTypes: _list[SoleTenantNodeType] + osPricingPreferences: OperatingSystemPricingPreferences @typing.type_check_only class SoleTenantNodeType(typing_extensions.TypedDict, total=False): @@ -1500,6 +1594,8 @@ class VirtualMachinePreferences(typing_extensions.TypedDict, total=False): "COMMITMENT_PLAN_NONE", "COMMITMENT_PLAN_ONE_YEAR", "COMMITMENT_PLAN_THREE_YEARS", + "COMMITMENT_PLAN_FLEXIBLE_ONE_YEAR", + "COMMITMENT_PLAN_FLEXIBLE_THREE_YEARS", ] computeEnginePreferences: ComputeEnginePreferences networkCostParameters: VirtualMachinePreferencesNetworkCostParameters @@ -1573,6 +1669,8 @@ class VmwareEnginePreferences(typing_extensions.TypedDict, total=False): "COMMITMENT_3_YEAR_MONTHLY_PAYMENTS", "COMMITMENT_1_YEAR_UPFRONT_PAYMENT", "COMMITMENT_3_YEAR_UPFRONT_PAYMENT", + "COMMITMENT_FLEXIBLE_3_YEAR_MONTHLY_PAYMENTS", + "COMMITMENT_FLEXIBLE_3_YEAR_UPFRONT_PAYMENT", ] cpuOvercommitRatio: float memoryOvercommitRatio: float diff --git a/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi b/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi index f0a634bb..bab5e4e0 100644 --- a/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/monitoring/v1/schemas.pyi @@ -115,7 +115,6 @@ class DashboardAnnotations(typing_extensions.TypedDict, total=False): @typing.type_check_only class DashboardFilter(typing_extensions.TypedDict, total=False): - applyToNewWidgets: bool filterType: typing_extensions.Literal[ "FILTER_TYPE_UNSPECIFIED", "RESOURCE_LABEL", @@ -123,10 +122,17 @@ class DashboardFilter(typing_extensions.TypedDict, total=False): "USER_METADATA_LABEL", "SYSTEM_METADATA_LABEL", "GROUP", + "VALUE_ONLY", ] labelKey: str + stringArray: StringArray + stringArrayValue: StringArray stringValue: str templateVariable: str + timeSeriesQuery: TimeSeriesQuery + valueType: typing_extensions.Literal[ + "VALUE_TYPE_UNSPECIFIED", "STRING", "STRING_ARRAY" + ] @typing.type_check_only class DataSet(typing_extensions.TypedDict, total=False): @@ -195,6 +201,8 @@ class EventAnnotation(typing_extensions.TypedDict, total=False): "CLOUD_SQL_START_STOP", "CLOUD_SQL_STORAGE", "UPTIME_CHECK_FAILURE", + "CLOUD_ALERTING_ALERT", + "SERVICE_HEALTH_INCIDENT", ] filter: str resourceNames: _list[str] @@ -412,7 +420,9 @@ class RowLayout(typing_extensions.TypedDict, total=False): @typing.type_check_only class Scorecard(typing_extensions.TypedDict, total=False): blankView: Empty + dimensions: _list[Dimension] gaugeView: GaugeView + measures: _list[Measure] sparkChartView: SparkChartView thresholds: _list[Threshold] timeSeriesQuery: TimeSeriesQuery @@ -453,6 +463,10 @@ class Status(typing_extensions.TypedDict, total=False): details: _list[dict[str, typing.Any]] message: str +@typing.type_check_only +class StringArray(typing_extensions.TypedDict, total=False): + values: _list[str] + @typing.type_check_only class TableDataSet(typing_extensions.TypedDict, total=False): minAlignmentPeriod: str diff --git a/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi b/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi index 3860248c..b5d9e81e 100644 --- a/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/monitoring/v3/schemas.pyi @@ -224,6 +224,7 @@ class DistributionCut(typing_extensions.TypedDict, total=False): @typing.type_check_only class Documentation(typing_extensions.TypedDict, total=False): content: str + links: _list[Link] mimeType: str subject: str @@ -410,6 +411,11 @@ class Linear(typing_extensions.TypedDict, total=False): offset: float width: float +@typing.type_check_only +class Link(typing_extensions.TypedDict, total=False): + displayName: str + url: str + @typing.type_check_only class ListAlertPoliciesResponse(typing_extensions.TypedDict, total=False): alertPolicies: _list[AlertPolicy] @@ -859,6 +865,7 @@ class TimeInterval(typing_extensions.TypedDict, total=False): @typing.type_check_only class TimeSeries(typing_extensions.TypedDict, total=False): + description: str metadata: MonitoredResourceMetadata metric: Metric metricKind: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi b/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi index 17a58ea7..8d965d28 100644 --- a/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkconnectivity/v1/schemas.pyi @@ -37,10 +37,12 @@ class Binding(typing_extensions.TypedDict, total=False): @typing.type_check_only class ConsumerPscConfig(typing_extensions.TypedDict, total=False): + consumerInstanceProject: str disableGlobalAccess: bool network: str producerInstanceId: str project: str + serviceAttachmentIpAddressMap: dict[str, typing.Any] state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "VALID", @@ -198,12 +200,14 @@ class InternalRange(typing_extensions.TypedDict, total=False): @typing.type_check_only class LinkedInterconnectAttachments(typing_extensions.TypedDict, total=False): + includeImportRanges: _list[str] siteToSiteDataTransfer: bool uris: _list[str] vpcNetwork: str @typing.type_check_only class LinkedRouterApplianceInstances(typing_extensions.TypedDict, total=False): + includeImportRanges: _list[str] instances: _list[RouterApplianceInstance] siteToSiteDataTransfer: bool vpcNetwork: str @@ -211,10 +215,12 @@ class LinkedRouterApplianceInstances(typing_extensions.TypedDict, total=False): @typing.type_check_only class LinkedVpcNetwork(typing_extensions.TypedDict, total=False): excludeExportRanges: _list[str] + includeExportRanges: _list[str] uri: str @typing.type_check_only class LinkedVpnTunnels(typing_extensions.TypedDict, total=False): + includeImportRanges: _list[str] siteToSiteDataTransfer: bool uris: _list[str] vpcNetwork: str @@ -320,6 +326,24 @@ class LocationMetadata(typing_extensions.TypedDict, total=False): ] ] +@typing.type_check_only +class NextHopInterconnectAttachment(typing_extensions.TypedDict, total=False): + siteToSiteDataTransfer: bool + uri: str + vpcNetwork: str + +@typing.type_check_only +class NextHopRouterApplianceInstance(typing_extensions.TypedDict, total=False): + siteToSiteDataTransfer: bool + uri: str + vpcNetwork: str + +@typing.type_check_only +class NextHopVPNTunnel(typing_extensions.TypedDict, total=False): + siteToSiteDataTransfer: bool + uri: str + vpcNetwork: str + @typing.type_check_only class NextHopVpcNetwork(typing_extensions.TypedDict, total=False): uri: str @@ -367,7 +391,11 @@ class ProducerPscConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class PscConfig(typing_extensions.TypedDict, total=False): + allowedGoogleProducersResourceHierarchyLevel: _list[str] limit: str + producerInstanceLocation: typing_extensions.Literal[ + "PRODUCER_INSTANCE_LOCATION_UNSPECIFIED", "CUSTOM_RESOURCE_HIERARCHY_LEVELS" + ] subnetworks: _list[str] @typing.type_check_only @@ -426,7 +454,11 @@ class Route(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] location: str name: str + nextHopInterconnectAttachment: NextHopInterconnectAttachment + nextHopRouterApplianceInstance: NextHopRouterApplianceInstance nextHopVpcNetwork: NextHopVpcNetwork + nextHopVpnTunnel: NextHopVPNTunnel + priority: str spoke: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -440,7 +472,10 @@ class Route(typing_extensions.TypedDict, total=False): "OBSOLETE", ] type: typing_extensions.Literal[ - "ROUTE_TYPE_UNSPECIFIED", "VPC_PRIMARY_SUBNET", "VPC_SECONDARY_SUBNET" + "ROUTE_TYPE_UNSPECIFIED", + "VPC_PRIMARY_SUBNET", + "VPC_SECONDARY_SUBNET", + "DYNAMIC_ROUTE", ] uid: str updateTime: str diff --git a/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi b/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi index 0de7703f..ed3e1a1e 100644 --- a/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkmanagement/v1/schemas.pyi @@ -127,7 +127,9 @@ class ConnectivityTest(typing_extensions.TypedDict, total=False): @typing.type_check_only class DeliverInfo(typing_extensions.TypedDict, total=False): ipAddress: str + pscGoogleApiTarget: str resourceUri: str + storageBucket: str target: typing_extensions.Literal[ "TARGET_UNSPECIFIED", "INSTANCE", @@ -144,6 +146,7 @@ class DeliverInfo(typing_extensions.TypedDict, total=False): "CLOUD_FUNCTION", "APP_ENGINE_VERSION", "CLOUD_RUN_REVISION", + "GOOGLE_MANAGED_SERVICE", ] @typing.type_check_only @@ -192,6 +195,7 @@ class DropInfo(typing_extensions.TypedDict, total=False): "CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC", "PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION", "CLOUD_SQL_INSTANCE_NO_ROUTE", + "CLOUD_SQL_CONNECTOR_REQUIRED", "CLOUD_FUNCTION_NOT_ACTIVE", "VPC_CONNECTOR_NOT_SET", "VPC_CONNECTOR_NOT_RUNNING", @@ -204,6 +208,7 @@ class DropInfo(typing_extensions.TypedDict, total=False): "PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS", "CLOUD_SQL_PSC_NEG_UNSUPPORTED", "NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT", + "PSC_TRANSITIVITY_NOT_PROPAGATED", "HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED", "HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED", "CLOUD_RUN_REVISION_NOT_READY", @@ -211,6 +216,8 @@ class DropInfo(typing_extensions.TypedDict, total=False): "LOAD_BALANCER_HAS_NO_PROXY_SUBNET", "CLOUD_NAT_NO_ADDRESSES", "ROUTING_LOOP", + "DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE", + "LOAD_BALANCER_BACKEND_INVALID_NETWORK", ] destinationIp: str region: str @@ -298,6 +305,7 @@ class FirewallInfo(typing_extensions.TypedDict, total=False): ] networkUri: str policy: str + policyUri: str priority: int targetServiceAccounts: _list[str] targetTags: _list[str] @@ -323,9 +331,13 @@ class ForwardInfo(typing_extensions.TypedDict, total=False): @typing.type_check_only class ForwardingRuleInfo(typing_extensions.TypedDict, total=False): displayName: str + loadBalancerName: str matchedPortRange: str matchedProtocol: str networkUri: str + pscGoogleApiTarget: str + pscServiceAttachmentUri: str + region: str target: str uri: str vip: str @@ -358,6 +370,7 @@ class InstanceInfo(typing_extensions.TypedDict, total=False): internalIp: str networkTags: _list[str] networkUri: str + pscNetworkAttachmentUri: str serviceAccount: str uri: str @@ -583,6 +596,10 @@ class RouteInfo(typing_extensions.TypedDict, total=False): srcPortRanges: _list[str] uri: str +@typing.type_check_only +class ServerlessNegInfo(typing_extensions.TypedDict, total=False): + negUri: str + @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy @@ -619,6 +636,7 @@ class Step(typing_extensions.TypedDict, total=False): projectId: str proxyConnection: ProxyConnectionInfo route: RouteInfo + serverlessNeg: ServerlessNegInfo state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "START_FROM_INSTANCE", @@ -632,6 +650,7 @@ class Step(typing_extensions.TypedDict, total=False): "START_FROM_CLOUD_RUN_REVISION", "START_FROM_STORAGE_BUCKET", "START_FROM_PSC_PUBLISHED_SERVICE", + "START_FROM_SERVERLESS_NEG", "APPLY_INGRESS_FIREWALL_RULE", "APPLY_EGRESS_FIREWALL_RULE", "APPLY_ROUTE", diff --git a/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi index 0de7703f..cc6e8aaa 100644 --- a/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkmanagement/v1beta1/schemas.pyi @@ -96,6 +96,7 @@ class CloudRunRevisionEndpoint(typing_extensions.TypedDict, total=False): class CloudRunRevisionInfo(typing_extensions.TypedDict, total=False): displayName: str location: str + serviceName: str serviceUri: str uri: str @@ -127,7 +128,9 @@ class ConnectivityTest(typing_extensions.TypedDict, total=False): @typing.type_check_only class DeliverInfo(typing_extensions.TypedDict, total=False): ipAddress: str + pscGoogleApiTarget: str resourceUri: str + storageBucket: str target: typing_extensions.Literal[ "TARGET_UNSPECIFIED", "INSTANCE", @@ -144,6 +147,7 @@ class DeliverInfo(typing_extensions.TypedDict, total=False): "CLOUD_FUNCTION", "APP_ENGINE_VERSION", "CLOUD_RUN_REVISION", + "GOOGLE_MANAGED_SERVICE", ] @typing.type_check_only @@ -192,6 +196,7 @@ class DropInfo(typing_extensions.TypedDict, total=False): "CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC", "PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION", "CLOUD_SQL_INSTANCE_NO_ROUTE", + "CLOUD_SQL_CONNECTOR_REQUIRED", "CLOUD_FUNCTION_NOT_ACTIVE", "VPC_CONNECTOR_NOT_SET", "VPC_CONNECTOR_NOT_RUNNING", @@ -204,6 +209,7 @@ class DropInfo(typing_extensions.TypedDict, total=False): "PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS", "CLOUD_SQL_PSC_NEG_UNSUPPORTED", "NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT", + "PSC_TRANSITIVITY_NOT_PROPAGATED", "HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED", "HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED", "CLOUD_RUN_REVISION_NOT_READY", @@ -211,6 +217,8 @@ class DropInfo(typing_extensions.TypedDict, total=False): "LOAD_BALANCER_HAS_NO_PROXY_SUBNET", "CLOUD_NAT_NO_ADDRESSES", "ROUTING_LOOP", + "DROPPED_INSIDE_GOOGLE_MANAGED_SERVICE", + "LOAD_BALANCER_BACKEND_INVALID_NETWORK", ] destinationIp: str region: str @@ -298,6 +306,7 @@ class FirewallInfo(typing_extensions.TypedDict, total=False): ] networkUri: str policy: str + policyUri: str priority: int targetServiceAccounts: _list[str] targetTags: _list[str] @@ -323,9 +332,13 @@ class ForwardInfo(typing_extensions.TypedDict, total=False): @typing.type_check_only class ForwardingRuleInfo(typing_extensions.TypedDict, total=False): displayName: str + loadBalancerName: str matchedPortRange: str matchedProtocol: str networkUri: str + pscGoogleApiTarget: str + pscServiceAttachmentUri: str + region: str target: str uri: str vip: str @@ -358,6 +371,7 @@ class InstanceInfo(typing_extensions.TypedDict, total=False): internalIp: str networkTags: _list[str] networkUri: str + pscNetworkAttachmentUri: str serviceAccount: str uri: str @@ -583,6 +597,10 @@ class RouteInfo(typing_extensions.TypedDict, total=False): srcPortRanges: _list[str] uri: str +@typing.type_check_only +class ServerlessNegInfo(typing_extensions.TypedDict, total=False): + negUri: str + @typing.type_check_only class SetIamPolicyRequest(typing_extensions.TypedDict, total=False): policy: Policy @@ -619,6 +637,7 @@ class Step(typing_extensions.TypedDict, total=False): projectId: str proxyConnection: ProxyConnectionInfo route: RouteInfo + serverlessNeg: ServerlessNegInfo state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "START_FROM_INSTANCE", @@ -632,6 +651,7 @@ class Step(typing_extensions.TypedDict, total=False): "START_FROM_CLOUD_RUN_REVISION", "START_FROM_STORAGE_BUCKET", "START_FROM_PSC_PUBLISHED_SERVICE", + "START_FROM_SERVERLESS_NEG", "APPLY_INGRESS_FIREWALL_RULE", "APPLY_EGRESS_FIREWALL_RULE", "APPLY_ROUTE", diff --git a/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi b/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi index 55b53f59..061b223e 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1/resources.pyi @@ -405,6 +405,30 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only + class AuthzPoliciesResource(googleapiclient.discovery.Resource): + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: GoogleIamV1SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: GoogleIamV1TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only class ClientTlsPoliciesResource(googleapiclient.discovery.Resource): def create( @@ -769,6 +793,7 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): ) -> ListLocationsResponseHttpRequest | None: ... def addressGroups(self) -> AddressGroupsResource: ... def authorizationPolicies(self) -> AuthorizationPoliciesResource: ... + def authzPolicies(self) -> AuthzPoliciesResource: ... def clientTlsPolicies(self) -> ClientTlsPoliciesResource: ... def firewallEndpointAssociations( self, diff --git a/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi b/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi index 014baa43..55b2ebba 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1/schemas.pyi @@ -17,6 +17,9 @@ class AddressGroup(typing_extensions.TypedDict, total=False): items: _list[str] labels: dict[str, typing.Any] name: str + purpose: _list[ + typing_extensions.Literal["PURPOSE_UNSPECIFIED", "DEFAULT", "CLOUD_ARMOR"] + ] selfLink: str type: typing_extensions.Literal["TYPE_UNSPECIFIED", "IPV4", "IPV6"] updateTime: str diff --git a/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi index 55b53f59..6b246956 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1beta1/resources.pyi @@ -405,6 +405,69 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only + class AuthzPoliciesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: AuthzPolicy = ..., + authzPolicyId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> AuthzPolicyHttpRequest: ... + def getIamPolicy( + self, + *, + resource: str, + options_requestedPolicyVersion: int = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAuthzPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAuthzPoliciesResponseHttpRequest, + previous_response: ListAuthzPoliciesResponse, + ) -> ListAuthzPoliciesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: AuthzPolicy = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: GoogleIamV1SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: GoogleIamV1TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleIamV1TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only class ClientTlsPoliciesResource(googleapiclient.discovery.Resource): def create( @@ -769,6 +832,7 @@ class NetworkSecurityResource(googleapiclient.discovery.Resource): ) -> ListLocationsResponseHttpRequest | None: ... def addressGroups(self) -> AddressGroupsResource: ... def authorizationPolicies(self) -> AuthorizationPoliciesResource: ... + def authzPolicies(self) -> AuthzPoliciesResource: ... def clientTlsPolicies(self) -> ClientTlsPoliciesResource: ... def firewallEndpointAssociations( self, @@ -812,6 +876,14 @@ class AuthorizationPolicyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> AuthorizationPolicy: ... +@typing.type_check_only +class AuthzPolicyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AuthzPolicy: ... + @typing.type_check_only class ClientTlsPolicyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -902,6 +974,14 @@ class ListAuthorizationPoliciesResponseHttpRequest(googleapiclient.http.HttpRequ num_retries: int = 0, ) -> ListAuthorizationPoliciesResponse: ... +@typing.type_check_only +class ListAuthzPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAuthzPoliciesResponse: ... + @typing.type_check_only class ListClientTlsPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi index 4778d450..51ca463c 100644 --- a/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networksecurity/v1beta1/schemas.pyi @@ -34,6 +34,107 @@ class AuthorizationPolicy(typing_extensions.TypedDict, total=False): rules: _list[Rule] updateTime: str +@typing.type_check_only +class AuthzPolicy(typing_extensions.TypedDict, total=False): + action: typing_extensions.Literal[ + "AUTHZ_ACTION_UNSPECIFIED", "ALLOW", "DENY", "CUSTOM" + ] + createTime: str + customProvider: AuthzPolicyCustomProvider + description: str + httpRules: _list[AuthzPolicyAuthzRule] + labels: dict[str, typing.Any] + name: str + target: AuthzPolicyTarget + updateTime: str + +AlternativeAuthzPolicyAuthzRule = typing_extensions.TypedDict( + "AlternativeAuthzPolicyAuthzRule", + { + "from": AuthzPolicyAuthzRuleFrom, + "to": AuthzPolicyAuthzRuleTo, + "when": str, + }, + total=False, +) + +@typing.type_check_only +class AuthzPolicyAuthzRule(AlternativeAuthzPolicyAuthzRule): ... + +@typing.type_check_only +class AuthzPolicyAuthzRuleFrom(typing_extensions.TypedDict, total=False): + notSources: _list[AuthzPolicyAuthzRuleFromRequestSource] + sources: _list[AuthzPolicyAuthzRuleFromRequestSource] + +@typing.type_check_only +class AuthzPolicyAuthzRuleFromRequestSource(typing_extensions.TypedDict, total=False): + principals: _list[AuthzPolicyAuthzRuleStringMatch] + resources: _list[AuthzPolicyAuthzRuleRequestResource] + +@typing.type_check_only +class AuthzPolicyAuthzRuleHeaderMatch(typing_extensions.TypedDict, total=False): + name: str + value: AuthzPolicyAuthzRuleStringMatch + +@typing.type_check_only +class AuthzPolicyAuthzRuleRequestResource(typing_extensions.TypedDict, total=False): + iamServiceAccount: AuthzPolicyAuthzRuleStringMatch + tagValueIdSet: AuthzPolicyAuthzRuleRequestResourceTagValueIdSet + +@typing.type_check_only +class AuthzPolicyAuthzRuleRequestResourceTagValueIdSet( + typing_extensions.TypedDict, total=False +): + ids: _list[str] + +@typing.type_check_only +class AuthzPolicyAuthzRuleStringMatch(typing_extensions.TypedDict, total=False): + contains: str + exact: str + ignoreCase: bool + prefix: str + suffix: str + +@typing.type_check_only +class AuthzPolicyAuthzRuleTo(typing_extensions.TypedDict, total=False): + notOperations: _list[AuthzPolicyAuthzRuleToRequestOperation] + operations: _list[AuthzPolicyAuthzRuleToRequestOperation] + +@typing.type_check_only +class AuthzPolicyAuthzRuleToRequestOperation(typing_extensions.TypedDict, total=False): + headerSet: AuthzPolicyAuthzRuleToRequestOperationHeaderSet + hosts: _list[AuthzPolicyAuthzRuleStringMatch] + methods: _list[str] + paths: _list[AuthzPolicyAuthzRuleStringMatch] + +@typing.type_check_only +class AuthzPolicyAuthzRuleToRequestOperationHeaderSet( + typing_extensions.TypedDict, total=False +): + headers: _list[AuthzPolicyAuthzRuleHeaderMatch] + +@typing.type_check_only +class AuthzPolicyCustomProvider(typing_extensions.TypedDict, total=False): + authzExtension: AuthzPolicyCustomProviderAuthzExtension + cloudIap: AuthzPolicyCustomProviderCloudIap + +@typing.type_check_only +class AuthzPolicyCustomProviderAuthzExtension(typing_extensions.TypedDict, total=False): + resources: _list[str] + +@typing.type_check_only +class AuthzPolicyCustomProviderCloudIap(typing_extensions.TypedDict, total=False): ... + +@typing.type_check_only +class AuthzPolicyTarget(typing_extensions.TypedDict, total=False): + loadBalancingScheme: typing_extensions.Literal[ + "LOAD_BALANCING_SCHEME_UNSPECIFIED", + "INTERNAL_MANAGED", + "EXTERNAL_MANAGED", + "INTERNAL_SELF_MANAGED", + ] + resources: _list[str] + @typing.type_check_only class CancelOperationRequest(typing_extensions.TypedDict, total=False): ... @@ -213,6 +314,12 @@ class ListAuthorizationPoliciesResponse(typing_extensions.TypedDict, total=False authorizationPolicies: _list[AuthorizationPolicy] nextPageToken: str +@typing.type_check_only +class ListAuthzPoliciesResponse(typing_extensions.TypedDict, total=False): + authzPolicies: _list[AuthzPolicy] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListClientTlsPoliciesResponse(typing_extensions.TypedDict, total=False): clientTlsPolicies: _list[ClientTlsPolicy] diff --git a/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi b/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi index 00710e08..8a2fa65c 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1/resources.pyi @@ -105,13 +105,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> EndpointPolicyHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -133,20 +126,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class GatewaysResource(googleapiclient.discovery.Resource): @@ -164,13 +143,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> GatewayHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -192,20 +164,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class GrpcRoutesResource(googleapiclient.discovery.Resource): @@ -383,13 +341,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> MeshHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -411,20 +362,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -472,13 +409,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> ServiceBindingHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -492,20 +422,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): previous_request: ListServiceBindingsResponseHttpRequest, previous_response: ListServiceBindingsResponse, ) -> ListServiceBindingsResponseHttpRequest | None: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class ServiceLbPoliciesResource(googleapiclient.discovery.Resource): diff --git a/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi b/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi index 98cd9f25..858701f3 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1/schemas.pyi @@ -355,6 +355,7 @@ class LbRouteExtension(typing_extensions.TypedDict, total=False): loadBalancingScheme: typing_extensions.Literal[ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", "EXTERNAL_MANAGED" ] + metadata: dict[str, typing.Any] name: str updateTime: str @@ -368,6 +369,7 @@ class LbTrafficExtension(typing_extensions.TypedDict, total=False): loadBalancingScheme: typing_extensions.Literal[ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", "EXTERNAL_MANAGED" ] + metadata: dict[str, typing.Any] name: str updateTime: str diff --git a/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi index 5fe632b6..fce4fa9e 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1beta1/resources.pyi @@ -17,6 +17,48 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class AuthzExtensionsResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: AuthzExtension = ..., + authzExtensionId: str = ..., + requestId: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, *, name: str, requestId: str = ..., **kwargs: typing.Any + ) -> OperationHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> AuthzExtensionHttpRequest: ... + def list( + self, + *, + parent: str, + filter: str = ..., + orderBy: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListAuthzExtensionsResponseHttpRequest: ... + def list_next( + self, + previous_request: ListAuthzExtensionsResponseHttpRequest, + previous_response: ListAuthzExtensionsResponse, + ) -> ListAuthzExtensionsResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: AuthzExtension = ..., + requestId: str = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class EndpointPoliciesResource(googleapiclient.discovery.Resource): def create( @@ -33,13 +75,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> EndpointPolicyHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -61,20 +96,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class GatewaysResource(googleapiclient.discovery.Resource): @@ -92,13 +113,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> GatewayHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -120,20 +134,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class GrpcRoutesResource(googleapiclient.discovery.Resource): @@ -311,13 +311,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> MeshHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -339,20 +332,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): updateMask: str = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class OperationsResource(googleapiclient.discovery.Resource): @@ -400,13 +379,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): def get( self, *, name: str, **kwargs: typing.Any ) -> ServiceBindingHttpRequest: ... - def getIamPolicy( - self, - *, - resource: str, - options_requestedPolicyVersion: int = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... def list( self, *, @@ -420,20 +392,6 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): previous_request: ListServiceBindingsResponseHttpRequest, previous_response: ListServiceBindingsResponse, ) -> ListServiceBindingsResponseHttpRequest | None: ... - def setIamPolicy( - self, - *, - resource: str, - body: SetIamPolicyRequest = ..., - **kwargs: typing.Any, - ) -> PolicyHttpRequest: ... - def testIamPermissions( - self, - *, - resource: str, - body: TestIamPermissionsRequest = ..., - **kwargs: typing.Any, - ) -> TestIamPermissionsResponseHttpRequest: ... @typing.type_check_only class ServiceLbPoliciesResource(googleapiclient.discovery.Resource): @@ -587,6 +545,7 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): previous_request: ListLocationsResponseHttpRequest, previous_response: ListLocationsResponse, ) -> ListLocationsResponseHttpRequest | None: ... + def authzExtensions(self) -> AuthzExtensionsResource: ... def endpointPolicies(self) -> EndpointPoliciesResource: ... def gateways(self) -> GatewaysResource: ... def grpcRoutes(self) -> GrpcRoutesResource: ... @@ -616,6 +575,14 @@ class NetworkServicesResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class AuthzExtensionHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> AuthzExtension: ... + @typing.type_check_only class EmptyHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -672,6 +639,14 @@ class LbTrafficExtensionHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> LbTrafficExtension: ... +@typing.type_check_only +class ListAuthzExtensionsResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListAuthzExtensionsResponse: ... + @typing.type_check_only class ListEndpointPoliciesResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi index 127f9a8a..ead47812 100644 --- a/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/networkservices/v1beta1/schemas.pyi @@ -16,6 +16,24 @@ class AuditLogConfig(typing_extensions.TypedDict, total=False): "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" ] +@typing.type_check_only +class AuthzExtension(typing_extensions.TypedDict, total=False): + authority: str + createTime: str + description: str + failOpen: bool + forwardHeaders: _list[str] + labels: dict[str, typing.Any] + loadBalancingScheme: typing_extensions.Literal[ + "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", "EXTERNAL_MANAGED" + ] + metadata: dict[str, typing.Any] + name: str + service: str + timeout: str + updateTime: str + wireFormat: typing_extensions.Literal["WIRE_FORMAT_UNSPECIFIED", "EXT_PROC_GRPC"] + @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): condition: Expr @@ -341,6 +359,7 @@ class LbRouteExtension(typing_extensions.TypedDict, total=False): loadBalancingScheme: typing_extensions.Literal[ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", "EXTERNAL_MANAGED" ] + metadata: dict[str, typing.Any] name: str updateTime: str @@ -354,9 +373,16 @@ class LbTrafficExtension(typing_extensions.TypedDict, total=False): loadBalancingScheme: typing_extensions.Literal[ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", "EXTERNAL_MANAGED" ] + metadata: dict[str, typing.Any] name: str updateTime: str +@typing.type_check_only +class ListAuthzExtensionsResponse(typing_extensions.TypedDict, total=False): + authzExtensions: _list[AuthzExtension] + nextPageToken: str + unreachable: _list[str] + @typing.type_check_only class ListEndpointPoliciesResponse(typing_extensions.TypedDict, total=False): endpointPolicies: _list[EndpointPolicy] diff --git a/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi b/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi index f8980809..994274b0 100644 --- a/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/notebooks/v2/schemas.pyi @@ -21,6 +21,10 @@ class AcceleratorConfig(typing_extensions.TypedDict, total=False): "NVIDIA_TESLA_P4_VWS", ] +@typing.type_check_only +class AccessConfig(typing_extensions.TypedDict, total=False): + externalIp: str + @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): condition: Expr @@ -126,6 +130,7 @@ class GceSetup(typing_extensions.TypedDict, total=False): gpuDriverConfig: GPUDriverConfig machineType: str metadata: dict[str, typing.Any] + minCpuPlatform: str networkInterfaces: _list[NetworkInterface] serviceAccounts: _list[ServiceAccount] shieldedInstanceConfig: ShieldedInstanceConfig @@ -156,6 +161,8 @@ class Instance(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str proxyUri: str + satisfiesPzi: bool + satisfiesPzs: bool state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "STARTING", @@ -199,6 +206,7 @@ class Location(typing_extensions.TypedDict, total=False): @typing.type_check_only class NetworkInterface(typing_extensions.TypedDict, total=False): + accessConfigs: _list[AccessConfig] network: str nicType: typing_extensions.Literal["NIC_TYPE_UNSPECIFIED", "VIRTIO_NET", "GVNIC"] subnet: str diff --git a/googleapiclient-stubs/_apis/ondemandscanning/v1/schemas.pyi b/googleapiclient-stubs/_apis/ondemandscanning/v1/schemas.pyi index 9e632730..85d6ad1c 100644 --- a/googleapiclient-stubs/_apis/ondemandscanning/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/ondemandscanning/v1/schemas.pyi @@ -507,6 +507,7 @@ class PackageData(typing_extensions.TypedDict, total=False): "RUBYGEMS", "RUST", "COMPOSER", + "SWIFT", ] patchedCve: _list[str] sourceVersion: PackageVersion diff --git a/googleapiclient-stubs/_apis/ondemandscanning/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/ondemandscanning/v1beta1/schemas.pyi index aea0d32a..109f94ec 100644 --- a/googleapiclient-stubs/_apis/ondemandscanning/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/ondemandscanning/v1beta1/schemas.pyi @@ -506,6 +506,7 @@ class PackageData(typing_extensions.TypedDict, total=False): "RUBYGEMS", "RUST", "COMPOSER", + "SWIFT", ] patchedCve: _list[str] sourceVersion: PackageVersion diff --git a/googleapiclient-stubs/_apis/playintegrity/v1/resources.pyi b/googleapiclient-stubs/_apis/playintegrity/v1/resources.pyi index 8374d771..53a06689 100644 --- a/googleapiclient-stubs/_apis/playintegrity/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/playintegrity/v1/resources.pyi @@ -13,6 +13,16 @@ _list = list @typing.type_check_only class PlayIntegrityResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class DeviceRecallResource(googleapiclient.discovery.Resource): + def write( + self, + *, + packageName: str, + body: WriteDeviceRecallRequest = ..., + **kwargs: typing.Any, + ) -> WriteDeviceRecallResponseHttpRequest: ... + @typing.type_check_only class V1Resource(googleapiclient.discovery.Resource): def decodeIntegrityToken( @@ -35,6 +45,7 @@ class PlayIntegrityResource(googleapiclient.discovery.Resource): ] | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... + def deviceRecall(self) -> DeviceRecallResource: ... def v1(self) -> V1Resource: ... @typing.type_check_only @@ -44,3 +55,11 @@ class DecodeIntegrityTokenResponseHttpRequest(googleapiclient.http.HttpRequest): http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> DecodeIntegrityTokenResponse: ... + +@typing.type_check_only +class WriteDeviceRecallResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> WriteDeviceRecallResponse: ... diff --git a/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi b/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi index 024ec40a..56cba425 100644 --- a/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/playintegrity/v1/schemas.pyi @@ -73,6 +73,7 @@ class DecodeIntegrityTokenResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class DeviceIntegrity(typing_extensions.TypedDict, total=False): + deviceRecall: DeviceRecall deviceRecognitionVerdict: _list[ typing_extensions.Literal[ "UNKNOWN", @@ -84,6 +85,11 @@ class DeviceIntegrity(typing_extensions.TypedDict, total=False): ] recentDeviceActivity: RecentDeviceActivity +@typing.type_check_only +class DeviceRecall(typing_extensions.TypedDict, total=False): + values: Values + writeDates: WriteDates + @typing.type_check_only class EnvironmentDetails(typing_extensions.TypedDict, total=False): appAccessRiskVerdict: AppAccessRiskVerdict @@ -127,3 +133,23 @@ class TokenPayloadExternal(typing_extensions.TypedDict, total=False): environmentDetails: EnvironmentDetails requestDetails: RequestDetails testingDetails: TestingDetails + +@typing.type_check_only +class Values(typing_extensions.TypedDict, total=False): + bitFirst: bool + bitSecond: bool + bitThird: bool + +@typing.type_check_only +class WriteDates(typing_extensions.TypedDict, total=False): + yyyymmFirst: int + yyyymmSecond: int + yyyymmThird: int + +@typing.type_check_only +class WriteDeviceRecallRequest(typing_extensions.TypedDict, total=False): + integrityToken: str + newValues: Values + +@typing.type_check_only +class WriteDeviceRecallResponse(typing_extensions.TypedDict, total=False): ... diff --git a/googleapiclient-stubs/_apis/policyanalyzer/v1/resources.pyi b/googleapiclient-stubs/_apis/policyanalyzer/v1/resources.pyi index b0f9ce02..d0a8c99f 100644 --- a/googleapiclient-stubs/_apis/policyanalyzer/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/policyanalyzer/v1/resources.pyi @@ -13,6 +13,74 @@ _list = list @typing.type_check_only class PolicyAnalyzerResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FoldersResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivityTypesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivitiesResource(googleapiclient.discovery.Resource): + def query( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudPolicyanalyzerV1QueryActivityResponseHttpRequest + ): ... + def query_next( + self, + previous_request: GoogleCloudPolicyanalyzerV1QueryActivityResponseHttpRequest, + previous_response: GoogleCloudPolicyanalyzerV1QueryActivityResponse, + ) -> ( + GoogleCloudPolicyanalyzerV1QueryActivityResponseHttpRequest + | None + ): ... + + def activities(self) -> ActivitiesResource: ... + + def activityTypes(self) -> ActivityTypesResource: ... + + def locations(self) -> LocationsResource: ... + + @typing.type_check_only + class OrganizationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivityTypesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivitiesResource(googleapiclient.discovery.Resource): + def query( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudPolicyanalyzerV1QueryActivityResponseHttpRequest + ): ... + def query_next( + self, + previous_request: GoogleCloudPolicyanalyzerV1QueryActivityResponseHttpRequest, + previous_response: GoogleCloudPolicyanalyzerV1QueryActivityResponse, + ) -> ( + GoogleCloudPolicyanalyzerV1QueryActivityResponseHttpRequest + | None + ): ... + + def activities(self) -> ActivitiesResource: ... + + def activityTypes(self) -> ActivityTypesResource: ... + + def locations(self) -> LocationsResource: ... + @typing.type_check_only class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -59,6 +127,8 @@ class PolicyAnalyzerResource(googleapiclient.discovery.Resource): ] | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... + def folders(self) -> FoldersResource: ... + def organizations(self) -> OrganizationsResource: ... def projects(self) -> ProjectsResource: ... @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/policyanalyzer/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/policyanalyzer/v1beta1/resources.pyi index f606f997..e932e3be 100644 --- a/googleapiclient-stubs/_apis/policyanalyzer/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/policyanalyzer/v1beta1/resources.pyi @@ -13,6 +13,74 @@ _list = list @typing.type_check_only class PolicyAnalyzerResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class FoldersResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivityTypesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivitiesResource(googleapiclient.discovery.Resource): + def query( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudPolicyanalyzerV1beta1QueryActivityResponseHttpRequest + ): ... + def query_next( + self, + previous_request: GoogleCloudPolicyanalyzerV1beta1QueryActivityResponseHttpRequest, + previous_response: GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse, + ) -> ( + GoogleCloudPolicyanalyzerV1beta1QueryActivityResponseHttpRequest + | None + ): ... + + def activities(self) -> ActivitiesResource: ... + + def activityTypes(self) -> ActivityTypesResource: ... + + def locations(self) -> LocationsResource: ... + + @typing.type_check_only + class OrganizationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class LocationsResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivityTypesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ActivitiesResource(googleapiclient.discovery.Resource): + def query( + self, + *, + parent: str, + filter: str = ..., + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ( + GoogleCloudPolicyanalyzerV1beta1QueryActivityResponseHttpRequest + ): ... + def query_next( + self, + previous_request: GoogleCloudPolicyanalyzerV1beta1QueryActivityResponseHttpRequest, + previous_response: GoogleCloudPolicyanalyzerV1beta1QueryActivityResponse, + ) -> ( + GoogleCloudPolicyanalyzerV1beta1QueryActivityResponseHttpRequest + | None + ): ... + + def activities(self) -> ActivitiesResource: ... + + def activityTypes(self) -> ActivityTypesResource: ... + + def locations(self) -> LocationsResource: ... + @typing.type_check_only class ProjectsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -59,6 +127,8 @@ class PolicyAnalyzerResource(googleapiclient.discovery.Resource): ] | None = None, ) -> googleapiclient.http.BatchHttpRequest: ... + def folders(self) -> FoldersResource: ... + def organizations(self) -> OrganizationsResource: ... def projects(self) -> ProjectsResource: ... @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/policysimulator/v1/resources.pyi b/googleapiclient-stubs/_apis/policysimulator/v1/resources.pyi index 82ac61a9..7c6f71f5 100644 --- a/googleapiclient-stubs/_apis/policysimulator/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/policysimulator/v1/resources.pyi @@ -126,56 +126,7 @@ class PolicySimulatorResource(googleapiclient.discovery.Resource): self, *, name: str, **kwargs: typing.Any ) -> GoogleLongrunningOperationHttpRequest: ... - @typing.type_check_only - class OrgPolicyViolationsResource(googleapiclient.discovery.Resource): - def list( - self, - *, - parent: str, - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponseHttpRequest: ... - def list_next( - self, - previous_request: GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponseHttpRequest, - previous_response: GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse, - ) -> ( - GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponseHttpRequest - | None - ): ... - - def create( - self, - *, - parent: str, - body: GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview = ..., - orgPolicyViolationsPreviewId: str = ..., - **kwargs: typing.Any, - ) -> GoogleLongrunningOperationHttpRequest: ... - def get( - self, *, name: str, **kwargs: typing.Any - ) -> ( - GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewHttpRequest - ): ... - def list( - self, - *, - parent: str, - pageSize: int = ..., - pageToken: str = ..., - **kwargs: typing.Any, - ) -> GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponseHttpRequest: ... - def list_next( - self, - previous_request: GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponseHttpRequest, - previous_response: GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse, - ) -> ( - GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponseHttpRequest - | None - ): ... def operations(self) -> OperationsResource: ... - def orgPolicyViolations(self) -> OrgPolicyViolationsResource: ... @typing.type_check_only class ReplaysResource(googleapiclient.discovery.Resource): @@ -336,26 +287,6 @@ class PolicySimulatorResource(googleapiclient.discovery.Resource): def organizations(self) -> OrganizationsResource: ... def projects(self) -> ProjectsResource: ... -@typing.type_check_only -class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse: ... - -@typing.type_check_only -class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponseHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse: ... - @typing.type_check_only class GoogleCloudPolicysimulatorV1ListReplayResultsResponseHttpRequest( googleapiclient.http.HttpRequest @@ -366,16 +297,6 @@ class GoogleCloudPolicysimulatorV1ListReplayResultsResponseHttpRequest( num_retries: int = 0, ) -> GoogleCloudPolicysimulatorV1ListReplayResultsResponse: ... -@typing.type_check_only -class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewHttpRequest( - googleapiclient.http.HttpRequest -): - def execute( - self, - http: httplib2.Http | googleapiclient.http.HttpMock | None = None, - num_retries: int = 0, - ) -> GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview: ... - @typing.type_check_only class GoogleCloudPolicysimulatorV1ReplayHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi b/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi index a29081a6..9457e170 100644 --- a/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/policysimulator/v1/schemas.pyi @@ -160,22 +160,6 @@ class GoogleCloudPolicysimulatorV1ExplainedPolicy( "HEURISTIC_RELEVANCE_UNSPECIFIED", "NORMAL", "HIGH" ] -@typing.type_check_only -class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsPreviewsResponse( - typing_extensions.TypedDict, total=False -): - nextPageToken: str - orgPolicyViolationsPreviews: _list[ - GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview - ] - -@typing.type_check_only -class GoogleCloudPolicysimulatorV1ListOrgPolicyViolationsResponse( - typing_extensions.TypedDict, total=False -): - nextPageToken: str - orgPolicyViolations: _list[GoogleCloudPolicysimulatorV1OrgPolicyViolation] - @typing.type_check_only class GoogleCloudPolicysimulatorV1ListReplayResultsResponse( typing_extensions.TypedDict, total=False @@ -183,66 +167,6 @@ class GoogleCloudPolicysimulatorV1ListReplayResultsResponse( nextPageToken: str replayResults: _list[GoogleCloudPolicysimulatorV1ReplayResult] -@typing.type_check_only -class GoogleCloudPolicysimulatorV1OrgPolicyOverlay( - typing_extensions.TypedDict, total=False -): - customConstraints: _list[ - GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay - ] - policies: _list[GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay] - -@typing.type_check_only -class GoogleCloudPolicysimulatorV1OrgPolicyOverlayCustomConstraintOverlay( - typing_extensions.TypedDict, total=False -): - customConstraint: GoogleCloudOrgpolicyV2CustomConstraint - customConstraintParent: str - -@typing.type_check_only -class GoogleCloudPolicysimulatorV1OrgPolicyOverlayPolicyOverlay( - typing_extensions.TypedDict, total=False -): - policy: GoogleCloudOrgpolicyV2Policy - policyParent: str - -@typing.type_check_only -class GoogleCloudPolicysimulatorV1OrgPolicyViolation( - typing_extensions.TypedDict, total=False -): - customConstraint: GoogleCloudOrgpolicyV2CustomConstraint - error: GoogleRpcStatus - name: str - resource: GoogleCloudPolicysimulatorV1ResourceContext - -@typing.type_check_only -class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview( - typing_extensions.TypedDict, total=False -): - createTime: str - customConstraints: _list[str] - name: str - overlay: GoogleCloudPolicysimulatorV1OrgPolicyOverlay - resourceCounts: GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts - state: typing_extensions.Literal[ - "PREVIEW_STATE_UNSPECIFIED", - "PREVIEW_PENDING", - "PREVIEW_RUNNING", - "PREVIEW_SUCCEEDED", - "PREVIEW_FAILED", - ] - violationsCount: int - -@typing.type_check_only -class GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreviewResourceCounts( - typing_extensions.TypedDict, total=False -): - compliant: int - errors: int - noncompliant: int - scanned: int - unenforced: int - @typing.type_check_only class GoogleCloudPolicysimulatorV1Replay(typing_extensions.TypedDict, total=False): config: GoogleCloudPolicysimulatorV1ReplayConfig @@ -291,14 +215,6 @@ class GoogleCloudPolicysimulatorV1ReplayResultsSummary( oldestDate: GoogleTypeDate unchangedCount: int -@typing.type_check_only -class GoogleCloudPolicysimulatorV1ResourceContext( - typing_extensions.TypedDict, total=False -): - ancestors: _list[str] - assetType: str - resource: str - @typing.type_check_only class GoogleCloudPolicysimulatorV1alphaCreateOrgPolicyViolationsPreviewOperationMetadata( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/pollen/__init__.pyi b/googleapiclient-stubs/_apis/pollen/__init__.pyi new file mode 100644 index 00000000..e69de29b diff --git a/googleapiclient-stubs/_apis/pollen/v1/__init__.pyi b/googleapiclient-stubs/_apis/pollen/v1/__init__.pyi new file mode 100644 index 00000000..238e1644 --- /dev/null +++ b/googleapiclient-stubs/_apis/pollen/v1/__init__.pyi @@ -0,0 +1,2 @@ +from .resources import * +from .schemas import * diff --git a/googleapiclient-stubs/_apis/pollen/v1/resources.pyi b/googleapiclient-stubs/_apis/pollen/v1/resources.pyi new file mode 100644 index 00000000..3c97abb3 --- /dev/null +++ b/googleapiclient-stubs/_apis/pollen/v1/resources.pyi @@ -0,0 +1,83 @@ +import collections.abc +import typing + +import httplib2 +import typing_extensions + +import googleapiclient.discovery +import googleapiclient.http + +from .schemas import * + +_list = list + +@typing.type_check_only +class PollenResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class ForecastResource(googleapiclient.discovery.Resource): + def lookup( + self, + *, + days: int = ..., + languageCode: str = ..., + location_latitude: float = ..., + location_longitude: float = ..., + pageSize: int = ..., + pageToken: str = ..., + plantsDescription: bool = ..., + **kwargs: typing.Any, + ) -> LookupForecastResponseHttpRequest: ... + def lookup_next( + self, + previous_request: LookupForecastResponseHttpRequest, + previous_response: LookupForecastResponse, + ) -> LookupForecastResponseHttpRequest | None: ... + + @typing.type_check_only + class MapTypesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class HeatmapTilesResource(googleapiclient.discovery.Resource): + def lookupHeatmapTile( + self, + *, + mapType: typing_extensions.Literal[ + "MAP_TYPE_UNSPECIFIED", "TREE_UPI", "GRASS_UPI", "WEED_UPI" + ], + zoom: int, + x: int, + y: int, + **kwargs: typing.Any, + ) -> HttpBodyHttpRequest: ... + + def heatmapTiles(self) -> HeatmapTilesResource: ... + + def new_batch_http_request( + self, + callback: collections.abc.Callable[ + [ + str, + googleapiclient.http.HttpRequest, + googleapiclient.errors.HttpError | None, + ], + typing.Any, + ] + | None = None, + ) -> googleapiclient.http.BatchHttpRequest: ... + def forecast(self) -> ForecastResource: ... + def mapTypes(self) -> MapTypesResource: ... + +@typing.type_check_only +class HttpBodyHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> HttpBody: ... + +@typing.type_check_only +class LookupForecastResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> LookupForecastResponse: ... diff --git a/googleapiclient-stubs/_apis/pollen/v1/schemas.pyi b/googleapiclient-stubs/_apis/pollen/v1/schemas.pyi new file mode 100644 index 00000000..bc1ca30a --- /dev/null +++ b/googleapiclient-stubs/_apis/pollen/v1/schemas.pyi @@ -0,0 +1,89 @@ +import typing + +import typing_extensions + +_list = list + +@typing.type_check_only +class Color(typing_extensions.TypedDict, total=False): + alpha: float + blue: float + green: float + red: float + +@typing.type_check_only +class Date(typing_extensions.TypedDict, total=False): + day: int + month: int + year: int + +@typing.type_check_only +class DayInfo(typing_extensions.TypedDict, total=False): + date: Date + plantInfo: _list[PlantInfo] + pollenTypeInfo: _list[PollenTypeInfo] + +@typing.type_check_only +class HttpBody(typing_extensions.TypedDict, total=False): + contentType: str + data: str + extensions: _list[dict[str, typing.Any]] + +@typing.type_check_only +class IndexInfo(typing_extensions.TypedDict, total=False): + category: str + code: typing_extensions.Literal["INDEX_UNSPECIFIED", "UPI"] + color: Color + displayName: str + indexDescription: str + value: int + +@typing.type_check_only +class LookupForecastResponse(typing_extensions.TypedDict, total=False): + dailyInfo: _list[DayInfo] + nextPageToken: str + regionCode: str + +@typing.type_check_only +class PlantDescription(typing_extensions.TypedDict, total=False): + crossReaction: str + family: str + picture: str + pictureCloseup: str + season: str + specialColors: str + specialShapes: str + type: typing_extensions.Literal["POLLEN_TYPE_UNSPECIFIED", "GRASS", "TREE", "WEED"] + +@typing.type_check_only +class PlantInfo(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal[ + "PLANT_UNSPECIFIED", + "ALDER", + "ASH", + "BIRCH", + "COTTONWOOD", + "ELM", + "MAPLE", + "OLIVE", + "JUNIPER", + "OAK", + "PINE", + "CYPRESS_PINE", + "HAZEL", + "GRAMINALES", + "RAGWEED", + "MUGWORT", + ] + displayName: str + inSeason: bool + indexInfo: IndexInfo + plantDescription: PlantDescription + +@typing.type_check_only +class PollenTypeInfo(typing_extensions.TypedDict, total=False): + code: typing_extensions.Literal["POLLEN_TYPE_UNSPECIFIED", "GRASS", "TREE", "WEED"] + displayName: str + healthRecommendations: _list[str] + inSeason: bool + indexInfo: IndexInfo diff --git a/googleapiclient-stubs/_apis/prod_tt_sasportal/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/prod_tt_sasportal/v1alpha1/schemas.pyi index 9ea290db..6d09455e 100644 --- a/googleapiclient-stubs/_apis/prod_tt_sasportal/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/prod_tt_sasportal/v1alpha1/schemas.pyi @@ -65,6 +65,7 @@ class SasPortalDeviceAirInterface(typing_extensions.TypedDict, total=False): "CW", "REDLINE", "TARANA_WIRELESS", + "FAROS", ] supportedSpec: str @@ -162,7 +163,7 @@ class SasPortalInstallationParams(typing_extensions.TypedDict, total=False): antennaAzimuth: int antennaBeamwidth: int antennaDowntilt: int - antennaGain: int + antennaGain: float antennaModel: str cpeCbsdIndication: bool eirpCapability: int diff --git a/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi b/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi index f6976893..e115b710 100644 --- a/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/pubsub/v1/schemas.pyi @@ -8,8 +8,14 @@ _list = list class AcknowledgeRequest(typing_extensions.TypedDict, total=False): ackIds: _list[str] +@typing.type_check_only +class AnalyticsHubSubscriptionInfo(typing_extensions.TypedDict, total=False): + listing: str + subscription: str + @typing.type_check_only class AvroConfig(typing_extensions.TypedDict, total=False): + useTopicSchema: bool writeMetadata: bool @typing.type_check_only @@ -59,6 +65,7 @@ class CloudStorageConfig(typing_extensions.TypedDict, total=False): filenameSuffix: str maxBytes: str maxDuration: str + maxMessages: str serviceAccountEmail: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -257,6 +264,7 @@ class Snapshot(typing_extensions.TypedDict, total=False): @typing.type_check_only class Subscription(typing_extensions.TypedDict, total=False): ackDeadlineSeconds: int + analyticsHubSubscriptionInfo: AnalyticsHubSubscriptionInfo bigqueryConfig: BigQueryConfig cloudStorageConfig: CloudStorageConfig deadLetterPolicy: DeadLetterPolicy diff --git a/googleapiclient-stubs/_apis/realtimebidding/v1/schemas.pyi b/googleapiclient-stubs/_apis/realtimebidding/v1/schemas.pyi index 55c27df7..8d9dde4d 100644 --- a/googleapiclient-stubs/_apis/realtimebidding/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/realtimebidding/v1/schemas.pyi @@ -210,6 +210,10 @@ class CreativeServingDecision(typing_extensions.TypedDict, total=False): "RENDERING_PLAYABLE", ] ] + detectedCategories: _list[str] + detectedCategoriesTaxonomy: typing_extensions.Literal[ + "AD_CATEGORY_TAXONOMY_UNSPECIFIED", "IAB_CONTENT_1_0" + ] detectedClickThroughUrls: _list[str] detectedDomains: _list[str] detectedLanguages: _list[str] @@ -478,6 +482,7 @@ class PretargetingConfig(typing_extensions.TypedDict, total=False): "GOOGLE_COOKIE", "DEVICE_ID", "PUBLISHER_PROVIDED_ID", + "PUBLISHER_FIRST_PARTY_ID", ] ] interstitialTargeting: typing_extensions.Literal[ diff --git a/googleapiclient-stubs/_apis/recaptchaenterprise/v1/resources.pyi b/googleapiclient-stubs/_apis/recaptchaenterprise/v1/resources.pyi index 5c922021..f941b848 100644 --- a/googleapiclient-stubs/_apis/recaptchaenterprise/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/recaptchaenterprise/v1/resources.pyi @@ -85,6 +85,13 @@ class RecaptchaEnterpriseResource(googleapiclient.discovery.Resource): @typing.type_check_only class KeysResource(googleapiclient.discovery.Resource): + def addIpOverride( + self, + *, + name: str, + body: GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponseHttpRequest: ... def create( self, *, @@ -214,6 +221,16 @@ class RecaptchaEnterpriseResource(googleapiclient.discovery.Resource): ) -> googleapiclient.http.BatchHttpRequest: ... def projects(self) -> ProjectsResource: ... +@typing.type_check_only +class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse: ... + @typing.type_check_only class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentResponseHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi b/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi index 98052a2e..eaa27a6e 100644 --- a/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/recaptchaenterprise/v1/schemas.pyi @@ -38,6 +38,17 @@ class GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo( ] username: str +@typing.type_check_only +class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest( + typing_extensions.TypedDict, total=False +): + ipOverrideData: GoogleCloudRecaptchaenterpriseV1IpOverrideData + +@typing.type_check_only +class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse( + typing_extensions.TypedDict, total=False +): ... + @typing.type_check_only class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings( typing_extensions.TypedDict, total=False @@ -99,17 +110,26 @@ class GoogleCloudRecaptchaenterpriseV1Assessment( ): accountDefenderAssessment: GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment accountVerification: GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo + assessmentEnvironment: GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment event: GoogleCloudRecaptchaenterpriseV1Event firewallPolicyAssessment: GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment fraudPreventionAssessment: GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment fraudSignals: GoogleCloudRecaptchaenterpriseV1FraudSignals name: str + phoneFraudAssessment: GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment privatePasswordLeakVerification: ( GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification ) riskAnalysis: GoogleCloudRecaptchaenterpriseV1RiskAnalysis tokenProperties: GoogleCloudRecaptchaenterpriseV1TokenProperties +@typing.type_check_only +class GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment( + typing_extensions.TypedDict, total=False +): + client: str + version: str + @typing.type_check_only class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics( typing_extensions.TypedDict, total=False @@ -276,6 +296,13 @@ class GoogleCloudRecaptchaenterpriseV1IOSKeySettings( allowedBundleIds: _list[str] appleDeveloperId: GoogleCloudRecaptchaenterpriseV1AppleDeveloperId +@typing.type_check_only +class GoogleCloudRecaptchaenterpriseV1IpOverrideData( + typing_extensions.TypedDict, total=False +): + ip: str + overrideType: typing_extensions.Literal["OVERRIDE_TYPE_UNSPECIFIED", "ALLOW"] + @typing.type_check_only class GoogleCloudRecaptchaenterpriseV1Key(typing_extensions.TypedDict, total=False): androidSettings: GoogleCloudRecaptchaenterpriseV1AndroidKeySettings @@ -331,6 +358,12 @@ class GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest( ): skipBillingCheck: bool +@typing.type_check_only +class GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment( + typing_extensions.TypedDict, total=False +): + smsTollFraudVerdict: GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict + @typing.type_check_only class GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification( typing_extensions.TypedDict, total=False @@ -421,6 +454,17 @@ class GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRespon GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership ] +@typing.type_check_only +class GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict( + typing_extensions.TypedDict, total=False +): + reasons: _list[ + typing_extensions.Literal[ + "SMS_TOLL_FRAUD_REASON_UNSPECIFIED", "INVALID_PHONE_NUMBER" + ] + ] + risk: float + @typing.type_check_only class GoogleCloudRecaptchaenterpriseV1TestingOptions( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/redis/v1/schemas.pyi b/googleapiclient-stubs/_apis/redis/v1/schemas.pyi index 36c0073d..3de8dd3a 100644 --- a/googleapiclient-stubs/_apis/redis/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/redis/v1/schemas.pyi @@ -79,6 +79,7 @@ class Cluster(typing_extensions.TypedDict, total=False): "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION", ] uid: str + zoneDistributionConfig: ZoneDistributionConfig @typing.type_check_only class ClusterPersistenceConfig(typing_extensions.TypedDict, total=False): @@ -115,6 +116,7 @@ class DatabaseResourceFeed(typing_extensions.TypedDict, total=False): "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", ] + observabilityMetricData: ObservabilityMetricData recommendationSignalData: DatabaseResourceRecommendationSignalData resourceHealthSignalData: DatabaseResourceHealthSignalData resourceId: DatabaseResourceId @@ -164,9 +166,17 @@ class DatabaseResourceHealthSignalData(typing_extensions.TypedDict, total=False) "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -216,6 +226,10 @@ class DatabaseResourceHealthSignalData(typing_extensions.TypedDict, total=False) "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -272,13 +286,13 @@ class DatabaseResourceMetadata(typing_extensions.TypedDict, total=False): "SUB_RESOURCE_TYPE_OTHER", ] location: str + machineConfiguration: MachineConfiguration primaryResourceId: DatabaseResourceId product: Product resourceContainer: str resourceName: str updationTime: str userLabelSet: UserLabels - userLabels: dict[str, typing.Any] @typing.type_check_only class DatabaseResourceRecommendationSignalData( @@ -309,9 +323,17 @@ class DatabaseResourceRecommendationSignalData( "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -361,6 +383,10 @@ class DatabaseResourceRecommendationSignalData( "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] @typing.type_check_only @@ -518,6 +544,11 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class MachineConfiguration(typing_extensions.TypedDict, total=False): + cpuCount: int + memorySizeInBytes: str + @typing.type_check_only class MaintenancePolicy(typing_extensions.TypedDict, total=False): createTime: str @@ -541,6 +572,23 @@ class NodeInfo(typing_extensions.TypedDict, total=False): id: str zone: str +@typing.type_check_only +class ObservabilityMetricData(typing_extensions.TypedDict, total=False): + aggregationType: typing_extensions.Literal[ + "AGGREGATION_TYPE_UNSPECIFIED", "PEAK", "P99", "P95", "CURRENT" + ] + metricType: typing_extensions.Literal[ + "METRIC_TYPE_UNSPECIFIED", + "CPU_UTILIZATION", + "MEMORY_UTILIZATION", + "NETWORK_CONNECTIONS", + "STORAGE_UTILIZATION", + "STORAGE_USED_BYTES", + ] + observationTime: str + resourceName: str + value: TypedValue + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -698,6 +746,13 @@ class TlsCertificate(typing_extensions.TypedDict, total=False): serialNumber: str sha1Fingerprint: str +@typing.type_check_only +class TypedValue(typing_extensions.TypedDict, total=False): + boolValue: bool + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class UpdateInfo(typing_extensions.TypedDict, total=False): targetReplicaCount: int @@ -725,3 +780,10 @@ class WeeklyMaintenanceWindow(typing_extensions.TypedDict, total=False): ] duration: str startTime: TimeOfDay + +@typing.type_check_only +class ZoneDistributionConfig(typing_extensions.TypedDict, total=False): + mode: typing_extensions.Literal[ + "ZONE_DISTRIBUTION_MODE_UNSPECIFIED", "MULTI_ZONE", "SINGLE_ZONE" + ] + zone: str diff --git a/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi index e464711b..b211fc29 100644 --- a/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/redis/v1beta1/schemas.pyi @@ -79,6 +79,7 @@ class Cluster(typing_extensions.TypedDict, total=False): "TRANSIT_ENCRYPTION_MODE_SERVER_AUTHENTICATION", ] uid: str + zoneDistributionConfig: ZoneDistributionConfig @typing.type_check_only class ClusterPersistenceConfig(typing_extensions.TypedDict, total=False): @@ -115,6 +116,7 @@ class DatabaseResourceFeed(typing_extensions.TypedDict, total=False): "SECURITY_FINDING_DATA", "RECOMMENDATION_SIGNAL_DATA", ] + observabilityMetricData: ObservabilityMetricData recommendationSignalData: DatabaseResourceRecommendationSignalData resourceHealthSignalData: DatabaseResourceHealthSignalData resourceId: DatabaseResourceId @@ -164,9 +166,17 @@ class DatabaseResourceHealthSignalData(typing_extensions.TypedDict, total=False) "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -216,6 +226,10 @@ class DatabaseResourceHealthSignalData(typing_extensions.TypedDict, total=False) "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "RESOLVED", "MUTED"] @@ -272,13 +286,13 @@ class DatabaseResourceMetadata(typing_extensions.TypedDict, total=False): "SUB_RESOURCE_TYPE_OTHER", ] location: str + machineConfiguration: MachineConfiguration primaryResourceId: DatabaseResourceId product: Product resourceContainer: str resourceName: str updationTime: str userLabelSet: UserLabels - userLabels: dict[str, typing.Any] @typing.type_check_only class DatabaseResourceRecommendationSignalData( @@ -309,9 +323,17 @@ class DatabaseResourceRecommendationSignalData( "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_2", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_1", "SIGNAL_TYPE_VIOLATES_CIS_GCP_FOUNDATION_1_0", + "SIGNAL_TYPE_VIOLATES_CIS_CONTROLS_V8_0", "SIGNAL_TYPE_VIOLATES_NIST_800_53", + "SIGNAL_TYPE_VIOLATES_NIST_800_53_R5", + "SIGNAL_TYPE_VIOLATES_NIST_CYBERSECURITY_FRAMEWORK_V1_0", "SIGNAL_TYPE_VIOLATES_ISO_27001", + "SIGNAL_TYPE_VIOLATES_ISO_27001_V2022", "SIGNAL_TYPE_VIOLATES_PCI_DSS_V3_2_1", + "SIGNAL_TYPE_VIOLATES_PCI_DSS_V4_0", + "SIGNAL_TYPE_VIOLATES_CLOUD_CONTROLS_MATRIX_V4", + "SIGNAL_TYPE_VIOLATES_HIPAA", + "SIGNAL_TYPE_VIOLATES_SOC2_V2017", "SIGNAL_TYPE_LOGS_NOT_OPTIMIZED_FOR_TROUBLESHOOTING", "SIGNAL_TYPE_QUERY_DURATIONS_NOT_LOGGED", "SIGNAL_TYPE_VERBOSE_ERROR_LOGGING", @@ -361,6 +383,10 @@ class DatabaseResourceRecommendationSignalData( "SIGNAL_TYPE_TMP_TABLES_PERFORMANCE_IMPACT", "SIGNAL_TYPE_TRANS_LOGS_PERFORMANCE_IMPACT", "SIGNAL_TYPE_HIGH_JOINS_WITHOUT_INDEXES", + "SIGNAL_TYPE_SUPERUSER_WRITING_TO_USER_TABLES", + "SIGNAL_TYPE_USER_GRANTED_ALL_PERMISSIONS", + "SIGNAL_TYPE_DATA_EXPORT_TO_EXTERNAL_CLOUD_STORAGE_BUCKET", + "SIGNAL_TYPE_DATA_EXPORT_TO_PUBLIC_CLOUD_STORAGE_BUCKET", ] @typing.type_check_only @@ -518,6 +544,11 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class MachineConfiguration(typing_extensions.TypedDict, total=False): + cpuCount: int + memorySizeInBytes: str + @typing.type_check_only class MaintenancePolicy(typing_extensions.TypedDict, total=False): createTime: str @@ -541,6 +572,23 @@ class NodeInfo(typing_extensions.TypedDict, total=False): id: str zone: str +@typing.type_check_only +class ObservabilityMetricData(typing_extensions.TypedDict, total=False): + aggregationType: typing_extensions.Literal[ + "AGGREGATION_TYPE_UNSPECIFIED", "PEAK", "P99", "P95", "CURRENT" + ] + metricType: typing_extensions.Literal[ + "METRIC_TYPE_UNSPECIFIED", + "CPU_UTILIZATION", + "MEMORY_UTILIZATION", + "NETWORK_CONNECTIONS", + "STORAGE_UTILIZATION", + "STORAGE_USED_BYTES", + ] + observationTime: str + resourceName: str + value: TypedValue + @typing.type_check_only class Operation(typing_extensions.TypedDict, total=False): done: bool @@ -698,6 +746,13 @@ class TlsCertificate(typing_extensions.TypedDict, total=False): serialNumber: str sha1Fingerprint: str +@typing.type_check_only +class TypedValue(typing_extensions.TypedDict, total=False): + boolValue: bool + doubleValue: float + int64Value: str + stringValue: str + @typing.type_check_only class UpdateInfo(typing_extensions.TypedDict, total=False): targetReplicaCount: int @@ -725,3 +780,10 @@ class WeeklyMaintenanceWindow(typing_extensions.TypedDict, total=False): ] duration: str startTime: TimeOfDay + +@typing.type_check_only +class ZoneDistributionConfig(typing_extensions.TypedDict, total=False): + mode: typing_extensions.Literal[ + "ZONE_DISTRIBUTION_MODE_UNSPECIFIED", "MULTI_ZONE", "SINGLE_ZONE" + ] + zone: str diff --git a/googleapiclient-stubs/_apis/retail/v2/schemas.pyi b/googleapiclient-stubs/_apis/retail/v2/schemas.pyi index 8c75901f..e9c3990a 100644 --- a/googleapiclient-stubs/_apis/retail/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/retail/v2/schemas.pyi @@ -186,9 +186,6 @@ class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet( typing_extensions.TypedDict, total=False ): mergedFacetKey: str - mergedFacetValues: _list[ - GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue - ] @typing.type_check_only class GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue( @@ -213,12 +210,19 @@ class GoogleCloudRetailV2ColorInfo(typing_extensions.TypedDict, total=False): class GoogleCloudRetailV2CompleteQueryResponse( typing_extensions.TypedDict, total=False ): + attributeResults: dict[str, typing.Any] attributionToken: str completionResults: _list[GoogleCloudRetailV2CompleteQueryResponseCompletionResult] recentSearchResults: _list[ GoogleCloudRetailV2CompleteQueryResponseRecentSearchResult ] +@typing.type_check_only +class GoogleCloudRetailV2CompleteQueryResponseAttributeResult( + typing_extensions.TypedDict, total=False +): + suggestions: _list[str] + @typing.type_check_only class GoogleCloudRetailV2CompleteQueryResponseCompletionResult( typing_extensions.TypedDict, total=False @@ -1497,13 +1501,6 @@ class GoogleCloudRetailV2betaBigQueryOutputResult( datasetId: str tableId: str -@typing.type_check_only -class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata( - typing_extensions.TypedDict, total=False -): - createTime: str - updateTime: str - @typing.type_check_only class GoogleCloudRetailV2betaCreateModelMetadata( typing_extensions.TypedDict, total=False @@ -1585,30 +1582,6 @@ class GoogleCloudRetailV2betaImportUserEventsResponse( errorsConfig: GoogleCloudRetailV2betaImportErrorsConfig importSummary: GoogleCloudRetailV2betaUserEventImportSummary -@typing.type_check_only -class GoogleCloudRetailV2betaMerchantCenterAccountLink( - typing_extensions.TypedDict, total=False -): - branchId: str - feedFilters: _list[ - GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter - ] - feedLabel: str - id: str - languageCode: str - merchantCenterAccountId: str - name: str - projectId: str - source: str - state: typing_extensions.Literal["STATE_UNSPECIFIED", "PENDING", "ACTIVE", "FAILED"] - -@typing.type_check_only -class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter( - typing_extensions.TypedDict, total=False -): - primaryFeedId: str - primaryFeedName: str - @typing.type_check_only class GoogleCloudRetailV2betaModel(typing_extensions.TypedDict, total=False): createTime: str diff --git a/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi b/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi index 8ab16e25..cb09ac65 100644 --- a/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi +++ b/googleapiclient-stubs/_apis/retail/v2alpha/resources.pyi @@ -95,6 +95,13 @@ class CloudRetailResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, force: bool = ..., **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... + def export( + self, + *, + parent: str, + body: GoogleCloudRetailV2alphaExportProductsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudRetailV2alphaProductHttpRequest: ... @@ -451,6 +458,13 @@ class CloudRetailResource(googleapiclient.discovery.Resource): userEvent: str = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... + def export( + self, + *, + parent: str, + body: GoogleCloudRetailV2alphaExportUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def import_( self, *, diff --git a/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi b/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi index 1e82c7e2..ca7b2cd4 100644 --- a/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi +++ b/googleapiclient-stubs/_apis/retail/v2alpha/schemas.pyi @@ -407,7 +407,6 @@ class GoogleCloudRetailV2alphaBranch(typing_extensions.TypedDict, total=False): lastProductImportTime: str name: str productCountStats: _list[GoogleCloudRetailV2alphaBranchProductCountStatistic] - productCounts: dict[str, typing.Any] qualityMetrics: _list[GoogleCloudRetailV2alphaBranchQualityMetric] @typing.type_check_only @@ -496,9 +495,6 @@ class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacet( typing_extensions.TypedDict, total=False ): mergedFacetKey: str - mergedFacetValues: _list[ - GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue - ] @typing.type_check_only class GoogleCloudRetailV2alphaCatalogAttributeFacetConfigMergedFacetValue( @@ -710,6 +706,13 @@ class GoogleCloudRetailV2alphaExportMetadata(typing_extensions.TypedDict, total= createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudRetailV2alphaExportProductsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + outputConfig: GoogleCloudRetailV2alphaOutputConfig + @typing.type_check_only class GoogleCloudRetailV2alphaExportProductsResponse( typing_extensions.TypedDict, total=False @@ -718,6 +721,13 @@ class GoogleCloudRetailV2alphaExportProductsResponse( errorsConfig: GoogleCloudRetailV2alphaExportErrorsConfig outputResult: GoogleCloudRetailV2alphaOutputResult +@typing.type_check_only +class GoogleCloudRetailV2alphaExportUserEventsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + outputConfig: GoogleCloudRetailV2alphaOutputConfig + @typing.type_check_only class GoogleCloudRetailV2alphaExportUserEventsResponse( typing_extensions.TypedDict, total=False @@ -1737,13 +1747,6 @@ class GoogleCloudRetailV2betaBigQueryOutputResult( datasetId: str tableId: str -@typing.type_check_only -class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata( - typing_extensions.TypedDict, total=False -): - createTime: str - updateTime: str - @typing.type_check_only class GoogleCloudRetailV2betaCreateModelMetadata( typing_extensions.TypedDict, total=False @@ -1825,30 +1828,6 @@ class GoogleCloudRetailV2betaImportUserEventsResponse( errorsConfig: GoogleCloudRetailV2betaImportErrorsConfig importSummary: GoogleCloudRetailV2betaUserEventImportSummary -@typing.type_check_only -class GoogleCloudRetailV2betaMerchantCenterAccountLink( - typing_extensions.TypedDict, total=False -): - branchId: str - feedFilters: _list[ - GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter - ] - feedLabel: str - id: str - languageCode: str - merchantCenterAccountId: str - name: str - projectId: str - source: str - state: typing_extensions.Literal["STATE_UNSPECIFIED", "PENDING", "ACTIVE", "FAILED"] - -@typing.type_check_only -class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter( - typing_extensions.TypedDict, total=False -): - primaryFeedId: str - primaryFeedName: str - @typing.type_check_only class GoogleCloudRetailV2betaModel(typing_extensions.TypedDict, total=False): createTime: str diff --git a/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi b/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi index 057626de..119313cd 100644 --- a/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi +++ b/googleapiclient-stubs/_apis/retail/v2beta/resources.pyi @@ -85,6 +85,13 @@ class CloudRetailResource(googleapiclient.discovery.Resource): def delete( self, *, name: str, **kwargs: typing.Any ) -> GoogleProtobufEmptyHttpRequest: ... + def export( + self, + *, + parent: str, + body: GoogleCloudRetailV2betaExportProductsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def get( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudRetailV2betaProductHttpRequest: ... @@ -397,6 +404,13 @@ class CloudRetailResource(googleapiclient.discovery.Resource): userEvent: str = ..., **kwargs: typing.Any, ) -> GoogleApiHttpBodyHttpRequest: ... + def export( + self, + *, + parent: str, + body: GoogleCloudRetailV2betaExportUserEventsRequest = ..., + **kwargs: typing.Any, + ) -> GoogleLongrunningOperationHttpRequest: ... def import_( self, *, @@ -554,6 +568,17 @@ class CloudRetailResource(googleapiclient.discovery.Resource): previous_response: GoogleLongrunningListOperationsResponse, ) -> GoogleLongrunningListOperationsResponseHttpRequest | None: ... + def getAlertConfig( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudRetailV2betaAlertConfigHttpRequest: ... + def updateAlertConfig( + self, + *, + name: str, + body: GoogleCloudRetailV2betaAlertConfig = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> GoogleCloudRetailV2betaAlertConfigHttpRequest: ... def locations(self) -> LocationsResource: ... def operations(self) -> OperationsResource: ... @@ -579,6 +604,14 @@ class GoogleApiHttpBodyHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> GoogleApiHttpBody: ... +@typing.type_check_only +class GoogleCloudRetailV2betaAlertConfigHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> GoogleCloudRetailV2betaAlertConfig: ... + @typing.type_check_only class GoogleCloudRetailV2betaAttributesConfigHttpRequest( googleapiclient.http.HttpRequest diff --git a/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi b/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi index 487598e3..64e9d6a4 100644 --- a/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/retail/v2beta/schemas.pyi @@ -667,6 +667,27 @@ class GoogleCloudRetailV2betaAddLocalInventoriesResponse( typing_extensions.TypedDict, total=False ): ... +@typing.type_check_only +class GoogleCloudRetailV2betaAlertConfig(typing_extensions.TypedDict, total=False): + alertPolicies: _list[GoogleCloudRetailV2betaAlertConfigAlertPolicy] + name: str + +@typing.type_check_only +class GoogleCloudRetailV2betaAlertConfigAlertPolicy( + typing_extensions.TypedDict, total=False +): + alertGroup: str + enrollStatus: typing_extensions.Literal[ + "ENROLL_STATUS_UNSPECIFIED", "ENROLLED", "DECLINED" + ] + recipients: _list[GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient] + +@typing.type_check_only +class GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient( + typing_extensions.TypedDict, total=False +): + emailAddress: str + @typing.type_check_only class GoogleCloudRetailV2betaAttributesConfig(typing_extensions.TypedDict, total=False): attributeConfigLevel: typing_extensions.Literal[ @@ -776,9 +797,6 @@ class GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet( typing_extensions.TypedDict, total=False ): mergedFacetKey: str - mergedFacetValues: _list[ - GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue - ] @typing.type_check_only class GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue( @@ -803,6 +821,7 @@ class GoogleCloudRetailV2betaColorInfo(typing_extensions.TypedDict, total=False) class GoogleCloudRetailV2betaCompleteQueryResponse( typing_extensions.TypedDict, total=False ): + attributeResults: dict[str, typing.Any] attributionToken: str completionResults: _list[ GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult @@ -811,6 +830,12 @@ class GoogleCloudRetailV2betaCompleteQueryResponse( GoogleCloudRetailV2betaCompleteQueryResponseRecentSearchResult ] +@typing.type_check_only +class GoogleCloudRetailV2betaCompleteQueryResponseAttributeResult( + typing_extensions.TypedDict, total=False +): + suggestions: _list[str] + @typing.type_check_only class GoogleCloudRetailV2betaCompleteQueryResponseCompletionResult( typing_extensions.TypedDict, total=False @@ -892,13 +917,6 @@ class GoogleCloudRetailV2betaControl(typing_extensions.TypedDict, total=False): ] ] -@typing.type_check_only -class GoogleCloudRetailV2betaCreateMerchantCenterAccountLinkMetadata( - typing_extensions.TypedDict, total=False -): - createTime: str - updateTime: str - @typing.type_check_only class GoogleCloudRetailV2betaCreateModelMetadata( typing_extensions.TypedDict, total=False @@ -952,6 +970,13 @@ class GoogleCloudRetailV2betaExportMetadata(typing_extensions.TypedDict, total=F createTime: str updateTime: str +@typing.type_check_only +class GoogleCloudRetailV2betaExportProductsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + outputConfig: GoogleCloudRetailV2betaOutputConfig + @typing.type_check_only class GoogleCloudRetailV2betaExportProductsResponse( typing_extensions.TypedDict, total=False @@ -960,6 +985,13 @@ class GoogleCloudRetailV2betaExportProductsResponse( errorsConfig: GoogleCloudRetailV2betaExportErrorsConfig outputResult: GoogleCloudRetailV2betaOutputResult +@typing.type_check_only +class GoogleCloudRetailV2betaExportUserEventsRequest( + typing_extensions.TypedDict, total=False +): + filter: str + outputConfig: GoogleCloudRetailV2betaOutputConfig + @typing.type_check_only class GoogleCloudRetailV2betaExportUserEventsResponse( typing_extensions.TypedDict, total=False @@ -1108,30 +1140,6 @@ class GoogleCloudRetailV2betaLocalInventory(typing_extensions.TypedDict, total=F placeId: str priceInfo: GoogleCloudRetailV2betaPriceInfo -@typing.type_check_only -class GoogleCloudRetailV2betaMerchantCenterAccountLink( - typing_extensions.TypedDict, total=False -): - branchId: str - feedFilters: _list[ - GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter - ] - feedLabel: str - id: str - languageCode: str - merchantCenterAccountId: str - name: str - projectId: str - source: str - state: typing_extensions.Literal["STATE_UNSPECIFIED", "PENDING", "ACTIVE", "FAILED"] - -@typing.type_check_only -class GoogleCloudRetailV2betaMerchantCenterAccountLinkMerchantCenterFeedFilter( - typing_extensions.TypedDict, total=False -): - primaryFeedId: str - primaryFeedName: str - @typing.type_check_only class GoogleCloudRetailV2betaMerchantCenterFeedFilter( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/run/v1/schemas.pyi b/googleapiclient-stubs/_apis/run/v1/schemas.pyi index e8ed42d9..d38bc023 100644 --- a/googleapiclient-stubs/_apis/run/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/run/v1/schemas.pyi @@ -175,8 +175,17 @@ class Execution(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExecutionReference(typing_extensions.TypedDict, total=False): + completionStatus: typing_extensions.Literal[ + "COMPLETION_STATUS_UNSPECIFIED", + "EXECUTION_SUCCEEDED", + "EXECUTION_FAILED", + "EXECUTION_RUNNING", + "EXECUTION_PENDING", + "EXECUTION_CANCELLED", + ] completionTimestamp: str creationTimestamp: str + deletionTimestamp: str name: str @typing.type_check_only @@ -423,12 +432,6 @@ class GoogleDevtoolsCloudbuildV1FailureInfo(typing_extensions.TypedDict, total=F class GoogleDevtoolsCloudbuildV1FileHashes(typing_extensions.TypedDict, total=False): fileHash: _list[GoogleDevtoolsCloudbuildV1Hash] -@typing.type_check_only -class GoogleDevtoolsCloudbuildV1GCSLocation(typing_extensions.TypedDict, total=False): - bucket: str - generation: str - object: str - @typing.type_check_only class GoogleDevtoolsCloudbuildV1GitConfig(typing_extensions.TypedDict, total=False): http: GoogleDevtoolsCloudbuildV1HttpConfig @@ -447,7 +450,6 @@ class GoogleDevtoolsCloudbuildV1Hash(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleDevtoolsCloudbuildV1HttpConfig(typing_extensions.TypedDict, total=False): proxySecretVersionName: str - proxySslCaInfo: GoogleDevtoolsCloudbuildV1GCSLocation @typing.type_check_only class GoogleDevtoolsCloudbuildV1InlineSecret(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/run/v2/resources.pyi b/googleapiclient-stubs/_apis/run/v2/resources.pyi index a534ee4e..4d62d84f 100644 --- a/googleapiclient-stubs/_apis/run/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/run/v2/resources.pyi @@ -294,6 +294,9 @@ class CloudRunResource(googleapiclient.discovery.Resource): def exportMetadata( self, *, name: str, **kwargs: typing.Any ) -> GoogleCloudRunV2MetadataHttpRequest: ... + def exportProjectMetadata( + self, *, name: str, **kwargs: typing.Any + ) -> GoogleCloudRunV2MetadataHttpRequest: ... def jobs(self) -> JobsResource: ... def operations(self) -> OperationsResource: ... def services(self) -> ServicesResource: ... diff --git a/googleapiclient-stubs/_apis/run/v2/schemas.pyi b/googleapiclient-stubs/_apis/run/v2/schemas.pyi index 72a9b33a..4feeca3c 100644 --- a/googleapiclient-stubs/_apis/run/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/run/v2/schemas.pyi @@ -158,8 +158,17 @@ class GoogleCloudRunV2Execution(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleCloudRunV2ExecutionReference(typing_extensions.TypedDict, total=False): + completionStatus: typing_extensions.Literal[ + "COMPLETION_STATUS_UNSPECIFIED", + "EXECUTION_SUCCEEDED", + "EXECUTION_FAILED", + "EXECUTION_RUNNING", + "EXECUTION_PENDING", + "EXECUTION_CANCELLED", + ] completionTime: str createTime: str + deleteTime: str name: str @typing.type_check_only @@ -246,6 +255,7 @@ class GoogleCloudRunV2Job(typing_extensions.TypedDict, total=False): name: str observedGeneration: str reconciling: bool + runExecutionToken: str satisfiesPzs: bool startExecutionToken: str template: GoogleCloudRunV2ExecutionTemplate @@ -362,6 +372,7 @@ class GoogleCloudRunV2Revision(typing_extensions.TypedDict, total=False): scalingStatus: GoogleCloudRunV2RevisionScalingStatus service: str serviceAccount: str + serviceMesh: GoogleCloudRunV2ServiceMesh sessionAffinity: bool timeout: str uid: str @@ -395,6 +406,7 @@ class GoogleCloudRunV2RevisionTemplate(typing_extensions.TypedDict, total=False) revision: str scaling: GoogleCloudRunV2RevisionScaling serviceAccount: str + serviceMesh: GoogleCloudRunV2ServiceMesh sessionAffinity: bool timeout: str volumes: _list[GoogleCloudRunV2Volume] @@ -467,6 +479,10 @@ class GoogleCloudRunV2Service(typing_extensions.TypedDict, total=False): updateTime: str uri: str +@typing.type_check_only +class GoogleCloudRunV2ServiceMesh(typing_extensions.TypedDict, total=False): + mesh: str + @typing.type_check_only class GoogleCloudRunV2ServiceScaling(typing_extensions.TypedDict, total=False): minInstanceCount: int @@ -783,12 +799,6 @@ class GoogleDevtoolsCloudbuildV1FailureInfo(typing_extensions.TypedDict, total=F class GoogleDevtoolsCloudbuildV1FileHashes(typing_extensions.TypedDict, total=False): fileHash: _list[GoogleDevtoolsCloudbuildV1Hash] -@typing.type_check_only -class GoogleDevtoolsCloudbuildV1GCSLocation(typing_extensions.TypedDict, total=False): - bucket: str - generation: str - object: str - @typing.type_check_only class GoogleDevtoolsCloudbuildV1GitConfig(typing_extensions.TypedDict, total=False): http: GoogleDevtoolsCloudbuildV1HttpConfig @@ -807,7 +817,6 @@ class GoogleDevtoolsCloudbuildV1Hash(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleDevtoolsCloudbuildV1HttpConfig(typing_extensions.TypedDict, total=False): proxySecretVersionName: str - proxySslCaInfo: GoogleDevtoolsCloudbuildV1GCSLocation @typing.type_check_only class GoogleDevtoolsCloudbuildV1InlineSecret(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/sasportal/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/sasportal/v1alpha1/schemas.pyi index 9ea290db..6d09455e 100644 --- a/googleapiclient-stubs/_apis/sasportal/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/sasportal/v1alpha1/schemas.pyi @@ -65,6 +65,7 @@ class SasPortalDeviceAirInterface(typing_extensions.TypedDict, total=False): "CW", "REDLINE", "TARANA_WIRELESS", + "FAROS", ] supportedSpec: str @@ -162,7 +163,7 @@ class SasPortalInstallationParams(typing_extensions.TypedDict, total=False): antennaAzimuth: int antennaBeamwidth: int antennaDowntilt: int - antennaGain: int + antennaGain: float antennaModel: str cpeCbsdIndication: bool eirpCapability: int diff --git a/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi b/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi index 5166163d..af969219 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1/schemas.pyi @@ -140,6 +140,26 @@ class AwsOrganizationalUnit(typing_extensions.TypedDict, total=False): id: str name: str +@typing.type_check_only +class AzureManagementGroup(typing_extensions.TypedDict, total=False): + displayName: str + id: str + +@typing.type_check_only +class AzureMetadata(typing_extensions.TypedDict, total=False): + managementGroups: _list[AzureManagementGroup] + resourceGroup: AzureResourceGroup + subscription: AzureSubscription + +@typing.type_check_only +class AzureResourceGroup(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class AzureSubscription(typing_extensions.TypedDict, total=False): + displayName: str + id: str + @typing.type_check_only class BackupDisasterRecovery(typing_extensions.TypedDict, total=False): appliance: str @@ -171,6 +191,7 @@ class Binding(typing_extensions.TypedDict, total=False): class BulkMuteFindingsRequest(typing_extensions.TypedDict, total=False): filter: str muteAnnotation: str + muteState: typing_extensions.Literal["MUTE_STATE_UNSPECIFIED", "MUTED", "UNDEFINED"] @typing.type_check_only class CloudArmor(typing_extensions.TypedDict, total=False): @@ -269,6 +290,7 @@ class CustomModuleValidationErrors(typing_extensions.TypedDict, total=False): @typing.type_check_only class Cve(typing_extensions.TypedDict, total=False): cvssv3: Cvssv3 + exploitReleaseDate: str exploitationActivity: typing_extensions.Literal[ "EXPLOITATION_ACTIVITY_UNSPECIFIED", "WIDE", @@ -344,6 +366,11 @@ class DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str relativePath: str +@typing.type_check_only +class DynamicMuteRecord(typing_extensions.TypedDict, total=False): + matchTime: str + muteConfig: str + @typing.type_check_only class EffectiveEventThreatDetectionCustomModule( typing_extensions.TypedDict, total=False @@ -438,7 +465,9 @@ class Finding(typing_extensions.TypedDict, total=False): "OBSERVATION", "SCC_ERROR", "POSTURE_VIOLATION", + "TOXIC_COMBINATION", ] + groupMemberships: _list[GroupMembership] iamBindings: _list[IamBinding] indicator: Indicator kernelRootkit: KernelRootkit @@ -448,6 +477,7 @@ class Finding(typing_extensions.TypedDict, total=False): mitreAttack: MitreAttack moduleName: str mute: typing_extensions.Literal["MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED"] + muteInfo: MuteInfo muteInitiator: str muteUpdateTime: str name: str @@ -465,6 +495,7 @@ class Finding(typing_extensions.TypedDict, total=False): ] sourceProperties: dict[str, typing.Any] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + toxicCombination: ToxicCombination vulnerability: Vulnerability @typing.type_check_only @@ -567,9 +598,11 @@ class GoogleCloudSecuritycenterV1MuteConfig(typing_extensions.TypedDict, total=F createTime: str description: str displayName: str + expiryTime: str filter: str mostRecentEditor: str name: str + type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC", "DYNAMIC"] updateTime: str @typing.type_check_only @@ -588,6 +621,7 @@ class GoogleCloudSecuritycenterV1Property(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudSecuritycenterV1Resource(typing_extensions.TypedDict, total=False): awsMetadata: AwsMetadata + azureMetadata: AzureMetadata cloudProvider: typing_extensions.Literal[ "CLOUD_PROVIDER_UNSPECIFIED", "GOOGLE_CLOUD_PLATFORM", @@ -825,6 +859,34 @@ class GoogleCloudSecuritycenterV2AwsOrganizationalUnit( id: str name: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureManagementGroup( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureMetadata( + typing_extensions.TypedDict, total=False +): + managementGroups: _list[GoogleCloudSecuritycenterV2AzureManagementGroup] + resourceGroup: GoogleCloudSecuritycenterV2AzureResourceGroup + subscription: GoogleCloudSecuritycenterV2AzureSubscription + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureResourceGroup( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureSubscription( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + @typing.type_check_only class GoogleCloudSecuritycenterV2BackupDisasterRecovery( typing_extensions.TypedDict, total=False @@ -938,6 +1000,7 @@ class GoogleCloudSecuritycenterV2Container(typing_extensions.TypedDict, total=Fa @typing.type_check_only class GoogleCloudSecuritycenterV2Cve(typing_extensions.TypedDict, total=False): cvssv3: GoogleCloudSecuritycenterV2Cvssv3 + exploitReleaseDate: str exploitationActivity: typing_extensions.Literal[ "EXPLOITATION_ACTIVITY_UNSPECIFIED", "WIDE", @@ -1013,6 +1076,13 @@ class GoogleCloudSecuritycenterV2DiskPath(typing_extensions.TypedDict, total=Fal partitionUuid: str relativePath: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2DynamicMuteRecord( + typing_extensions.TypedDict, total=False +): + matchTime: str + muteConfig: str + @typing.type_check_only class GoogleCloudSecuritycenterV2EnvironmentVariable( typing_extensions.TypedDict, total=False @@ -1090,7 +1160,9 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals "OBSERVATION", "SCC_ERROR", "POSTURE_VIOLATION", + "TOXIC_COMBINATION", ] + groupMemberships: _list[GoogleCloudSecuritycenterV2GroupMembership] iamBindings: _list[GoogleCloudSecuritycenterV2IamBinding] indicator: GoogleCloudSecuritycenterV2Indicator kernelRootkit: GoogleCloudSecuritycenterV2KernelRootkit @@ -1100,6 +1172,7 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals mitreAttack: GoogleCloudSecuritycenterV2MitreAttack moduleName: str mute: typing_extensions.Literal["MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED"] + muteInfo: GoogleCloudSecuritycenterV2MuteInfo muteInitiator: str muteUpdateTime: str name: str @@ -1117,6 +1190,7 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals ] sourceProperties: dict[str, typing.Any] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + toxicCombination: GoogleCloudSecuritycenterV2ToxicCombination vulnerability: GoogleCloudSecuritycenterV2Vulnerability @typing.type_check_only @@ -1128,6 +1202,15 @@ class GoogleCloudSecuritycenterV2Folder(typing_extensions.TypedDict, total=False class GoogleCloudSecuritycenterV2Geolocation(typing_extensions.TypedDict, total=False): regionCode: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2GroupMembership( + typing_extensions.TypedDict, total=False +): + groupId: str + groupType: typing_extensions.Literal[ + "GROUP_TYPE_UNSPECIFIED", "GROUP_TYPE_TOXIC_COMBINATION" + ] + @typing.type_check_only class GoogleCloudSecuritycenterV2IamBinding(typing_extensions.TypedDict, total=False): action: typing_extensions.Literal["ACTION_UNSPECIFIED", "ADD", "REMOVE"] @@ -1218,8 +1301,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1267,7 +1352,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] primaryTactic: typing_extensions.Literal[ @@ -1299,8 +1387,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1348,7 +1438,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] version: str @@ -1357,12 +1450,18 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= class GoogleCloudSecuritycenterV2MuteConfig(typing_extensions.TypedDict, total=False): createTime: str description: str + expiryTime: str filter: str mostRecentEditor: str name: str - type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC"] + type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC", "DYNAMIC"] updateTime: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2MuteInfo(typing_extensions.TypedDict, total=False): + dynamicMuteRecords: _list[GoogleCloudSecuritycenterV2DynamicMuteRecord] + staticMute: GoogleCloudSecuritycenterV2StaticMute + @typing.type_check_only class GoogleCloudSecuritycenterV2Node(typing_extensions.TypedDict, total=False): name: str @@ -1459,6 +1558,7 @@ class GoogleCloudSecuritycenterV2Requests(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudSecuritycenterV2Resource(typing_extensions.TypedDict, total=False): awsMetadata: GoogleCloudSecuritycenterV2AwsMetadata + azureMetadata: GoogleCloudSecuritycenterV2AzureMetadata cloudProvider: typing_extensions.Literal[ "CLOUD_PROVIDER_UNSPECIFIED", "GOOGLE_CLOUD_PLATFORM", @@ -1583,6 +1683,13 @@ class GoogleCloudSecuritycenterV2ServiceAccountDelegationInfo( principalEmail: str principalSubject: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2StaticMute(typing_extensions.TypedDict, total=False): + applyTime: str + state: typing_extensions.Literal[ + "MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED" + ] + @typing.type_check_only class GoogleCloudSecuritycenterV2Subject(typing_extensions.TypedDict, total=False): kind: typing_extensions.Literal[ @@ -1600,6 +1707,13 @@ class GoogleCloudSecuritycenterV2TicketInfo(typing_extensions.TypedDict, total=F updateTime: str uri: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2ToxicCombination( + typing_extensions.TypedDict, total=False +): + attackExposureScore: float + relatedFindings: _list[str] + @typing.type_check_only class GoogleCloudSecuritycenterV2Vulnerability( typing_extensions.TypedDict, total=False @@ -1647,6 +1761,13 @@ class GroupFindingsResponse(typing_extensions.TypedDict, total=False): readTime: str totalSize: int +@typing.type_check_only +class GroupMembership(typing_extensions.TypedDict, total=False): + groupId: str + groupType: typing_extensions.Literal[ + "GROUP_TYPE_UNSPECIFIED", "GROUP_TYPE_TOXIC_COMBINATION" + ] + @typing.type_check_only class GroupResult(typing_extensions.TypedDict, total=False): count: str @@ -1860,8 +1981,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1909,7 +2032,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] primaryTactic: typing_extensions.Literal[ @@ -1941,8 +2067,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1990,11 +2118,19 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] version: str +@typing.type_check_only +class MuteInfo(typing_extensions.TypedDict, total=False): + dynamicMuteRecords: _list[DynamicMuteRecord] + staticMute: StaticMute + @typing.type_check_only class Node(typing_extensions.TypedDict, total=False): name: str @@ -2119,6 +2255,7 @@ class Requests(typing_extensions.TypedDict, total=False): @typing.type_check_only class Resource(typing_extensions.TypedDict, total=False): awsMetadata: AwsMetadata + azureMetadata: AzureMetadata cloudProvider: typing_extensions.Literal[ "CLOUD_PROVIDER_UNSPECIFIED", "GOOGLE_CLOUD_PLATFORM", @@ -2277,6 +2414,13 @@ class Source(typing_extensions.TypedDict, total=False): displayName: str name: str +@typing.type_check_only +class StaticMute(typing_extensions.TypedDict, total=False): + applyTime: str + state: typing_extensions.Literal[ + "MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED" + ] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int @@ -2312,6 +2456,11 @@ class TicketInfo(typing_extensions.TypedDict, total=False): updateTime: str uri: str +@typing.type_check_only +class ToxicCombination(typing_extensions.TypedDict, total=False): + attackExposureScore: float + relatedFindings: _list[str] + @typing.type_check_only class ValidateEventThreatDetectionCustomModuleRequest( typing_extensions.TypedDict, total=False diff --git a/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi index b459ee8d..50f0fb42 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1beta1/schemas.pyi @@ -103,6 +103,26 @@ class AwsOrganizationalUnit(typing_extensions.TypedDict, total=False): id: str name: str +@typing.type_check_only +class AzureManagementGroup(typing_extensions.TypedDict, total=False): + displayName: str + id: str + +@typing.type_check_only +class AzureMetadata(typing_extensions.TypedDict, total=False): + managementGroups: _list[AzureManagementGroup] + resourceGroup: AzureResourceGroup + subscription: AzureSubscription + +@typing.type_check_only +class AzureResourceGroup(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class AzureSubscription(typing_extensions.TypedDict, total=False): + displayName: str + id: str + @typing.type_check_only class BackupDisasterRecovery(typing_extensions.TypedDict, total=False): appliance: str @@ -206,6 +226,7 @@ class Container(typing_extensions.TypedDict, total=False): @typing.type_check_only class Cve(typing_extensions.TypedDict, total=False): cvssv3: Cvssv3 + exploitReleaseDate: str exploitationActivity: typing_extensions.Literal[ "EXPLOITATION_ACTIVITY_UNSPECIFIED", "WIDE", @@ -281,6 +302,11 @@ class DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str relativePath: str +@typing.type_check_only +class DynamicMuteRecord(typing_extensions.TypedDict, total=False): + matchTime: str + muteConfig: str + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -348,7 +374,9 @@ class Finding(typing_extensions.TypedDict, total=False): "OBSERVATION", "SCC_ERROR", "POSTURE_VIOLATION", + "TOXIC_COMBINATION", ] + groupMemberships: _list[GroupMembership] iamBindings: _list[IamBinding] indicator: Indicator kernelRootkit: KernelRootkit @@ -358,6 +386,7 @@ class Finding(typing_extensions.TypedDict, total=False): mitreAttack: MitreAttack moduleName: str mute: typing_extensions.Literal["MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED"] + muteInfo: MuteInfo muteInitiator: str muteUpdateTime: str name: str @@ -375,6 +404,7 @@ class Finding(typing_extensions.TypedDict, total=False): ] sourceProperties: dict[str, typing.Any] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + toxicCombination: ToxicCombination vulnerability: Vulnerability @typing.type_check_only @@ -477,9 +507,11 @@ class GoogleCloudSecuritycenterV1MuteConfig(typing_extensions.TypedDict, total=F createTime: str description: str displayName: str + expiryTime: str filter: str mostRecentEditor: str name: str + type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC", "DYNAMIC"] updateTime: str @typing.type_check_only @@ -498,6 +530,7 @@ class GoogleCloudSecuritycenterV1Property(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudSecuritycenterV1Resource(typing_extensions.TypedDict, total=False): awsMetadata: AwsMetadata + azureMetadata: AzureMetadata cloudProvider: typing_extensions.Literal[ "CLOUD_PROVIDER_UNSPECIFIED", "GOOGLE_CLOUD_PLATFORM", @@ -755,6 +788,34 @@ class GoogleCloudSecuritycenterV2AwsOrganizationalUnit( id: str name: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureManagementGroup( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureMetadata( + typing_extensions.TypedDict, total=False +): + managementGroups: _list[GoogleCloudSecuritycenterV2AzureManagementGroup] + resourceGroup: GoogleCloudSecuritycenterV2AzureResourceGroup + subscription: GoogleCloudSecuritycenterV2AzureSubscription + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureResourceGroup( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureSubscription( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + @typing.type_check_only class GoogleCloudSecuritycenterV2BackupDisasterRecovery( typing_extensions.TypedDict, total=False @@ -868,6 +929,7 @@ class GoogleCloudSecuritycenterV2Container(typing_extensions.TypedDict, total=Fa @typing.type_check_only class GoogleCloudSecuritycenterV2Cve(typing_extensions.TypedDict, total=False): cvssv3: GoogleCloudSecuritycenterV2Cvssv3 + exploitReleaseDate: str exploitationActivity: typing_extensions.Literal[ "EXPLOITATION_ACTIVITY_UNSPECIFIED", "WIDE", @@ -943,6 +1005,13 @@ class GoogleCloudSecuritycenterV2DiskPath(typing_extensions.TypedDict, total=Fal partitionUuid: str relativePath: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2DynamicMuteRecord( + typing_extensions.TypedDict, total=False +): + matchTime: str + muteConfig: str + @typing.type_check_only class GoogleCloudSecuritycenterV2EnvironmentVariable( typing_extensions.TypedDict, total=False @@ -1020,7 +1089,9 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals "OBSERVATION", "SCC_ERROR", "POSTURE_VIOLATION", + "TOXIC_COMBINATION", ] + groupMemberships: _list[GoogleCloudSecuritycenterV2GroupMembership] iamBindings: _list[GoogleCloudSecuritycenterV2IamBinding] indicator: GoogleCloudSecuritycenterV2Indicator kernelRootkit: GoogleCloudSecuritycenterV2KernelRootkit @@ -1030,6 +1101,7 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals mitreAttack: GoogleCloudSecuritycenterV2MitreAttack moduleName: str mute: typing_extensions.Literal["MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED"] + muteInfo: GoogleCloudSecuritycenterV2MuteInfo muteInitiator: str muteUpdateTime: str name: str @@ -1047,6 +1119,7 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals ] sourceProperties: dict[str, typing.Any] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + toxicCombination: GoogleCloudSecuritycenterV2ToxicCombination vulnerability: GoogleCloudSecuritycenterV2Vulnerability @typing.type_check_only @@ -1058,6 +1131,15 @@ class GoogleCloudSecuritycenterV2Folder(typing_extensions.TypedDict, total=False class GoogleCloudSecuritycenterV2Geolocation(typing_extensions.TypedDict, total=False): regionCode: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2GroupMembership( + typing_extensions.TypedDict, total=False +): + groupId: str + groupType: typing_extensions.Literal[ + "GROUP_TYPE_UNSPECIFIED", "GROUP_TYPE_TOXIC_COMBINATION" + ] + @typing.type_check_only class GoogleCloudSecuritycenterV2IamBinding(typing_extensions.TypedDict, total=False): action: typing_extensions.Literal["ACTION_UNSPECIFIED", "ADD", "REMOVE"] @@ -1148,8 +1230,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1197,7 +1281,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] primaryTactic: typing_extensions.Literal[ @@ -1229,8 +1316,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1278,7 +1367,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] version: str @@ -1287,12 +1379,18 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= class GoogleCloudSecuritycenterV2MuteConfig(typing_extensions.TypedDict, total=False): createTime: str description: str + expiryTime: str filter: str mostRecentEditor: str name: str - type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC"] + type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC", "DYNAMIC"] updateTime: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2MuteInfo(typing_extensions.TypedDict, total=False): + dynamicMuteRecords: _list[GoogleCloudSecuritycenterV2DynamicMuteRecord] + staticMute: GoogleCloudSecuritycenterV2StaticMute + @typing.type_check_only class GoogleCloudSecuritycenterV2Node(typing_extensions.TypedDict, total=False): name: str @@ -1389,6 +1487,7 @@ class GoogleCloudSecuritycenterV2Requests(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudSecuritycenterV2Resource(typing_extensions.TypedDict, total=False): awsMetadata: GoogleCloudSecuritycenterV2AwsMetadata + azureMetadata: GoogleCloudSecuritycenterV2AzureMetadata cloudProvider: typing_extensions.Literal[ "CLOUD_PROVIDER_UNSPECIFIED", "GOOGLE_CLOUD_PLATFORM", @@ -1513,6 +1612,13 @@ class GoogleCloudSecuritycenterV2ServiceAccountDelegationInfo( principalEmail: str principalSubject: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2StaticMute(typing_extensions.TypedDict, total=False): + applyTime: str + state: typing_extensions.Literal[ + "MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED" + ] + @typing.type_check_only class GoogleCloudSecuritycenterV2Subject(typing_extensions.TypedDict, total=False): kind: typing_extensions.Literal[ @@ -1530,6 +1636,13 @@ class GoogleCloudSecuritycenterV2TicketInfo(typing_extensions.TypedDict, total=F updateTime: str uri: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2ToxicCombination( + typing_extensions.TypedDict, total=False +): + attackExposureScore: float + relatedFindings: _list[str] + @typing.type_check_only class GoogleCloudSecuritycenterV2Vulnerability( typing_extensions.TypedDict, total=False @@ -1574,6 +1687,13 @@ class GroupFindingsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str readTime: str +@typing.type_check_only +class GroupMembership(typing_extensions.TypedDict, total=False): + groupId: str + groupType: typing_extensions.Literal[ + "GROUP_TYPE_UNSPECIFIED", "GROUP_TYPE_TOXIC_COMBINATION" + ] + @typing.type_check_only class GroupResult(typing_extensions.TypedDict, total=False): count: str @@ -1696,8 +1816,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1745,7 +1867,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] primaryTactic: typing_extensions.Literal[ @@ -1777,8 +1902,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1826,11 +1953,19 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] version: str +@typing.type_check_only +class MuteInfo(typing_extensions.TypedDict, total=False): + dynamicMuteRecords: _list[DynamicMuteRecord] + staticMute: StaticMute + @typing.type_check_only class Node(typing_extensions.TypedDict, total=False): name: str @@ -2021,6 +2156,13 @@ class Source(typing_extensions.TypedDict, total=False): displayName: str name: str +@typing.type_check_only +class StaticMute(typing_extensions.TypedDict, total=False): + applyTime: str + state: typing_extensions.Literal[ + "MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED" + ] + @typing.type_check_only class Status(typing_extensions.TypedDict, total=False): code: int @@ -2052,6 +2194,11 @@ class TicketInfo(typing_extensions.TypedDict, total=False): updateTime: str uri: str +@typing.type_check_only +class ToxicCombination(typing_extensions.TypedDict, total=False): + attackExposureScore: float + relatedFindings: _list[str] + @typing.type_check_only class Vulnerability(typing_extensions.TypedDict, total=False): cve: Cve diff --git a/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi b/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi index 9548d497..85b4ab62 100644 --- a/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi +++ b/googleapiclient-stubs/_apis/securitycenter/v1beta2/schemas.pyi @@ -75,6 +75,26 @@ class AwsOrganizationalUnit(typing_extensions.TypedDict, total=False): id: str name: str +@typing.type_check_only +class AzureManagementGroup(typing_extensions.TypedDict, total=False): + displayName: str + id: str + +@typing.type_check_only +class AzureMetadata(typing_extensions.TypedDict, total=False): + managementGroups: _list[AzureManagementGroup] + resourceGroup: AzureResourceGroup + subscription: AzureSubscription + +@typing.type_check_only +class AzureResourceGroup(typing_extensions.TypedDict, total=False): + name: str + +@typing.type_check_only +class AzureSubscription(typing_extensions.TypedDict, total=False): + displayName: str + id: str + @typing.type_check_only class BackupDisasterRecovery(typing_extensions.TypedDict, total=False): appliance: str @@ -186,6 +206,7 @@ class ContainerThreatDetectionSettings(typing_extensions.TypedDict, total=False) @typing.type_check_only class Cve(typing_extensions.TypedDict, total=False): cvssv3: Cvssv3 + exploitReleaseDate: str exploitationActivity: typing_extensions.Literal[ "EXPLOITATION_ACTIVITY_UNSPECIFIED", "WIDE", @@ -269,6 +290,11 @@ class DiskPath(typing_extensions.TypedDict, total=False): partitionUuid: str relativePath: str +@typing.type_check_only +class DynamicMuteRecord(typing_extensions.TypedDict, total=False): + matchTime: str + muteConfig: str + @typing.type_check_only class EnvironmentVariable(typing_extensions.TypedDict, total=False): name: str @@ -342,7 +368,9 @@ class Finding(typing_extensions.TypedDict, total=False): "OBSERVATION", "SCC_ERROR", "POSTURE_VIOLATION", + "TOXIC_COMBINATION", ] + groupMemberships: _list[GroupMembership] iamBindings: _list[IamBinding] indicator: Indicator kernelRootkit: KernelRootkit @@ -352,6 +380,7 @@ class Finding(typing_extensions.TypedDict, total=False): mitreAttack: MitreAttack moduleName: str mute: typing_extensions.Literal["MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED"] + muteInfo: MuteInfo muteInitiator: str muteUpdateTime: str name: str @@ -369,6 +398,7 @@ class Finding(typing_extensions.TypedDict, total=False): ] sourceProperties: dict[str, typing.Any] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + toxicCombination: ToxicCombination vulnerability: Vulnerability @typing.type_check_only @@ -463,9 +493,11 @@ class GoogleCloudSecuritycenterV1MuteConfig(typing_extensions.TypedDict, total=F createTime: str description: str displayName: str + expiryTime: str filter: str mostRecentEditor: str name: str + type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC", "DYNAMIC"] updateTime: str @typing.type_check_only @@ -484,6 +516,7 @@ class GoogleCloudSecuritycenterV1Property(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudSecuritycenterV1Resource(typing_extensions.TypedDict, total=False): awsMetadata: AwsMetadata + azureMetadata: AzureMetadata cloudProvider: typing_extensions.Literal[ "CLOUD_PROVIDER_UNSPECIFIED", "GOOGLE_CLOUD_PLATFORM", @@ -721,6 +754,34 @@ class GoogleCloudSecuritycenterV2AwsOrganizationalUnit( id: str name: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureManagementGroup( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureMetadata( + typing_extensions.TypedDict, total=False +): + managementGroups: _list[GoogleCloudSecuritycenterV2AzureManagementGroup] + resourceGroup: GoogleCloudSecuritycenterV2AzureResourceGroup + subscription: GoogleCloudSecuritycenterV2AzureSubscription + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureResourceGroup( + typing_extensions.TypedDict, total=False +): + name: str + +@typing.type_check_only +class GoogleCloudSecuritycenterV2AzureSubscription( + typing_extensions.TypedDict, total=False +): + displayName: str + id: str + @typing.type_check_only class GoogleCloudSecuritycenterV2BackupDisasterRecovery( typing_extensions.TypedDict, total=False @@ -834,6 +895,7 @@ class GoogleCloudSecuritycenterV2Container(typing_extensions.TypedDict, total=Fa @typing.type_check_only class GoogleCloudSecuritycenterV2Cve(typing_extensions.TypedDict, total=False): cvssv3: GoogleCloudSecuritycenterV2Cvssv3 + exploitReleaseDate: str exploitationActivity: typing_extensions.Literal[ "EXPLOITATION_ACTIVITY_UNSPECIFIED", "WIDE", @@ -909,6 +971,13 @@ class GoogleCloudSecuritycenterV2DiskPath(typing_extensions.TypedDict, total=Fal partitionUuid: str relativePath: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2DynamicMuteRecord( + typing_extensions.TypedDict, total=False +): + matchTime: str + muteConfig: str + @typing.type_check_only class GoogleCloudSecuritycenterV2EnvironmentVariable( typing_extensions.TypedDict, total=False @@ -986,7 +1055,9 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals "OBSERVATION", "SCC_ERROR", "POSTURE_VIOLATION", + "TOXIC_COMBINATION", ] + groupMemberships: _list[GoogleCloudSecuritycenterV2GroupMembership] iamBindings: _list[GoogleCloudSecuritycenterV2IamBinding] indicator: GoogleCloudSecuritycenterV2Indicator kernelRootkit: GoogleCloudSecuritycenterV2KernelRootkit @@ -996,6 +1067,7 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals mitreAttack: GoogleCloudSecuritycenterV2MitreAttack moduleName: str mute: typing_extensions.Literal["MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED"] + muteInfo: GoogleCloudSecuritycenterV2MuteInfo muteInitiator: str muteUpdateTime: str name: str @@ -1013,6 +1085,7 @@ class GoogleCloudSecuritycenterV2Finding(typing_extensions.TypedDict, total=Fals ] sourceProperties: dict[str, typing.Any] state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "INACTIVE"] + toxicCombination: GoogleCloudSecuritycenterV2ToxicCombination vulnerability: GoogleCloudSecuritycenterV2Vulnerability @typing.type_check_only @@ -1024,6 +1097,15 @@ class GoogleCloudSecuritycenterV2Folder(typing_extensions.TypedDict, total=False class GoogleCloudSecuritycenterV2Geolocation(typing_extensions.TypedDict, total=False): regionCode: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2GroupMembership( + typing_extensions.TypedDict, total=False +): + groupId: str + groupType: typing_extensions.Literal[ + "GROUP_TYPE_UNSPECIFIED", "GROUP_TYPE_TOXIC_COMBINATION" + ] + @typing.type_check_only class GoogleCloudSecuritycenterV2IamBinding(typing_extensions.TypedDict, total=False): action: typing_extensions.Literal["ACTION_UNSPECIFIED", "ADD", "REMOVE"] @@ -1114,8 +1196,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1163,7 +1247,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] primaryTactic: typing_extensions.Literal[ @@ -1195,8 +1282,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1244,7 +1333,10 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] version: str @@ -1253,12 +1345,18 @@ class GoogleCloudSecuritycenterV2MitreAttack(typing_extensions.TypedDict, total= class GoogleCloudSecuritycenterV2MuteConfig(typing_extensions.TypedDict, total=False): createTime: str description: str + expiryTime: str filter: str mostRecentEditor: str name: str - type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC"] + type: typing_extensions.Literal["MUTE_CONFIG_TYPE_UNSPECIFIED", "STATIC", "DYNAMIC"] updateTime: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2MuteInfo(typing_extensions.TypedDict, total=False): + dynamicMuteRecords: _list[GoogleCloudSecuritycenterV2DynamicMuteRecord] + staticMute: GoogleCloudSecuritycenterV2StaticMute + @typing.type_check_only class GoogleCloudSecuritycenterV2Node(typing_extensions.TypedDict, total=False): name: str @@ -1355,6 +1453,7 @@ class GoogleCloudSecuritycenterV2Requests(typing_extensions.TypedDict, total=Fal @typing.type_check_only class GoogleCloudSecuritycenterV2Resource(typing_extensions.TypedDict, total=False): awsMetadata: GoogleCloudSecuritycenterV2AwsMetadata + azureMetadata: GoogleCloudSecuritycenterV2AzureMetadata cloudProvider: typing_extensions.Literal[ "CLOUD_PROVIDER_UNSPECIFIED", "GOOGLE_CLOUD_PLATFORM", @@ -1479,6 +1578,13 @@ class GoogleCloudSecuritycenterV2ServiceAccountDelegationInfo( principalEmail: str principalSubject: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2StaticMute(typing_extensions.TypedDict, total=False): + applyTime: str + state: typing_extensions.Literal[ + "MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED" + ] + @typing.type_check_only class GoogleCloudSecuritycenterV2Subject(typing_extensions.TypedDict, total=False): kind: typing_extensions.Literal[ @@ -1496,6 +1602,13 @@ class GoogleCloudSecuritycenterV2TicketInfo(typing_extensions.TypedDict, total=F updateTime: str uri: str +@typing.type_check_only +class GoogleCloudSecuritycenterV2ToxicCombination( + typing_extensions.TypedDict, total=False +): + attackExposureScore: float + relatedFindings: _list[str] + @typing.type_check_only class GoogleCloudSecuritycenterV2Vulnerability( typing_extensions.TypedDict, total=False @@ -1511,6 +1624,13 @@ class GoogleCloudSecuritycenterV2YaraRuleSignature( ): yaraRule: str +@typing.type_check_only +class GroupMembership(typing_extensions.TypedDict, total=False): + groupId: str + groupType: typing_extensions.Literal[ + "GROUP_TYPE_UNSPECIFIED", "GROUP_TYPE_TOXIC_COMBINATION" + ] + @typing.type_check_only class IamBinding(typing_extensions.TypedDict, total=False): action: typing_extensions.Literal["ACTION_UNSPECIFIED", "ADD", "REMOVE"] @@ -1597,8 +1717,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1646,7 +1768,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] primaryTactic: typing_extensions.Literal[ @@ -1678,8 +1803,10 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -1727,11 +1854,19 @@ class MitreAttack(typing_extensions.TypedDict, total=False): "OBTAIN_CAPABILITIES", "ACTIVE_SCANNING", "SCANNING_IP_BLOCKS", + "CONTAINER_ADMINISTRATION_COMMAND", + "ESCAPE_TO_HOST", "CONTAINER_AND_RESOURCE_DISCOVERY", + "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES", ] ] version: str +@typing.type_check_only +class MuteInfo(typing_extensions.TypedDict, total=False): + dynamicMuteRecords: _list[DynamicMuteRecord] + staticMute: StaticMute + @typing.type_check_only class Node(typing_extensions.TypedDict, total=False): name: str @@ -1900,6 +2035,13 @@ class ServiceAccountDelegationInfo(typing_extensions.TypedDict, total=False): principalEmail: str principalSubject: str +@typing.type_check_only +class StaticMute(typing_extensions.TypedDict, total=False): + applyTime: str + state: typing_extensions.Literal[ + "MUTE_UNSPECIFIED", "MUTED", "UNMUTED", "UNDEFINED" + ] + @typing.type_check_only class Subject(typing_extensions.TypedDict, total=False): kind: typing_extensions.Literal[ @@ -1925,6 +2067,11 @@ class TicketInfo(typing_extensions.TypedDict, total=False): updateTime: str uri: str +@typing.type_check_only +class ToxicCombination(typing_extensions.TypedDict, total=False): + attackExposureScore: float + relatedFindings: _list[str] + @typing.type_check_only class VirtualMachineThreatDetectionSettings(typing_extensions.TypedDict, total=False): modules: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/resources.pyi b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/resources.pyi index 83555d5f..c173ef5d 100644 --- a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/resources.pyi +++ b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/resources.pyi @@ -102,6 +102,52 @@ class ServiceConsumerManagementResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class ProducerQuotaPoliciesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: V1Beta1ProducerQuotaPolicy = ..., + force: bool = ..., + forceJustification: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def delete( + self, + *, + name: str, + force: bool = ..., + forceJustification: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> V1Beta1ListProducerQuotaPoliciesResponseHttpRequest: ... + def list_next( + self, + previous_request: V1Beta1ListProducerQuotaPoliciesResponseHttpRequest, + previous_response: V1Beta1ListProducerQuotaPoliciesResponse, + ) -> V1Beta1ListProducerQuotaPoliciesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: V1Beta1ProducerQuotaPolicy = ..., + force: bool = ..., + forceJustification: str = ..., + updateMask: str = ..., + validateOnly: bool = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def get( self, *, @@ -112,6 +158,7 @@ class ServiceConsumerManagementResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> V1Beta1ConsumerQuotaLimitHttpRequest: ... def producerOverrides(self) -> ProducerOverridesResource: ... + def producerQuotaPolicies(self) -> ProducerQuotaPoliciesResource: ... def get( self, @@ -129,6 +176,13 @@ class ServiceConsumerManagementResource(googleapiclient.discovery.Resource): body: V1Beta1ImportProducerOverridesRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def importProducerQuotaPolicies( + self, + *, + parent: str, + body: V1Beta1ImportProducerQuotaPoliciesRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def list( self, *, @@ -205,3 +259,13 @@ class V1Beta1ListProducerOverridesResponseHttpRequest(googleapiclient.http.HttpR http: httplib2.Http | googleapiclient.http.HttpMock | None = None, num_retries: int = 0, ) -> V1Beta1ListProducerOverridesResponse: ... + +@typing.type_check_only +class V1Beta1ListProducerQuotaPoliciesResponseHttpRequest( + googleapiclient.http.HttpRequest +): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> V1Beta1ListProducerQuotaPoliciesResponse: ... diff --git a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi index 4c86a13d..cb7ee3b6 100644 --- a/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi +++ b/googleapiclient-stubs/_apis/serviceconsumermanagement/v1beta1/schemas.pyi @@ -624,6 +624,15 @@ class V1Beta1ImportProducerOverridesRequest(typing_extensions.TypedDict, total=F class V1Beta1ImportProducerOverridesResponse(typing_extensions.TypedDict, total=False): overrides: _list[V1Beta1QuotaOverride] +@typing.type_check_only +class V1Beta1ImportProducerQuotaPoliciesRequest( + typing_extensions.TypedDict, total=False +): + force: bool + forceJustification: str + inlineSource: V1Beta1PolicyInlineSource + validateOnly: bool + @typing.type_check_only class V1Beta1ImportProducerQuotaPoliciesResponse( typing_extensions.TypedDict, total=False @@ -640,10 +649,21 @@ class V1Beta1ListProducerOverridesResponse(typing_extensions.TypedDict, total=Fa nextPageToken: str overrides: _list[V1Beta1QuotaOverride] +@typing.type_check_only +class V1Beta1ListProducerQuotaPoliciesResponse( + typing_extensions.TypedDict, total=False +): + nextPageToken: str + producerQuotaPolicies: _list[V1Beta1ProducerQuotaPolicy] + @typing.type_check_only class V1Beta1OverrideInlineSource(typing_extensions.TypedDict, total=False): overrides: _list[V1Beta1QuotaOverride] +@typing.type_check_only +class V1Beta1PolicyInlineSource(typing_extensions.TypedDict, total=False): + policies: _list[V1Beta1ProducerQuotaPolicy] + @typing.type_check_only class V1Beta1ProducerQuotaPolicy(typing_extensions.TypedDict, total=False): container: str diff --git a/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi b/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi index a39e4e9f..8e084b1a 100644 --- a/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/servicecontrol/v1/schemas.pyi @@ -536,6 +536,7 @@ class V1LogEntrySourceLocation(typing_extensions.TypedDict, total=False): @typing.type_check_only class V1ResourceEvent(typing_extensions.TypedDict, total=False): + contextId: str destinations: str parent: Resource path: typing_extensions.Literal["API_PATH_UNSPECIFIED", "REQUEST", "RESPONSE"] diff --git a/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi b/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi index 678fc333..2c514049 100644 --- a/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/servicecontrol/v2/schemas.pyi @@ -267,6 +267,7 @@ class V2LogEntrySourceLocation(typing_extensions.TypedDict, total=False): @typing.type_check_only class V2ResourceEvent(typing_extensions.TypedDict, total=False): + contextId: str destinations: str parent: Resource path: typing_extensions.Literal["API_PATH_UNSPECIFIED", "REQUEST", "RESPONSE"] diff --git a/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi b/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi index ae8a7896..2dc268e6 100644 --- a/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi +++ b/googleapiclient-stubs/_apis/sheets/v4/schemas.pyi @@ -872,6 +872,7 @@ class DataSourceSheetProperties(typing_extensions.TypedDict, total=False): @typing.type_check_only class DataSourceSpec(typing_extensions.TypedDict, total=False): bigQuery: BigQueryDataSourceSpec + looker: LookerDataSourceSpec parameters: _list[DataSourceParameter] @typing.type_check_only @@ -1296,6 +1297,12 @@ class LineStyle(typing_extensions.TypedDict, total=False): class Link(typing_extensions.TypedDict, total=False): uri: str +@typing.type_check_only +class LookerDataSourceSpec(typing_extensions.TypedDict, total=False): + explore: str + instanceUri: str + model: str + @typing.type_check_only class ManualRule(typing_extensions.TypedDict, total=False): groups: _list[ManualRuleGroup] diff --git a/googleapiclient-stubs/_apis/spanner/v1/resources.pyi b/googleapiclient-stubs/_apis/spanner/v1/resources.pyi index 0b614e07..97bdb9ae 100644 --- a/googleapiclient-stubs/_apis/spanner/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/spanner/v1/resources.pyi @@ -271,6 +271,65 @@ class SpannerResource(googleapiclient.discovery.Resource): @typing.type_check_only class DatabasesResource(googleapiclient.discovery.Resource): + @typing.type_check_only + class BackupSchedulesResource(googleapiclient.discovery.Resource): + def create( + self, + *, + parent: str, + body: BackupSchedule = ..., + backupScheduleId: str = ..., + **kwargs: typing.Any, + ) -> BackupScheduleHttpRequest: ... + def delete( + self, *, name: str, **kwargs: typing.Any + ) -> EmptyHttpRequest: ... + def get( + self, *, name: str, **kwargs: typing.Any + ) -> BackupScheduleHttpRequest: ... + def getIamPolicy( + self, + *, + resource: str, + body: GetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def list( + self, + *, + parent: str, + pageSize: int = ..., + pageToken: str = ..., + **kwargs: typing.Any, + ) -> ListBackupSchedulesResponseHttpRequest: ... + def list_next( + self, + previous_request: ListBackupSchedulesResponseHttpRequest, + previous_response: ListBackupSchedulesResponse, + ) -> ListBackupSchedulesResponseHttpRequest | None: ... + def patch( + self, + *, + name: str, + body: BackupSchedule = ..., + updateMask: str = ..., + **kwargs: typing.Any, + ) -> BackupScheduleHttpRequest: ... + def setIamPolicy( + self, + *, + resource: str, + body: SetIamPolicyRequest = ..., + **kwargs: typing.Any, + ) -> PolicyHttpRequest: ... + def testIamPermissions( + self, + *, + resource: str, + body: TestIamPermissionsRequest = ..., + **kwargs: typing.Any, + ) -> TestIamPermissionsResponseHttpRequest: ... + @typing.type_check_only class DatabaseRolesResource(googleapiclient.discovery.Resource): def list( @@ -434,6 +493,13 @@ class SpannerResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> PartialResultSetHttpRequest: ... + def changequorum( + self, + *, + name: str, + body: ChangeQuorumRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... def create( self, *, @@ -517,6 +583,7 @@ class SpannerResource(googleapiclient.discovery.Resource): body: UpdateDatabaseDdlRequest = ..., **kwargs: typing.Any, ) -> OperationHttpRequest: ... + def backupSchedules(self) -> BackupSchedulesResource: ... def databaseRoles(self) -> DatabaseRolesResource: ... def operations(self) -> OperationsResource: ... def sessions(self) -> SessionsResource: ... @@ -751,6 +818,14 @@ class BackupHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> Backup: ... +@typing.type_check_only +class BackupScheduleHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BackupSchedule: ... + @typing.type_check_only class BatchCreateSessionsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( @@ -839,6 +914,14 @@ class ListBackupOperationsResponseHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> ListBackupOperationsResponse: ... +@typing.type_check_only +class ListBackupSchedulesResponseHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> ListBackupSchedulesResponse: ... + @typing.type_check_only class ListBackupsResponseHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi b/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi index ec8010ef..cb1fd100 100644 --- a/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/spanner/v1/schemas.pyi @@ -23,6 +23,7 @@ class AutoscalingTargets(typing_extensions.TypedDict, total=False): @typing.type_check_only class Backup(typing_extensions.TypedDict, total=False): + backupSchedules: _list[str] createTime: str database: str databaseDialect: typing_extensions.Literal[ @@ -46,6 +47,19 @@ class BackupInfo(typing_extensions.TypedDict, total=False): sourceDatabase: str versionTime: str +@typing.type_check_only +class BackupSchedule(typing_extensions.TypedDict, total=False): + encryptionConfig: CreateBackupEncryptionConfig + fullBackupSpec: FullBackupSpec + name: str + retentionDuration: str + spec: BackupScheduleSpec + updateTime: str + +@typing.type_check_only +class BackupScheduleSpec(typing_extensions.TypedDict, total=False): + cronSpec: CrontabSpec + @typing.type_check_only class BatchCreateSessionsRequest(typing_extensions.TypedDict, total=False): sessionCount: int @@ -78,6 +92,18 @@ class Binding(typing_extensions.TypedDict, total=False): members: _list[str] role: str +@typing.type_check_only +class ChangeQuorumMetadata(typing_extensions.TypedDict, total=False): + endTime: str + request: ChangeQuorumRequest + startTime: str + +@typing.type_check_only +class ChangeQuorumRequest(typing_extensions.TypedDict, total=False): + etag: str + name: str + quorumType: QuorumType + @typing.type_check_only class ChildLink(typing_extensions.TypedDict, total=False): childIndex: int @@ -136,6 +162,17 @@ class CopyBackupRequest(typing_extensions.TypedDict, total=False): expireTime: str sourceBackup: str +@typing.type_check_only +class CreateBackupEncryptionConfig(typing_extensions.TypedDict, total=False): + encryptionType: typing_extensions.Literal[ + "ENCRYPTION_TYPE_UNSPECIFIED", + "USE_DATABASE_ENCRYPTION", + "GOOGLE_DEFAULT_ENCRYPTION", + "CUSTOMER_MANAGED_ENCRYPTION", + ] + kmsKeyName: str + kmsKeyNames: _list[str] + @typing.type_check_only class CreateBackupMetadata(typing_extensions.TypedDict, total=False): cancelTime: str @@ -202,6 +239,12 @@ class CreateInstanceRequest(typing_extensions.TypedDict, total=False): class CreateSessionRequest(typing_extensions.TypedDict, total=False): session: Session +@typing.type_check_only +class CrontabSpec(typing_extensions.TypedDict, total=False): + creationWindow: str + text: str + timeZone: str + @typing.type_check_only class Database(typing_extensions.TypedDict, total=False): createTime: str @@ -214,6 +257,7 @@ class Database(typing_extensions.TypedDict, total=False): encryptionConfig: EncryptionConfig encryptionInfo: _list[EncryptionInfo] name: str + quorumInfo: QuorumInfo reconciling: bool restoreInfo: RestoreInfo state: typing_extensions.Literal[ @@ -256,6 +300,9 @@ class DirectedReadOptions(typing_extensions.TypedDict, total=False): excludeReplicas: ExcludeReplicas includeReplicas: IncludeReplicas +@typing.type_check_only +class DualRegionQuorum(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Empty(typing_extensions.TypedDict, total=False): ... @@ -325,6 +372,9 @@ class FreeInstanceMetadata(typing_extensions.TypedDict, total=False): expireTime: str upgradeTime: str +@typing.type_check_only +class FullBackupSpec(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class GetDatabaseDdlResponse(typing_extensions.TypedDict, total=False): protoDescriptors: str @@ -393,6 +443,9 @@ class InstanceConfig(typing_extensions.TypedDict, total=False): leaderOptions: _list[str] name: str optionalReplicas: _list[ReplicaInfo] + quorumType: typing_extensions.Literal[ + "QUORUM_TYPE_UNSPECIFIED", "REGION", "DUAL_REGION", "MULTI_REGION" + ] reconciling: bool replicas: _list[ReplicaInfo] state: typing_extensions.Literal["STATE_UNSPECIFIED", "CREATING", "READY"] @@ -453,6 +506,11 @@ class ListBackupOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str operations: _list[Operation] +@typing.type_check_only +class ListBackupSchedulesResponse(typing_extensions.TypedDict, total=False): + backupSchedules: _list[BackupSchedule] + nextPageToken: str + @typing.type_check_only class ListBackupsResponse(typing_extensions.TypedDict, total=False): backups: _list[Backup] @@ -660,6 +718,18 @@ class QueryPlan(typing_extensions.TypedDict, total=False): planNodes: _list[PlanNode] queryAdvice: QueryAdvisorResult +@typing.type_check_only +class QuorumInfo(typing_extensions.TypedDict, total=False): + etag: str + initiator: typing_extensions.Literal["INITIATOR_UNSPECIFIED", "GOOGLE", "USER"] + quorumType: QuorumType + startTime: str + +@typing.type_check_only +class QuorumType(typing_extensions.TypedDict, total=False): + dualRegion: DualRegionQuorum + singleRegion: SingleRegionQuorum + @typing.type_check_only class ReadOnly(typing_extensions.TypedDict, total=False): exactStaleness: str @@ -677,6 +747,12 @@ class ReadRequest(typing_extensions.TypedDict, total=False): index: str keySet: KeySet limit: str + lockHint: typing_extensions.Literal[ + "LOCK_HINT_UNSPECIFIED", "LOCK_HINT_SHARED", "LOCK_HINT_EXCLUSIVE" + ] + orderBy: typing_extensions.Literal[ + "ORDER_BY_UNSPECIFIED", "ORDER_BY_PRIMARY_KEY", "ORDER_BY_NO_ORDER" + ] partitionToken: str requestOptions: RequestOptions resumeToken: str @@ -796,6 +872,10 @@ class ShortRepresentation(typing_extensions.TypedDict, total=False): description: str subqueries: dict[str, typing.Any] +@typing.type_check_only +class SingleRegionQuorum(typing_extensions.TypedDict, total=False): + servingLocation: str + @typing.type_check_only class Statement(typing_extensions.TypedDict, total=False): paramTypes: dict[str, typing.Any] diff --git a/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi b/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi index 5feab054..92e8c57d 100644 --- a/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/sqladmin/v1/schemas.pyi @@ -34,6 +34,12 @@ class ApiWarning(typing_extensions.TypedDict, total=False): message: str region: str +@typing.type_check_only +class AvailableDatabaseVersion(typing_extensions.TypedDict, total=False): + displayName: str + majorVersion: str + name: str + @typing.type_check_only class BackupConfiguration(typing_extensions.TypedDict, total=False): backupRetentionSettings: BackupRetentionSettings @@ -85,6 +91,7 @@ class BackupRun(typing_extensions.TypedDict, total=False): instance: str kind: str location: str + maxChargeableBytes: str selfLink: str startTime: str status: typing_extensions.Literal[ @@ -150,6 +157,7 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", + "POSTGRES_16", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -168,6 +176,7 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_4", + "MYSQL_8_4_0", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -183,6 +192,9 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): pscEnabled: bool region: str serverCaCert: SslCert + serverCaMode: typing_extensions.Literal[ + "CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA" + ] @typing.type_check_only class DataCacheConfig(typing_extensions.TypedDict, total=False): @@ -232,6 +244,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", + "POSTGRES_16", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -250,6 +263,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_4", + "MYSQL_8_4_0", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -289,6 +303,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): replicaNames: _list[str] replicationCluster: ReplicationCluster rootPassword: str + satisfiesPzi: bool satisfiesPzs: bool scheduledMaintenance: SqlScheduledMaintenance secondaryGceZone: str @@ -320,6 +335,8 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "KMS_KEY_ISSUE", ] ] + switchTransactionLogsToCloudStorageEnabled: bool + upgradableDatabaseVersions: _list[AvailableDatabaseVersion] writeEndpoint: str @typing.type_check_only @@ -413,6 +430,7 @@ class Flag(typing_extensions.TypedDict, total=False): "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", + "POSTGRES_16", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -431,6 +449,7 @@ class Flag(typing_extensions.TypedDict, total=False): "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_4", + "MYSQL_8_4_0", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -576,6 +595,9 @@ class IpConfiguration(typing_extensions.TypedDict, total=False): privateNetwork: str pscConfig: PscConfig requireSsl: bool + serverCaMode: typing_extensions.Literal[ + "CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA" + ] sslMode: typing_extensions.Literal[ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -699,6 +721,7 @@ class Operation(typing_extensions.TypedDict, total=False): "CLUSTER_MAINTENANCE", "SELF_SERVICE_MAINTENANCE", "SWITCHOVER_TO_REPLICA", + "MAJOR_VERSION_UPGRADE", ] selfLink: str startTime: str @@ -827,6 +850,7 @@ class Settings(typing_extensions.TypedDict, total=False): edition: typing_extensions.Literal[ "EDITION_UNSPECIFIED", "ENTERPRISE", "ENTERPRISE_PLUS" ] + enableDataplexIntegration: bool enableGoogleMlIntegration: bool insightsConfig: InsightsConfig ipConfiguration: IpConfiguration @@ -903,6 +927,11 @@ class SqlExternalSyncSettingError(typing_extensions.TypedDict, total=False): "PG_SYNC_PARALLEL_LEVEL", "INSUFFICIENT_DISK_SIZE", "INSUFFICIENT_MACHINE_TIER", + "UNSUPPORTED_EXTENSIONS_NOT_MIGRATED", + "EXTENSIONS_NOT_MIGRATED", + "PG_CRON_FLAG_ENABLED_IN_REPLICA", + "EXTENSIONS_NOT_ENABLED_IN_REPLICA", + "UNSUPPORTED_COLUMNS", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi b/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi index 5feab054..92e8c57d 100644 --- a/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi +++ b/googleapiclient-stubs/_apis/sqladmin/v1beta4/schemas.pyi @@ -34,6 +34,12 @@ class ApiWarning(typing_extensions.TypedDict, total=False): message: str region: str +@typing.type_check_only +class AvailableDatabaseVersion(typing_extensions.TypedDict, total=False): + displayName: str + majorVersion: str + name: str + @typing.type_check_only class BackupConfiguration(typing_extensions.TypedDict, total=False): backupRetentionSettings: BackupRetentionSettings @@ -85,6 +91,7 @@ class BackupRun(typing_extensions.TypedDict, total=False): instance: str kind: str location: str + maxChargeableBytes: str selfLink: str startTime: str status: typing_extensions.Literal[ @@ -150,6 +157,7 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", + "POSTGRES_16", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -168,6 +176,7 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_4", + "MYSQL_8_4_0", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -183,6 +192,9 @@ class ConnectSettings(typing_extensions.TypedDict, total=False): pscEnabled: bool region: str serverCaCert: SslCert + serverCaMode: typing_extensions.Literal[ + "CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA" + ] @typing.type_check_only class DataCacheConfig(typing_extensions.TypedDict, total=False): @@ -232,6 +244,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", + "POSTGRES_16", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -250,6 +263,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_4", + "MYSQL_8_4_0", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -289,6 +303,7 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): replicaNames: _list[str] replicationCluster: ReplicationCluster rootPassword: str + satisfiesPzi: bool satisfiesPzs: bool scheduledMaintenance: SqlScheduledMaintenance secondaryGceZone: str @@ -320,6 +335,8 @@ class DatabaseInstance(typing_extensions.TypedDict, total=False): "KMS_KEY_ISSUE", ] ] + switchTransactionLogsToCloudStorageEnabled: bool + upgradableDatabaseVersions: _list[AvailableDatabaseVersion] writeEndpoint: str @typing.type_check_only @@ -413,6 +430,7 @@ class Flag(typing_extensions.TypedDict, total=False): "POSTGRES_13", "POSTGRES_14", "POSTGRES_15", + "POSTGRES_16", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -431,6 +449,7 @@ class Flag(typing_extensions.TypedDict, total=False): "MYSQL_8_0_39", "MYSQL_8_0_40", "MYSQL_8_4", + "MYSQL_8_4_0", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -576,6 +595,9 @@ class IpConfiguration(typing_extensions.TypedDict, total=False): privateNetwork: str pscConfig: PscConfig requireSsl: bool + serverCaMode: typing_extensions.Literal[ + "CA_MODE_UNSPECIFIED", "GOOGLE_MANAGED_INTERNAL_CA", "GOOGLE_MANAGED_CAS_CA" + ] sslMode: typing_extensions.Literal[ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -699,6 +721,7 @@ class Operation(typing_extensions.TypedDict, total=False): "CLUSTER_MAINTENANCE", "SELF_SERVICE_MAINTENANCE", "SWITCHOVER_TO_REPLICA", + "MAJOR_VERSION_UPGRADE", ] selfLink: str startTime: str @@ -827,6 +850,7 @@ class Settings(typing_extensions.TypedDict, total=False): edition: typing_extensions.Literal[ "EDITION_UNSPECIFIED", "ENTERPRISE", "ENTERPRISE_PLUS" ] + enableDataplexIntegration: bool enableGoogleMlIntegration: bool insightsConfig: InsightsConfig ipConfiguration: IpConfiguration @@ -903,6 +927,11 @@ class SqlExternalSyncSettingError(typing_extensions.TypedDict, total=False): "PG_SYNC_PARALLEL_LEVEL", "INSUFFICIENT_DISK_SIZE", "INSUFFICIENT_MACHINE_TIER", + "UNSUPPORTED_EXTENSIONS_NOT_MIGRATED", + "EXTENSIONS_NOT_MIGRATED", + "PG_CRON_FLAG_ENABLED_IN_REPLICA", + "EXTENSIONS_NOT_ENABLED_IN_REPLICA", + "UNSUPPORTED_COLUMNS", ] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/storage/v1/resources.pyi b/googleapiclient-stubs/_apis/storage/v1/resources.pyi index 83fa7d27..383607d6 100644 --- a/googleapiclient-stubs/_apis/storage/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/storage/v1/resources.pyi @@ -115,9 +115,11 @@ class StorageResource(googleapiclient.discovery.Resource): self, *, bucket: str, + generation: str = ..., ifMetagenerationMatch: str = ..., ifMetagenerationNotMatch: str = ..., projection: typing_extensions.Literal["full", "noAcl"] = ..., + softDeleted: bool = ..., userProject: str = ..., **kwargs: typing.Any, ) -> BucketHttpRequest: ... @@ -129,6 +131,9 @@ class StorageResource(googleapiclient.discovery.Resource): userProject: str = ..., **kwargs: typing.Any, ) -> PolicyHttpRequest: ... + def getStorageLayout( + self, *, bucket: str, prefix: str = ..., **kwargs: typing.Any + ) -> BucketStorageLayoutHttpRequest: ... def insert( self, *, @@ -162,6 +167,7 @@ class StorageResource(googleapiclient.discovery.Resource): pageToken: str = ..., prefix: str = ..., projection: typing_extensions.Literal["full", "noAcl"] = ..., + softDeleted: bool = ..., userProject: str = ..., **kwargs: typing.Any, ) -> BucketsHttpRequest: ... @@ -202,6 +208,14 @@ class StorageResource(googleapiclient.discovery.Resource): userProject: str = ..., **kwargs: typing.Any, ) -> BucketHttpRequest: ... + def restore( + self, + *, + bucket: str, + generation: str, + userProject: str = ..., + **kwargs: typing.Any, + ) -> googleapiclient.http.HttpRequest: ... def setIamPolicy( self, *, @@ -960,6 +974,14 @@ class BucketAccessControlsHttpRequest(googleapiclient.http.HttpRequest): num_retries: int = 0, ) -> BucketAccessControls: ... +@typing.type_check_only +class BucketStorageLayoutHttpRequest(googleapiclient.http.HttpRequest): + def execute( + self, + http: httplib2.Http | googleapiclient.http.HttpMock | None = None, + num_retries: int = 0, + ) -> BucketStorageLayout: ... + @typing.type_check_only class BucketsHttpRequest(googleapiclient.http.HttpRequest): def execute( diff --git a/googleapiclient-stubs/_apis/storage/v1/schemas.pyi b/googleapiclient-stubs/_apis/storage/v1/schemas.pyi index a1c91402..b7fbc081 100644 --- a/googleapiclient-stubs/_apis/storage/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/storage/v1/schemas.pyi @@ -36,9 +36,11 @@ class Bucket(typing_extensions.TypedDict, total=False): defaultObjectAcl: _list[ObjectAccessControl] encryption: dict[str, typing.Any] etag: str + generation: str hierarchicalNamespace: dict[str, typing.Any] iamConfiguration: dict[str, typing.Any] id: str + ipFilter: dict[str, typing.Any] kind: str labels: dict[str, typing.Any] lifecycle: dict[str, typing.Any] @@ -52,6 +54,7 @@ class Bucket(typing_extensions.TypedDict, total=False): projectNumber: str retentionPolicy: dict[str, typing.Any] rpo: str + satisfiesPZI: bool satisfiesPZS: bool selfLink: str softDeletePolicy: dict[str, typing.Any] @@ -80,6 +83,15 @@ class BucketAccessControls(typing_extensions.TypedDict, total=False): items: _list[BucketAccessControl] kind: str +@typing.type_check_only +class BucketStorageLayout(typing_extensions.TypedDict, total=False): + bucket: str + customPlacementConfig: dict[str, typing.Any] + hierarchicalNamespace: dict[str, typing.Any] + kind: str + location: str + locationType: str + @typing.type_check_only class Buckets(typing_extensions.TypedDict, total=False): items: _list[Bucket] @@ -140,6 +152,7 @@ class Folders(typing_extensions.TypedDict, total=False): @typing.type_check_only class GoogleLongrunningListOperationsResponse(typing_extensions.TypedDict, total=False): + kind: str nextPageToken: str operations: _list[GoogleLongrunningOperation] @@ -147,9 +160,11 @@ class GoogleLongrunningListOperationsResponse(typing_extensions.TypedDict, total class GoogleLongrunningOperation(typing_extensions.TypedDict, total=False): done: bool error: GoogleRpcStatus + kind: str metadata: dict[str, typing.Any] name: str response: dict[str, typing.Any] + selfLink: str @typing.type_check_only class GoogleRpcStatus(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/sts/v1/schemas.pyi b/googleapiclient-stubs/_apis/sts/v1/schemas.pyi index be64f7a9..9de18dc8 100644 --- a/googleapiclient-stubs/_apis/sts/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/sts/v1/schemas.pyi @@ -34,6 +34,7 @@ class GoogleIdentityStsV1ExchangeTokenRequest(typing_extensions.TypedDict, total class GoogleIdentityStsV1ExchangeTokenResponse( typing_extensions.TypedDict, total=False ): + access_boundary_session_key: str access_token: str expires_in: int issued_token_type: str diff --git a/googleapiclient-stubs/_apis/tagmanager/v2/resources.pyi b/googleapiclient-stubs/_apis/tagmanager/v2/resources.pyi index edad47ad..fdbf22e2 100644 --- a/googleapiclient-stubs/_apis/tagmanager/v2/resources.pyi +++ b/googleapiclient-stubs/_apis/tagmanager/v2/resources.pyi @@ -1127,7 +1127,11 @@ class TagManagerResource(googleapiclient.discovery.Resource): previous_response: ListContainersResponse, ) -> ListContainersResponseHttpRequest | None: ... def lookup( - self, *, destinationId: str = ..., **kwargs: typing.Any + self, + *, + destinationId: str = ..., + tagId: str = ..., + **kwargs: typing.Any, ) -> ContainerHttpRequest: ... def move_tag_id( self, diff --git a/googleapiclient-stubs/_apis/tasks/v1/resources.pyi b/googleapiclient-stubs/_apis/tasks/v1/resources.pyi index 5857ba17..33c90ee8 100644 --- a/googleapiclient-stubs/_apis/tasks/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/tasks/v1/resources.pyi @@ -67,6 +67,7 @@ class TasksResource(googleapiclient.discovery.Resource): dueMin: str = ..., maxResults: int = ..., pageToken: str = ..., + showAssigned: bool = ..., showCompleted: bool = ..., showDeleted: bool = ..., showHidden: bool = ..., @@ -81,6 +82,7 @@ class TasksResource(googleapiclient.discovery.Resource): *, tasklist: str, task: str, + destinationTasklist: str = ..., parent: str = ..., previous: str = ..., **kwargs: typing.Any, diff --git a/googleapiclient-stubs/_apis/tasks/v1/schemas.pyi b/googleapiclient-stubs/_apis/tasks/v1/schemas.pyi index 8fddefdd..b7a7faa2 100644 --- a/googleapiclient-stubs/_apis/tasks/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/tasks/v1/schemas.pyi @@ -4,8 +4,27 @@ import typing_extensions _list = list +@typing.type_check_only +class AssignmentInfo(typing_extensions.TypedDict, total=False): + driveResourceInfo: DriveResourceInfo + linkToTask: str + spaceInfo: SpaceInfo + surfaceType: typing_extensions.Literal[ + "CONTEXT_TYPE_UNSPECIFIED", "GMAIL", "DOCUMENT", "SPACE" + ] + +@typing.type_check_only +class DriveResourceInfo(typing_extensions.TypedDict, total=False): + driveFileId: str + resourceKey: str + +@typing.type_check_only +class SpaceInfo(typing_extensions.TypedDict, total=False): + space: str + @typing.type_check_only class Task(typing_extensions.TypedDict, total=False): + assignmentInfo: AssignmentInfo completed: str deleted: bool due: str diff --git a/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi b/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi index b5aa9649..132451e9 100644 --- a/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi +++ b/googleapiclient-stubs/_apis/tpu/v2/schemas.pyi @@ -7,7 +7,9 @@ _list = list @typing.type_check_only class AcceleratorConfig(typing_extensions.TypedDict, total=False): topology: str - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5P"] + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5LITE_POD", "V5P" + ] @typing.type_check_only class AcceleratorType(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi b/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi index d5097605..2a7f9dfb 100644 --- a/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/tpu/v2alpha1/schemas.pyi @@ -7,7 +7,9 @@ _list = list @typing.type_check_only class AcceleratorConfig(typing_extensions.TypedDict, total=False): topology: str - type: typing_extensions.Literal["TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5P"] + type: typing_extensions.Literal[ + "TYPE_UNSPECIFIED", "V2", "V3", "V4", "V5LITE_POD", "V5P" + ] @typing.type_check_only class AcceleratorType(typing_extensions.TypedDict, total=False): diff --git a/googleapiclient-stubs/_apis/translate/v3/schemas.pyi b/googleapiclient-stubs/_apis/translate/v3/schemas.pyi index 6c622d4b..6036cc7d 100644 --- a/googleapiclient-stubs/_apis/translate/v3/schemas.pyi +++ b/googleapiclient-stubs/_apis/translate/v3/schemas.pyi @@ -34,9 +34,12 @@ class AdaptiveMtSentence(typing_extensions.TypedDict, total=False): class AdaptiveMtTranslateRequest(typing_extensions.TypedDict, total=False): content: _list[str] dataset: str + glossaryConfig: TranslateTextGlossaryConfig + referenceSentenceConfig: ReferenceSentenceConfig @typing.type_check_only class AdaptiveMtTranslateResponse(typing_extensions.TypedDict, total=False): + glossaryTranslations: _list[AdaptiveMtTranslation] languageCode: str translations: _list[AdaptiveMtTranslation] @@ -319,6 +322,21 @@ class Operation(typing_extensions.TypedDict, total=False): class OutputConfig(typing_extensions.TypedDict, total=False): gcsDestination: GcsDestination +@typing.type_check_only +class ReferenceSentenceConfig(typing_extensions.TypedDict, total=False): + referenceSentencePairLists: _list[ReferenceSentencePairList] + sourceLanguageCode: str + targetLanguageCode: str + +@typing.type_check_only +class ReferenceSentencePair(typing_extensions.TypedDict, total=False): + sourceSentence: str + targetSentence: str + +@typing.type_check_only +class ReferenceSentencePairList(typing_extensions.TypedDict, total=False): + referenceSentencePairs: _list[ReferenceSentencePair] + @typing.type_check_only class Romanization(typing_extensions.TypedDict, total=False): detectedLanguageCode: str diff --git a/googleapiclient-stubs/_apis/vault/v1/schemas.pyi b/googleapiclient-stubs/_apis/vault/v1/schemas.pyi index 856622f6..920d3dab 100644 --- a/googleapiclient-stubs/_apis/vault/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/vault/v1/schemas.pyi @@ -90,6 +90,7 @@ class CloudStorageSink(typing_extensions.TypedDict, total=False): @typing.type_check_only class CorpusQuery(typing_extensions.TypedDict, total=False): + calendarQuery: HeldCalendarQuery driveQuery: HeldDriveQuery groupsQuery: HeldGroupsQuery hangoutsChatQuery: HeldHangoutsChatQuery @@ -205,6 +206,9 @@ class HeldAccount(typing_extensions.TypedDict, total=False): holdTime: str lastName: str +@typing.type_check_only +class HeldCalendarQuery(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class HeldDriveQuery(typing_extensions.TypedDict, total=False): includeSharedDriveFiles: bool @@ -318,6 +322,9 @@ class Matter(typing_extensions.TypedDict, total=False): description: str matterId: str matterPermissions: _list[MatterPermission] + matterRegion: typing_extensions.Literal[ + "MATTER_REGION_UNSPECIFIED", "ANY", "US", "EUROPE" + ] name: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "OPEN", "CLOSED", "DELETED"] diff --git a/googleapiclient-stubs/_apis/versionhistory/v1/schemas.pyi b/googleapiclient-stubs/_apis/versionhistory/v1/schemas.pyi index 40bb8ea3..4e4a0355 100644 --- a/googleapiclient-stubs/_apis/versionhistory/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/versionhistory/v1/schemas.pyi @@ -72,6 +72,7 @@ class Release(typing_extensions.TypedDict, total=False): fraction: float fractionGroup: str name: str + pinnable: bool serving: Interval version: str diff --git a/googleapiclient-stubs/_apis/vmmigration/v1/resources.pyi b/googleapiclient-stubs/_apis/vmmigration/v1/resources.pyi index 01af2920..ad7b9613 100644 --- a/googleapiclient-stubs/_apis/vmmigration/v1/resources.pyi +++ b/googleapiclient-stubs/_apis/vmmigration/v1/resources.pyi @@ -207,6 +207,23 @@ class VMMigrationServiceResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class DiskMigrationJobsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelDiskMigrationJobRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def run( + self, + *, + name: str, + body: RunDiskMigrationJobRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class MigratingVmsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -484,6 +501,7 @@ class VMMigrationServiceResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... def datacenterConnectors(self) -> DatacenterConnectorsResource: ... + def diskMigrationJobs(self) -> DiskMigrationJobsResource: ... def migratingVms(self) -> MigratingVmsResource: ... def utilizationReports(self) -> UtilizationReportsResource: ... diff --git a/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi b/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi index 9f23c662..464976d8 100644 --- a/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/vmmigration/v1/schemas.pyi @@ -53,6 +53,7 @@ class AwsSourceDetails(typing_extensions.TypedDict, total=False): inventorySecurityGroupNames: _list[str] inventoryTagList: _list[Tag] migrationResourcesUserTags: dict[str, typing.Any] + networkInsights: NetworkInsights publicIp: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "PENDING", "FAILED", "ACTIVE"] @@ -155,6 +156,7 @@ class BootDiskDefaults(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption image: DiskImageDefaults @@ -165,6 +167,9 @@ class CancelCloneJobRequest(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class CancelCutoverJobRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CancelDiskMigrationJobRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class CancelImageImportJobRequest(typing_extensions.TypedDict, total=False): ... @@ -235,6 +240,7 @@ class ComputeEngineTargetDefaults(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption hostname: str @@ -270,6 +276,7 @@ class ComputeEngineTargetDetails(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption hostname: str @@ -458,6 +465,7 @@ class ImageImport(typing_extensions.TypedDict, total=False): createTime: str diskImageTargetDefaults: DiskImageTargetDetails encryption: Encryption + machineImageTargetDefaults: MachineImageTargetDetails name: str recentImageImportJobs: _list[ImageImportJob] @@ -469,6 +477,7 @@ class ImageImportJob(typing_extensions.TypedDict, total=False): diskImageTargetDetails: DiskImageTargetDetails endTime: str errors: _list[Status] + machineImageTargetDetails: MachineImageTargetDetails name: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -606,6 +615,27 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class MachineImageParametersOverrides(typing_extensions.TypedDict, total=False): + machineType: str + +@typing.type_check_only +class MachineImageTargetDetails(typing_extensions.TypedDict, total=False): + additionalLicenses: _list[str] + description: str + encryption: Encryption + labels: dict[str, typing.Any] + machineImageName: str + machineImageParametersOverrides: MachineImageParametersOverrides + networkInterfaces: _list[NetworkInterface] + osAdaptationParameters: ImageImportOsAdaptationParameters + serviceAccount: ServiceAccount + shieldedInstanceConfig: ShieldedInstanceConfig + singleRegionStorage: bool + skipOsAdaptation: SkipOsAdaptation + tags: _list[str] + targetProject: str + @typing.type_check_only class MigratingVm(typing_extensions.TypedDict, total=False): awsSourceVmDetails: AwsSourceVmDetails @@ -673,11 +703,21 @@ class MigrationWarning(typing_extensions.TypedDict, total=False): warningMessage: LocalizedMessage warningTime: str +@typing.type_check_only +class NetworkInsights(typing_extensions.TypedDict, total=False): + sourceNetworkConfig: str + sourceNetworkTerraform: str + @typing.type_check_only class NetworkInterface(typing_extensions.TypedDict, total=False): externalIp: str internalIp: str network: str + networkTier: typing_extensions.Literal[ + "COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED", + "NETWORK_TIER_STANDARD", + "NETWORK_TIER_PREMIUM", + ] subnetwork: str @typing.type_check_only @@ -728,6 +768,7 @@ class PersistentDiskDefaults(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption sourceDiskNumber: int @@ -772,6 +813,9 @@ class ReplicationSync(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResumeMigrationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class RunDiskMigrationJobRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class SchedulePolicy(typing_extensions.TypedDict, total=False): idleDuration: str @@ -783,9 +827,23 @@ class SchedulingNodeAffinity(typing_extensions.TypedDict, total=False): operator: typing_extensions.Literal["OPERATOR_UNSPECIFIED", "IN", "NOT_IN"] values: _list[str] +@typing.type_check_only +class ServiceAccount(typing_extensions.TypedDict, total=False): + email: str + scopes: _list[str] + +@typing.type_check_only +class ShieldedInstanceConfig(typing_extensions.TypedDict, total=False): + enableIntegrityMonitoring: bool + enableVtpm: bool + secureBoot: typing_extensions.Literal["SECURE_BOOT_UNSPECIFIED", "TRUE", "FALSE"] + @typing.type_check_only class ShuttingDownSourceVMStep(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class SkipOsAdaptation(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Source(typing_extensions.TypedDict, total=False): aws: AwsSourceDetails diff --git a/googleapiclient-stubs/_apis/vmmigration/v1alpha1/resources.pyi b/googleapiclient-stubs/_apis/vmmigration/v1alpha1/resources.pyi index 01af2920..ad7b9613 100644 --- a/googleapiclient-stubs/_apis/vmmigration/v1alpha1/resources.pyi +++ b/googleapiclient-stubs/_apis/vmmigration/v1alpha1/resources.pyi @@ -207,6 +207,23 @@ class VMMigrationServiceResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... + @typing.type_check_only + class DiskMigrationJobsResource(googleapiclient.discovery.Resource): + def cancel( + self, + *, + name: str, + body: CancelDiskMigrationJobRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + def run( + self, + *, + name: str, + body: RunDiskMigrationJobRequest = ..., + **kwargs: typing.Any, + ) -> OperationHttpRequest: ... + @typing.type_check_only class MigratingVmsResource(googleapiclient.discovery.Resource): @typing.type_check_only @@ -484,6 +501,7 @@ class VMMigrationServiceResource(googleapiclient.discovery.Resource): **kwargs: typing.Any, ) -> OperationHttpRequest: ... def datacenterConnectors(self) -> DatacenterConnectorsResource: ... + def diskMigrationJobs(self) -> DiskMigrationJobsResource: ... def migratingVms(self) -> MigratingVmsResource: ... def utilizationReports(self) -> UtilizationReportsResource: ... diff --git a/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi b/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi index ac104941..9ab92bf6 100644 --- a/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi +++ b/googleapiclient-stubs/_apis/vmmigration/v1alpha1/schemas.pyi @@ -53,6 +53,7 @@ class AwsSourceDetails(typing_extensions.TypedDict, total=False): inventorySecurityGroupNames: _list[str] inventoryTagList: _list[Tag] migrationResourcesUserTags: dict[str, typing.Any] + networkInsights: NetworkInsights publicIp: str state: typing_extensions.Literal["STATE_UNSPECIFIED", "PENDING", "FAILED", "ACTIVE"] @@ -155,6 +156,7 @@ class BootDiskDefaults(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption image: DiskImageDefaults @@ -165,6 +167,9 @@ class CancelCloneJobRequest(typing_extensions.TypedDict, total=False): ... @typing.type_check_only class CancelCutoverJobRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class CancelDiskMigrationJobRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class CancelImageImportJobRequest(typing_extensions.TypedDict, total=False): ... @@ -237,6 +242,7 @@ class ComputeEngineTargetDefaults(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption hostname: str @@ -272,6 +278,7 @@ class ComputeEngineTargetDetails(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption hostname: str @@ -464,6 +471,7 @@ class ImageImport(typing_extensions.TypedDict, total=False): createTime: str diskImageTargetDefaults: DiskImageTargetDetails encryption: Encryption + machineImageTargetDefaults: MachineImageTargetDetails name: str recentImageImportJobs: _list[ImageImportJob] @@ -475,6 +483,7 @@ class ImageImportJob(typing_extensions.TypedDict, total=False): diskImageTargetDetails: DiskImageTargetDetails endTime: str errors: _list[Status] + machineImageTargetDetails: MachineImageTargetDetails name: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -612,6 +621,27 @@ class Location(typing_extensions.TypedDict, total=False): metadata: dict[str, typing.Any] name: str +@typing.type_check_only +class MachineImageParametersOverrides(typing_extensions.TypedDict, total=False): + machineType: str + +@typing.type_check_only +class MachineImageTargetDetails(typing_extensions.TypedDict, total=False): + additionalLicenses: _list[str] + description: str + encryption: Encryption + labels: dict[str, typing.Any] + machineImageName: str + machineImageParametersOverrides: MachineImageParametersOverrides + networkInterfaces: _list[NetworkInterface] + osAdaptationParameters: ImageImportOsAdaptationParameters + serviceAccount: ServiceAccount + shieldedInstanceConfig: ShieldedInstanceConfig + singleRegionStorage: bool + skipOsAdaptation: SkipOsAdaptation + tags: _list[str] + targetProject: str + @typing.type_check_only class MigratingVm(typing_extensions.TypedDict, total=False): awsSourceVmDetails: AwsSourceVmDetails @@ -681,11 +711,21 @@ class MigrationWarning(typing_extensions.TypedDict, total=False): warningMessage: LocalizedMessage warningTime: str +@typing.type_check_only +class NetworkInsights(typing_extensions.TypedDict, total=False): + sourceNetworkConfig: str + sourceNetworkTerraform: str + @typing.type_check_only class NetworkInterface(typing_extensions.TypedDict, total=False): externalIp: str internalIp: str network: str + networkTier: typing_extensions.Literal[ + "COMPUTE_ENGINE_NETWORK_TIER_UNSPECIFIED", + "NETWORK_TIER_STANDARD", + "NETWORK_TIER_PREMIUM", + ] subnetwork: str @typing.type_check_only @@ -736,6 +776,7 @@ class PersistentDiskDefaults(typing_extensions.TypedDict, total=False): "COMPUTE_ENGINE_DISK_TYPE_STANDARD", "COMPUTE_ENGINE_DISK_TYPE_SSD", "COMPUTE_ENGINE_DISK_TYPE_BALANCED", + "COMPUTE_ENGINE_DISK_TYPE_HYPERDISK_BALANCED", ] encryption: Encryption sourceDiskNumber: int @@ -781,6 +822,9 @@ class ReplicationSync(typing_extensions.TypedDict, total=False): @typing.type_check_only class ResumeMigrationRequest(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class RunDiskMigrationJobRequest(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class SchedulePolicy(typing_extensions.TypedDict, total=False): idleDuration: str @@ -792,9 +836,23 @@ class SchedulingNodeAffinity(typing_extensions.TypedDict, total=False): operator: typing_extensions.Literal["OPERATOR_UNSPECIFIED", "IN", "NOT_IN"] values: _list[str] +@typing.type_check_only +class ServiceAccount(typing_extensions.TypedDict, total=False): + email: str + scopes: _list[str] + +@typing.type_check_only +class ShieldedInstanceConfig(typing_extensions.TypedDict, total=False): + enableIntegrityMonitoring: bool + enableVtpm: bool + secureBoot: typing_extensions.Literal["SECURE_BOOT_UNSPECIFIED", "TRUE", "FALSE"] + @typing.type_check_only class ShuttingDownSourceVMStep(typing_extensions.TypedDict, total=False): ... +@typing.type_check_only +class SkipOsAdaptation(typing_extensions.TypedDict, total=False): ... + @typing.type_check_only class Source(typing_extensions.TypedDict, total=False): aws: AwsSourceDetails diff --git a/googleapiclient-stubs/_apis/vmwareengine/v1/schemas.pyi b/googleapiclient-stubs/_apis/vmwareengine/v1/schemas.pyi index 9460d5e6..a61ff77e 100644 --- a/googleapiclient-stubs/_apis/vmwareengine/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/vmwareengine/v1/schemas.pyi @@ -16,6 +16,22 @@ class AuditLogConfig(typing_extensions.TypedDict, total=False): "LOG_TYPE_UNSPECIFIED", "ADMIN_READ", "DATA_WRITE", "DATA_READ" ] +@typing.type_check_only +class AutoscalingPolicy(typing_extensions.TypedDict, total=False): + consumedMemoryThresholds: Thresholds + cpuThresholds: Thresholds + grantedMemoryThresholds: Thresholds + nodeTypeId: str + scaleOutSize: int + storageThresholds: Thresholds + +@typing.type_check_only +class AutoscalingSettings(typing_extensions.TypedDict, total=False): + autoscalingPolicies: dict[str, typing.Any] + coolDownPeriod: str + maxClusterNodeCount: int + minClusterNodeCount: int + @typing.type_check_only class Binding(typing_extensions.TypedDict, total=False): condition: Expr @@ -24,6 +40,7 @@ class Binding(typing_extensions.TypedDict, total=False): @typing.type_check_only class Cluster(typing_extensions.TypedDict, total=False): + autoscalingSettings: AutoscalingSettings createTime: str management: bool name: str @@ -114,7 +131,9 @@ class GrantDnsBindPermissionRequest(typing_extensions.TypedDict, total=False): class Hcx(typing_extensions.TypedDict, total=False): fqdn: str internalIp: str - state: typing_extensions.Literal["STATE_UNSPECIFIED", "ACTIVE", "CREATING"] + state: typing_extensions.Literal[ + "STATE_UNSPECIFIED", "ACTIVE", "CREATING", "ACTIVATING" + ] version: str @typing.type_check_only @@ -312,6 +331,7 @@ class NetworkPeering(typing_extensions.TypedDict, total=False): "NETAPP_CLOUD_VOLUMES", "THIRD_PARTY_SERVICE", "DELL_POWERSCALE", + "GOOGLE_CLOUD_NETAPP_VOLUMES", ] state: typing_extensions.Literal[ "STATE_UNSPECIFIED", "INACTIVE", "ACTIVE", "CREATING", "DELETING" @@ -545,6 +565,11 @@ class TestIamPermissionsRequest(typing_extensions.TypedDict, total=False): class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): permissions: _list[str] +@typing.type_check_only +class Thresholds(typing_extensions.TypedDict, total=False): + scaleIn: int + scaleOut: int + @typing.type_check_only class UndeletePrivateCloudRequest(typing_extensions.TypedDict, total=False): requestId: str diff --git a/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi b/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi index 4a5ff2fe..8fb98935 100644 --- a/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/walletobjects/v1/schemas.pyi @@ -430,6 +430,7 @@ class EventTicketObject(typing_extensions.TypedDict, total=False): imageModulesData: _list[ImageModuleData] infoModuleData: InfoModuleData kind: str + linkedObjectIds: _list[str] linkedOfferIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] @@ -437,6 +438,7 @@ class EventTicketObject(typing_extensions.TypedDict, total=False): passConstraints: PassConstraints reservationInfo: EventReservationInfo rotatingBarcode: RotatingBarcode + saveRestrictions: SaveRestrictions seatInfo: EventSeat smartTapRedemptionValue: str state: typing_extensions.Literal[ @@ -635,6 +637,7 @@ class FlightObject(typing_extensions.TypedDict, total=False): imageModulesData: _list[ImageModuleData] infoModuleData: InfoModuleData kind: str + linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] messages: _list[Message] @@ -642,6 +645,7 @@ class FlightObject(typing_extensions.TypedDict, total=False): passengerName: str reservationInfo: ReservationInfo rotatingBarcode: RotatingBarcode + saveRestrictions: SaveRestrictions securityProgramLogo: Image smartTapRedemptionValue: str state: typing_extensions.Literal[ @@ -739,11 +743,14 @@ class GenericObject(typing_extensions.TypedDict, total=False): hexBackgroundColor: str id: str imageModulesData: _list[ImageModuleData] + linkedObjectIds: _list[str] linksModuleData: LinksModuleData logo: Image + messages: _list[Message] notifications: Notifications passConstraints: PassConstraints rotatingBarcode: RotatingBarcode + saveRestrictions: SaveRestrictions smartTapRedemptionValue: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -861,12 +868,14 @@ class GiftCardObject(typing_extensions.TypedDict, total=False): imageModulesData: _list[ImageModuleData] infoModuleData: InfoModuleData kind: str + linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] messages: _list[Message] passConstraints: PassConstraints pin: str rotatingBarcode: RotatingBarcode + saveRestrictions: SaveRestrictions smartTapRedemptionValue: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -1085,6 +1094,7 @@ class LoyaltyObject(typing_extensions.TypedDict, total=False): imageModulesData: _list[ImageModuleData] infoModuleData: InfoModuleData kind: str + linkedObjectIds: _list[str] linkedOfferIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] @@ -1092,6 +1102,7 @@ class LoyaltyObject(typing_extensions.TypedDict, total=False): messages: _list[Message] passConstraints: PassConstraints rotatingBarcode: RotatingBarcode + saveRestrictions: SaveRestrictions secondaryLoyaltyPoints: LoyaltyPoints smartTapRedemptionValue: str state: typing_extensions.Literal[ @@ -1336,11 +1347,13 @@ class OfferObject(typing_extensions.TypedDict, total=False): imageModulesData: _list[ImageModuleData] infoModuleData: InfoModuleData kind: str + linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] messages: _list[Message] passConstraints: PassConstraints rotatingBarcode: RotatingBarcode + saveRestrictions: SaveRestrictions smartTapRedemptionValue: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -1416,6 +1429,8 @@ class Resources(typing_extensions.TypedDict, total=False): eventTicketObjects: _list[EventTicketObject] flightClasses: _list[FlightClass] flightObjects: _list[FlightObject] + genericClasses: _list[GenericClass] + genericObjects: _list[GenericObject] giftCardClasses: _list[GiftCardClass] giftCardObjects: _list[GiftCardObject] loyaltyClasses: _list[LoyaltyClass] @@ -1487,6 +1502,10 @@ class RotatingBarcodeValues(typing_extensions.TypedDict, total=False): startDateTime: str values: _list[str] +@typing.type_check_only +class SaveRestrictions(typing_extensions.TypedDict, total=False): + restrictToEmailSha256: str + @typing.type_check_only class SecurityAnimation(typing_extensions.TypedDict, total=False): animationType: typing_extensions.Literal[ @@ -1708,6 +1727,7 @@ class TransitObject(typing_extensions.TypedDict, total=False): id: str imageModulesData: _list[ImageModuleData] infoModuleData: InfoModuleData + linkedObjectIds: _list[str] linksModuleData: LinksModuleData locations: _list[LatLongPoint] messages: _list[Message] @@ -1722,6 +1742,7 @@ class TransitObject(typing_extensions.TypedDict, total=False): ] purchaseDetails: PurchaseDetails rotatingBarcode: RotatingBarcode + saveRestrictions: SaveRestrictions smartTapRedemptionValue: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", diff --git a/googleapiclient-stubs/_apis/workflowexecutions/v1/schemas.pyi b/googleapiclient-stubs/_apis/workflowexecutions/v1/schemas.pyi index 4e6de700..7e33e2dc 100644 --- a/googleapiclient-stubs/_apis/workflowexecutions/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/workflowexecutions/v1/schemas.pyi @@ -35,6 +35,11 @@ class Execution(typing_extensions.TypedDict, total=False): duration: str endTime: str error: Error + executionHistoryLevel: typing_extensions.Literal[ + "EXECUTION_HISTORY_LEVEL_UNSPECIFIED", + "EXECUTION_HISTORY_BASIC", + "EXECUTION_HISTORY_DETAILED", + ] labels: dict[str, typing.Any] name: str result: str @@ -156,6 +161,7 @@ class StepEntry(typing_extensions.TypedDict, total=False): @typing.type_check_only class StepEntryMetadata(typing_extensions.TypedDict, total=False): + expectedIteration: str progressNumber: str progressType: typing_extensions.Literal[ "PROGRESS_TYPE_UNSPECIFIED", diff --git a/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi b/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi index fafe00c4..d8e81a46 100644 --- a/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/workloadmanager/v1/schemas.pyi @@ -4,8 +4,14 @@ import typing_extensions _list = list +@typing.type_check_only +class AgentCommand(typing_extensions.TypedDict, total=False): + command: str + parameters: dict[str, typing.Any] + @typing.type_check_only class AssetLocation(typing_extensions.TypedDict, total=False): + ccfeRmsPath: str expected: IsolationExpectations extraParameters: _list[ExtraParameter] locationData: _list[LocationData] @@ -32,6 +38,11 @@ class CloudAsset(typing_extensions.TypedDict, total=False): class CloudAssetComposition(typing_extensions.TypedDict, total=False): childAsset: _list[CloudAsset] +@typing.type_check_only +class Command(typing_extensions.TypedDict, total=False): + agentCommand: AgentCommand + shellCommand: ShellCommand + @typing.type_check_only class DirectLocationAssignment(typing_extensions.TypedDict, total=False): location: _list[LocationAssignment] @@ -70,6 +81,7 @@ class Execution(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExecutionResult(typing_extensions.TypedDict, total=False): + commands: _list[Command] documentationUrl: str resource: Resource rule: str @@ -79,6 +91,7 @@ class ExecutionResult(typing_extensions.TypedDict, total=False): @typing.type_check_only class ExternalDataSources(typing_extensions.TypedDict, total=False): + assetType: str name: str type: typing_extensions.Literal["TYPE_UNSPECIFIED", "BIG_QUERY_TABLE"] uri: str @@ -101,6 +114,7 @@ class Insight(typing_extensions.TypedDict, total=False): @typing.type_check_only class IsolationExpectations(typing_extensions.TypedDict, total=False): + requirementOverride: RequirementOverride ziOrgPolicy: typing_extensions.Literal[ "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" ] @@ -199,6 +213,7 @@ class LocationData(typing_extensions.TypedDict, total=False): childAssetLocation: CloudAssetComposition directLocation: DirectLocationAssignment gcpProjectProxy: TenantProjectProxy + placerLocation: PlacerLocation spannerLocation: SpannerLocation @typing.type_check_only @@ -219,11 +234,24 @@ class OperationMetadata(typing_extensions.TypedDict, total=False): target: str verb: str +@typing.type_check_only +class PlacerLocation(typing_extensions.TypedDict, total=False): + placerConfig: str + @typing.type_check_only class RegionalMigDistributionPolicy(typing_extensions.TypedDict, total=False): targetShape: int zones: _list[ZoneConfiguration] +@typing.type_check_only +class RequirementOverride(typing_extensions.TypedDict, total=False): + ziOverride: typing_extensions.Literal[ + "ZI_UNSPECIFIED", "ZI_UNKNOWN", "ZI_NOT_REQUIRED", "ZI_PREFERRED", "ZI_REQUIRED" + ] + zsOverride: typing_extensions.Literal[ + "ZS_UNSPECIFIED", "ZS_UNKNOWN", "ZS_NOT_REQUIRED", "ZS_REQUIRED" + ] + @typing.type_check_only class Resource(typing_extensions.TypedDict, total=False): name: str @@ -280,6 +308,7 @@ class SapDiscoveryComponent(typing_extensions.TypedDict, total=False): databaseProperties: SapDiscoveryComponentDatabaseProperties haHosts: _list[str] hostProject: str + replicationSites: _list[SapDiscoveryComponent] resources: _list[SapDiscoveryResource] sid: str topologyType: typing_extensions.Literal[ @@ -293,7 +322,7 @@ class SapDiscoveryComponentApplicationProperties( abap: bool appInstanceNumber: str applicationType: typing_extensions.Literal[ - "APPLICATION_TYPE_UNSPECIFIED", "NETWEAVER" + "APPLICATION_TYPE_UNSPECIFIED", "NETWEAVER", "NETWEAVER_ABAP", "NETWEAVER_JAVA" ] ascsInstanceNumber: str ascsUri: str @@ -357,6 +386,17 @@ class SapDiscoveryResourceInstanceProperties(typing_extensions.TypedDict, total= "INSTANCE_ROLE_ERS", "INSTANCE_ROLE_APP_SERVER", "INSTANCE_ROLE_DATABASE", + "INSTANCE_ROLE_ASCS_ERS", + "INSTANCE_ROLE_ASCS_APP_SERVER", + "INSTANCE_ROLE_ASCS_DATABASE", + "INSTANCE_ROLE_ERS_APP_SERVER", + "INSTANCE_ROLE_ERS_DATABASE", + "INSTANCE_ROLE_APP_SERVER_DATABASE", + "INSTANCE_ROLE_ASCS_ERS_APP_SERVER", + "INSTANCE_ROLE_ASCS_ERS_DATABASE", + "INSTANCE_ROLE_ASCS_APP_SERVER_DATABASE", + "INSTANCE_ROLE_ERS_APP_SERVER_DATABASE", + "INSTANCE_ROLE_ASCS_ERS_APP_SERVER_DATABASE", ] virtualHostname: str @@ -416,8 +456,15 @@ class ScannedResource(typing_extensions.TypedDict, total=False): resource: str type: str +@typing.type_check_only +class ShellCommand(typing_extensions.TypedDict, total=False): + args: str + command: str + timeoutSeconds: int + @typing.type_check_only class SpannerLocation(typing_extensions.TypedDict, total=False): + backupName: _list[str] dbName: _list[str] @typing.type_check_only diff --git a/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi b/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi index 7c01bb05..a7cca1ba 100644 --- a/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi +++ b/googleapiclient-stubs/_apis/workstations/v1/schemas.pyi @@ -79,6 +79,7 @@ class GceInstance(typing_extensions.TypedDict, total=False): serviceAccountScopes: _list[str] shieldedInstanceConfig: GceShieldedInstanceConfig tags: _list[str] + vmTags: dict[str, typing.Any] @typing.type_check_only class GcePersistentDisk(typing_extensions.TypedDict, total=False): @@ -106,6 +107,7 @@ class GceShieldedInstanceConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class GenerateAccessTokenRequest(typing_extensions.TypedDict, total=False): expireTime: str + port: int ttl: str @typing.type_check_only @@ -198,6 +200,11 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class PortRange(typing_extensions.TypedDict, total=False): + first: int + last: int + @typing.type_check_only class PrivateClusterConfig(typing_extensions.TypedDict, total=False): allowedProjects: _list[str] @@ -285,6 +292,7 @@ class WorkstationCluster(typing_extensions.TypedDict, total=False): @typing.type_check_only class WorkstationConfig(typing_extensions.TypedDict, total=False): + allowedPorts: _list[PortRange] annotations: dict[str, typing.Any] conditions: _list[Status] container: Container diff --git a/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi b/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi index f5d00f4c..1e6a7cf6 100644 --- a/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi +++ b/googleapiclient-stubs/_apis/workstations/v1beta/schemas.pyi @@ -30,6 +30,8 @@ class Binding(typing_extensions.TypedDict, total=False): @typing.type_check_only class BoostConfig(typing_extensions.TypedDict, total=False): accelerators: _list[Accelerator] + bootDiskSizeGb: int + enableNestedVirtualization: bool id: str machineType: str poolSize: int @@ -115,6 +117,7 @@ class GceShieldedInstanceConfig(typing_extensions.TypedDict, total=False): @typing.type_check_only class GenerateAccessTokenRequest(typing_extensions.TypedDict, total=False): expireTime: str + port: int ttl: str @typing.type_check_only @@ -129,6 +132,10 @@ class GoogleProtobufEmpty(typing_extensions.TypedDict, total=False): ... class Host(typing_extensions.TypedDict, total=False): gceInstance: GceInstance +@typing.type_check_only +class HttpOptions(typing_extensions.TypedDict, total=False): + allowedUnauthenticatedCorsPreflightRequests: bool + @typing.type_check_only class ListOperationsResponse(typing_extensions.TypedDict, total=False): nextPageToken: str @@ -194,6 +201,11 @@ class Policy(typing_extensions.TypedDict, total=False): etag: str version: int +@typing.type_check_only +class PortRange(typing_extensions.TypedDict, total=False): + first: int + last: int + @typing.type_check_only class PrivateClusterConfig(typing_extensions.TypedDict, total=False): allowedProjects: _list[str] @@ -239,6 +251,7 @@ class TestIamPermissionsResponse(typing_extensions.TypedDict, total=False): @typing.type_check_only class Workstation(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] + boostConfigs: _list[WorkstationBoostConfig] createTime: str deleteTime: str displayName: str @@ -249,6 +262,9 @@ class Workstation(typing_extensions.TypedDict, total=False): labels: dict[str, typing.Any] name: str reconciling: bool + satisfiesPzi: bool + satisfiesPzs: bool + sourceWorkstation: str startTime: str state: typing_extensions.Literal[ "STATE_UNSPECIFIED", @@ -260,6 +276,10 @@ class Workstation(typing_extensions.TypedDict, total=False): uid: str updateTime: str +@typing.type_check_only +class WorkstationBoostConfig(typing_extensions.TypedDict, total=False): + id: str + @typing.type_check_only class WorkstationCluster(typing_extensions.TypedDict, total=False): annotations: dict[str, typing.Any] @@ -276,12 +296,15 @@ class WorkstationCluster(typing_extensions.TypedDict, total=False): network: str privateClusterConfig: PrivateClusterConfig reconciling: bool + satisfiesPzi: bool + satisfiesPzs: bool subnetwork: str uid: str updateTime: str @typing.type_check_only class WorkstationConfig(typing_extensions.TypedDict, total=False): + allowedPorts: _list[PortRange] annotations: dict[str, typing.Any] conditions: _list[Status] container: Container @@ -295,13 +318,17 @@ class WorkstationConfig(typing_extensions.TypedDict, total=False): ephemeralDirectories: _list[EphemeralDirectory] etag: str host: Host + httpOptions: HttpOptions idleTimeout: str labels: dict[str, typing.Any] + maxUsableWorkstations: int name: str persistentDirectories: _list[PersistentDirectory] readinessChecks: _list[ReadinessCheck] reconciling: bool replicaZones: _list[str] runningTimeout: str + satisfiesPzi: bool + satisfiesPzs: bool uid: str updateTime: str diff --git a/googleapiclient-stubs/discovery.pyi b/googleapiclient-stubs/discovery.pyi index 66e75a2c..088f4ca9 100644 --- a/googleapiclient-stubs/discovery.pyi +++ b/googleapiclient-stubs/discovery.pyi @@ -28,9 +28,12 @@ import googleapiclient._apis.admob.v1 import googleapiclient._apis.admob.v1beta import googleapiclient._apis.adsense.v2 import googleapiclient._apis.adsensehost.v4_1 +import googleapiclient._apis.adsenseplatform.v1 +import googleapiclient._apis.adsenseplatform.v1alpha import googleapiclient._apis.advisorynotifications.v1 import googleapiclient._apis.aiplatform.v1 import googleapiclient._apis.aiplatform.v1beta1 +import googleapiclient._apis.airquality.v1 import googleapiclient._apis.alertcenter.v1beta1 import googleapiclient._apis.alloydb.v1 import googleapiclient._apis.alloydb.v1alpha @@ -52,6 +55,7 @@ import googleapiclient._apis.apigateway.v1beta import googleapiclient._apis.apigee.v1 import googleapiclient._apis.apigeeregistry.v1 import googleapiclient._apis.apikeys.v2 +import googleapiclient._apis.apim.v1alpha import googleapiclient._apis.appengine.v1 import googleapiclient._apis.appengine.v1alpha import googleapiclient._apis.appengine.v1beta @@ -66,6 +70,7 @@ import googleapiclient._apis.artifactregistry.v1beta2 import googleapiclient._apis.assuredworkloads.v1 import googleapiclient._apis.assuredworkloads.v1beta1 import googleapiclient._apis.authorizedbuyersmarketplace.v1 +import googleapiclient._apis.authorizedbuyersmarketplace.v1alpha import googleapiclient._apis.backupdr.v1 import googleapiclient._apis.baremetalsolution.v1 import googleapiclient._apis.baremetalsolution.v1alpha1 @@ -167,6 +172,7 @@ import googleapiclient._apis.containeranalysis.v1beta1 import googleapiclient._apis.content.v2 import googleapiclient._apis.content.v2_1 import googleapiclient._apis.contentwarehouse.v1 +import googleapiclient._apis.css.v1 import googleapiclient._apis.customsearch.v1 import googleapiclient._apis.datacatalog.v1 import googleapiclient._apis.datacatalog.v1beta1 @@ -192,6 +198,7 @@ import googleapiclient._apis.datastream.v1alpha1 import googleapiclient._apis.deploymentmanager.alpha import googleapiclient._apis.deploymentmanager.v2 import googleapiclient._apis.deploymentmanager.v2beta +import googleapiclient._apis.developerconnect.v1 import googleapiclient._apis.dfareporting.v3_3 import googleapiclient._apis.dfareporting.v3_4 import googleapiclient._apis.dfareporting.v3_5 @@ -318,8 +325,19 @@ import googleapiclient._apis.managedidentities.v1alpha1 import googleapiclient._apis.managedidentities.v1beta1 import googleapiclient._apis.manufacturers.v1 import googleapiclient._apis.marketingplatformadmin.v1alpha +import googleapiclient._apis.meet.v2 import googleapiclient._apis.memcache.v1 import googleapiclient._apis.memcache.v1beta2 +import googleapiclient._apis.merchantapi.accounts_v1beta +import googleapiclient._apis.merchantapi.conversions_v1beta +import googleapiclient._apis.merchantapi.datasources_v1beta +import googleapiclient._apis.merchantapi.inventories_v1beta +import googleapiclient._apis.merchantapi.lfp_v1beta +import googleapiclient._apis.merchantapi.notifications_v1beta +import googleapiclient._apis.merchantapi.products_v1beta +import googleapiclient._apis.merchantapi.promotions_v1beta +import googleapiclient._apis.merchantapi.quota_v1beta +import googleapiclient._apis.merchantapi.reports_v1beta import googleapiclient._apis.metastore.v1 import googleapiclient._apis.metastore.v1alpha import googleapiclient._apis.metastore.v1beta @@ -374,6 +392,7 @@ import googleapiclient._apis.policysimulator.v1beta import googleapiclient._apis.policysimulator.v1beta1 import googleapiclient._apis.policytroubleshooter.v1 import googleapiclient._apis.policytroubleshooter.v1beta +import googleapiclient._apis.pollen.v1 import googleapiclient._apis.poly.v1 import googleapiclient._apis.privateca.v1 import googleapiclient._apis.privateca.v1beta1 @@ -955,6 +974,46 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.adsensehost.v4_1.AdSenseHostResource: ... @overload +def build( + serviceName: Literal["adsenseplatform"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.adsenseplatform.v1.AdSensePlatformResource: ... +@overload +def build( + serviceName: Literal["adsenseplatform"], + version: Literal["v1alpha"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.adsenseplatform.v1alpha.AdSensePlatformResource: ... +@overload def build( serviceName: Literal["advisorynotifications"], version: Literal["v1"], @@ -1015,6 +1074,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.aiplatform.v1beta1.AiplatformResource: ... @overload +def build( + serviceName: Literal["airquality"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.airquality.v1.AirQualityResource: ... +@overload def build( serviceName: Literal["alertcenter"], version: Literal["v1beta1"], @@ -1435,6 +1514,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.apikeys.v2.ApiKeysServiceResource: ... @overload +def build( + serviceName: Literal["apim"], + version: Literal["v1alpha"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.apim.v1alpha.APIManagementResource: ... +@overload def build( serviceName: Literal["appengine"], version: Literal["v1"], @@ -1715,6 +1814,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.authorizedbuyersmarketplace.v1.AuthorizedBuyersMarketplaceResource: ... @overload +def build( + serviceName: Literal["authorizedbuyersmarketplace"], + version: Literal["v1alpha"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.authorizedbuyersmarketplace.v1alpha.AuthorizedBuyersMarketplaceResource: ... +@overload def build( serviceName: Literal["backupdr"], version: Literal["v1"], @@ -3743,6 +3862,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.contentwarehouse.v1.ContentwarehouseResource: ... @overload +def build( + serviceName: Literal["css"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.css.v1.CssResource: ... +@overload def build( serviceName: Literal["customsearch"], version: Literal["v1"], @@ -4243,6 +4382,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.deploymentmanager.v2beta.DeploymentManagerResource: ... @overload +def build( + serviceName: Literal["developerconnect"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.developerconnect.v1.DeveloperConnectResource: ... +@overload def build( serviceName: Literal["dfareporting"], version: Literal["v3.3"], @@ -6767,6 +6926,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.marketingplatformadmin.v1alpha.GoogleMarketingPlatformAdminAPIResource: ... @overload +def build( + serviceName: Literal["meet"], + version: Literal["v2"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.meet.v2.MeetResource: ... +@overload def build( serviceName: Literal["memcache"], version: Literal["v1"], @@ -6807,6 +6986,206 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.memcache.v1beta2.CloudMemorystoreForMemcachedResource: ... @overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["accounts_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.accounts_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["conversions_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.conversions_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["datasources_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.datasources_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["inventories_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.inventories_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["lfp_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.lfp_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["notifications_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.notifications_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["products_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.products_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["promotions_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.promotions_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["quota_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.quota_v1beta.MerchantResource: ... +@overload +def build( + serviceName: Literal["merchantapi"], + version: Literal["reports_v1beta"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.merchantapi.reports_v1beta.MerchantResource: ... +@overload def build( serviceName: Literal["metastore"], version: Literal["v1"], @@ -7895,6 +8274,26 @@ def build( static_discovery: bool | None = None, ) -> googleapiclient._apis.policytroubleshooter.v1beta.PolicyTroubleshooterResource: ... @overload +def build( + serviceName: Literal["pollen"], + version: Literal["v1"], + http: httplib2.Http | HttpMock | None = None, + discoveryServiceUrl: str | None = None, + developerKey: str | None = None, + model: Model | None = None, + requestBuilder: _RequestBuilder = HttpRequest, + credentials: oauth2client.Credentials + | google.auth.credentials.Credentials + | None = None, + cache_discovery: bool = True, + cache: Cache | None = None, + client_options: dict[str, Any] | ClientOptions | None = None, + adc_cert_path: str | None = None, + adc_key_path: str | None = None, + num_retries: int = 1, + static_discovery: bool | None = None, +) -> googleapiclient._apis.pollen.v1.PollenResource: ... +@overload def build( serviceName: Literal["poly"], version: Literal["v1"],